--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To post to this group, send email to zoter...@googlegroups.com.
To unsubscribe from this group, send email to zotero-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zotero-dev?hl=en.
The best option then will probably by unAPI; Debbie's links have
information on how to set that up, and you can post here for advice as
well.
- Avram
2011/1/27 Deborah Maron <dma...@zotero.org>:
Another plug for RDFa (though to the OP, I believe this won't work yet):
<p about="http://example.org/reports/1" typeof="bibo:Report">
<span property="dc:title">Report Title</span>,
<a rel="dc:publisher" href="http://example.org"><span
property="foaf:name">Example Organization</span></a>,
<span property="dc:date" content="2010-10-23">Oct 23, 1010</span>
</p>
But for publishers, a) it offers a lot more flexibility than COiNS,
and b) is easy(ish).
Bruce
I definitely agree that RDFa is a much nicer approach than COinS and
much easier to implement on small sites than unAPI.
But we need to write support for it. Would you be interested in taking
a crack at it, Bruce?
Avram
I don't really have the time or the skill. But I can certainly help if
someone else has either or both.
And it seems like ideally we might want to build it on top of the
rdfa-api API code I posted yesterday? Am not sure where that stands
ATM.
Bruce
The API itself appears to be moving towards stability, if not
completely done, and the implementation is still missing some features
(like, I think, an actual RDFa syntax parser!).
But the basic conceptual approach you'd want to take here, it seems to
me, is to use the API implementation to do the parsing and grab the
objects, and then write some little adapter that maps that into
Zotero.
So, for example, with the api you'll be able to do ...
document.getElementsByType("bibo:Document")
That'll grab all descriptions of that type, and when there's inference
added (it's on the roadmap), it'll also grab all items that are
subclasses of bibo:Document.
Or, you could do:
document.getItemsByProperty("dc:title")
In either case, the objects you get back are, I believe, just a list
of properties that you can then map to Zotero's model, which is just a
mirror image of the logic that maps Zotero's model to BIBO RDF (the
RDF/XML and RDFa are the same model, just different syntax).
Bruce
I'm confused. You say:
You have an RDFa parser, which IS "getting the triples out ..."
You also have a bibo translator.
So exactly what's missing?
Bruce
Not sure if jQuery is already a dependency in Zotero, but I've heard
good things about:
http://code.google.com/p/rdfquery/
//Ed
+1
So once we have that, it should be a pretty short jump; right?
Bruce
> //Ed
I don't have a ton of experience with it, would think the preferred
way to publish non-RDFa RDF (RDF/XML, turtle, etc.) is via
content-negotiation, to avoid layering on another API.
E.g. browser requests a page for http://example.org/123, and it gets
an HTML representation (123.html), an RDF consumer instead gets an
RDF/XML representation (123.rdf), etc. (123.json). That's how my site
works in any case*.
Maybe Ed has something to add here?
My reason for suggesting RDFa is that it seems to give the advantages
of RDF (namely, flexibility) without the hassles of serving up
separate files, and using content-negotiation.
Bruce