Skip to content

Instantly share code, notes, and snippets.

@raffazizzi
Created March 5, 2013 15:03
Show Gist options
  • Save raffazizzi/5090912 to your computer and use it in GitHub Desktop.
Save raffazizzi/5090912 to your computer and use it in GitHub Desktop.
SGA ext resource - example
Template:
<resource> a ore:Aggregation, rdf:List, sc:TextAnnotationList ;
ore:isDescribedBy <external-URL> .
<external-URL> a ore:ResourceMap .
<manifest1> ore:aggregates <resource> .
JSON for <resource>:
"_:UUID": {
"http://www.openarchives.org/ore/terms/isDescribedBy": [
{
"type": "bnode",
"value": "http://localhost:5000/annotate?text:feelings"
}
],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [
{
"type": "uri",
"value": "http://www.openarchives.org/ore/terms/Aggregation"
},
{
"type": "uri",
"value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#List"
},
{
"type": "uri",
"value": "http://www.shared-canvas.org/ns/TextAnnotationList"
}
]
}
JSON for <external_URL>:
"http://localhost:5000/annotate?text:feelings": {
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [
{
"type": "uri",
"value": "http://www.openarchives.org/ore/terms/ResourceMap"
}
]
}
JSON for manifest:
"http://sga.mith.org/sc-demo/ox-ms_abinger_c56/Manifest": {
"http://www.openarchives.org/ore/terms/aggregates": [
{
"type": "bnode",
"value": "_:UUID"
}
]
// REST OF MANIFEST FIELDS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment