Robert Forkel wrote:
> hi david,
> thanx for the hint. adding rdf:type did help. but still i would have
> to tweak the output of babel quite a bit, so i'll stick to creating
> the json myself.
> among the problems with the babel output:
> - all properties are listed with valueType: "item". (my guess was that
> only properties with the values given as rdf:resource would end up
> with valueType item)
>
Your guess is right... but is it true that you're seeing some properties
with no value given as rdf:resource that still end up with valueType
"item"? In that case, it's a bug. Is your original data available
publicly so that I can try running it through Babel myself?
> - i have a property dc:subject and my own proprietary
> epubtkterms:subject. this leads to one property 'subject' and one
> 'subject_0'. maybe the namespace prefix could be used instead?
>
Good point.
> - for resource valued properties the URI of the resource seems to be
> simply split by '/' and the last part taken as value. wouldn't it make
> more sense to take the whole uri (even if this would mean that the id
> property of an item would have to be a uri as well)?
>
Well, often only the last part is human-comprehensible... I believe the
URIs are actually kept around as "uri" properties... Do you see them in
the JSON? If you want the URIs to appear in your exhibit, you can use
the "uri" property, e.g.,
<span ex:content=".uri"></span>
> i also noticed that exhibit doesn't work on safari (at least older
> versions). are you working on this or could/should i try to work on
> this myself?
>
Exhibit 1.0 does work on Safari for various exhibits that I have tested,
and I do intend to make it work on Safari as much as possible. So I
looked at your exhibit
http://relativity.livingreviews.org/register.html
and I think it doesn't work on Safari because of the property abstract.
abstract is actually a Javascript keyword and can't be used as an object
field name like that. I'm guessing that if you quote it, i.e.
{ ...
"abstract" : "..."
...
}
then Safari will be happy. Let me know if that works for you.
Cheers,
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general