Skip to content

Instantly share code, notes, and snippets.

@simonster
Created February 5, 2013 05:05
Show Gist options
  • Save simonster/4712293 to your computer and use it in GitHub Desktop.
Save simonster/4712293 to your computer and use it in GitHub Desktop.
Modified RDF attachment export example
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:res="http://purl.org/vocab/resourcelist/schema#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:address="http://schemas.talis.com/2005/address/schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:bibo="http://purl.org/ontology/bibo/"
xmlns:link="http://purl.org/rss/1.0/modules/link/">
<z:UserItem rdf:about="http://zotero.org/users/67180/items/4BUASI6R">
<res:resource rdf:resource="http://www.imemo.ru/en/publ/2011/forecasts/11001.pdf"/>
<z:accessDate>2012-11-26 11:39:25</z:accessDate>
</z:UserItem>
<bibo:Book rdf:about="http://www.imemo.ru/en/publ/2011/forecasts/11001.pdf">
<dcterms:title>Strategic Global Outlook: 2030</dcterms:title>
<dcterms:publisher>
<foaf:Organization>
<address:localityName>Moscow</address:localityName>
<foaf:name>Institute of World Economy and International Relations Russian Academy of Sciences</foaf:name>
</foaf:Organization>
</dcterms:publisher>
<dcterms:date>2011</dcterms:date>
<bibo:numPages>56</bibo:numPages>
<bibo:uri>http://www.imemo.ru/en/publ/2011/forecasts/11001.pdf</bibo:uri>
<link:link rdf:resource="files/203/checkout-example.txt"/>
<link:link rdf:resource="files/200/treaty-1.pdf"/>
<dcterms:creator rdf:nodeID="n2"/>
<bibo:authorList>
<rdf:Seq><rdf:li rdf:nodeID="n2"/></rdf:Seq>
</bibo:authorList>
</bibo:Book>
<z:Attachment rdf:about="files/203/checkout-example.txt">
<dcterms:title>checkout-example.txt</dcterms:title>
<link:type>text/plain</link:type>
</z:Attachment>
<z:Attachment rdf:about="files/200/treaty-1.pdf">
<dcterms:title>treaty-1.pdf</dcterms:title>
<link:type>application/pdf</link:type>
</z:Attachment>
<foaf:Person rdf:nodeID="n2">
<foaf:givenname>A.</foaf:givenname><foaf:surname>Dynkin</foaf:surname>
</foaf:Person>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment