RDFa meta tags
I'm new to Zotero and the whole reference management thing, so sorry if these are newbie FAQs. I am interested in using html meta tags to expose metadata on web pages, sticking as much as possible to widely-deployed vocabularies such as DC.
I have got some impressions about what Zotero does, and wanted to confirm if they are accurate.
1) Zotero defines its own namespace prefixes and does not let the document define them differently, e.g. if document has
xmlns:dct="http://purl.org/dc/terms/" or
prefix="dct: http://purl.org/dc/terms/"
Zotero will still look for dcterms: .
2) Zotero will not recognize a meta element that has more than one property, e.g.
<meta property="bibo:abstract dcterms:abstract" content="Abstract goes here."/>
will not be recognized as either property.
Thanks for anything on this.
MVD
I have got some impressions about what Zotero does, and wanted to confirm if they are accurate.
1) Zotero defines its own namespace prefixes and does not let the document define them differently, e.g. if document has
xmlns:dct="http://purl.org/dc/terms/" or
prefix="dct: http://purl.org/dc/terms/"
Zotero will still look for dcterms: .
2) Zotero will not recognize a meta element that has more than one property, e.g.
<meta property="bibo:abstract dcterms:abstract" content="Abstract goes here."/>
will not be recognized as either property.
Thanks for anything on this.
MVD
I've never actually seen 2) implemented in any page - it looks wrong to me, but we could probably make it work if there's a compelling reason or if it's explicitly allowed in a standard.
the property attribute is defined as:
property
a white space separated list of TERMorCURIEorAbsIRIs, used for expressing relationships between a subject and either a resource object if given or some literal text (also a 'predicate');
Also, the RDFa 1.1 Distiller at
http://www.w3.org/2012/pyRdfa/#distill_by_uri+with_options
will parse the meta element with a space-separated list of property attributes into one triple for each of the properties, which agrees with the definition above.
MVD
You can also now declare prefixes in the prefix attribute on html and head elements.
Zotero still only parses meta elements, so it's not exactly a complete RDFa processor. Maybe some time in the future we'll expand this for complete RDFa support.