Skip to content

Instantly share code, notes, and snippets.

@niklasl
Created November 4, 2011 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save niklasl/1340408 to your computer and use it in GitHub Desktop.
Save niklasl/1340408 to your computer and use it in GitHub Desktop.
JSON-LD context array with different vocabs using combined iri-coerce objects
{
"@context": [
{
"@vocab": "http://www.w3.org",
"label": "/2000/01/rdf-schema#label",
"comment": "/2000/01/rdf-schema#comment",
"prefLabel": "/2004/02/skos/core#prefLabel",
"altLabel": "/2004/02/skos/core#altLabel",
"prev": {"/1999/xhtml/vocab#prev": "@iri"},
"current": {"/1999/xhtml/vocab#current": "@iri"},
"next": {"/1999/xhtml/vocab#next": "@iri"},
"describedby": {"/2007/05/powder-s#describedby": "@iri"},
"xsd:": "/2001/XMLSchema#"
},
{
"@vocab": "http://a9.com/-/spec/opensearch/1.1/",
"startIndex": "startIndex",
"itemsPerPage": "itemsPerPage",
"totalResults": "totalResults",
"duration": {"http://purl.org/NET/c4dm/timeline.owl#durationXSD": "xsd:duration"},
"items": "http://purl.org/linked-data/api/vocab#items",
"Page": "http://purl.org/linked-data/api/vocab#Page"
},
{
"@vocab": "http://bblfish.net/work/atom-owl/2006-06-06/#",
"Entry": "Entry",
"entryId": {"id": "xsd:anyURI"},
"entryUpdated": {"updated": "xsd:dateTime"},
"mediaType": "type",
"content": "content",
"alternate": "http://www.iana.org/assignments/relation/alternate"
},
{
"@vocab": "http://xmlns.com/foaf/0.1/",
"Document": "Document",
"Organization": "Organization",
"Person": "Person",
"name": {"name": "xsd:string"},
"primaryTopic": "primaryTopic"
},
{
"@vocab": "http://purl.org/dc/terms/",
"title": "title",
"description": "description",
"identifier": {"identifier": "xsd:string"},
"publisher": "publisher",
"creator": "creator",
"created": {"created": "xsd:dateTime"},
"updated": {"updated": "xsd:dateTime"},
"issued": {"issued": "xsd:date"},
"isVersionOf": "isVersionOf",
"hasFormat": "hasFormat",
"hasVersion": "hasVersion"
},
{
"@vocab": "http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#",
"@language": "sv",
"iri": "@subject",
"type": "@type",
"rev": "@rev",
"beslutsdatum": {"beslutsdatum": "xsd:date"},
"ikrafttradandedatum": {"ikrafttradandedatum": "xsd:date"},
"utfardandedatum": {"utfardandedatum": "xsd:date"},
"utkomFranTryck": {"utkomFranTryck": "xsd:date"},
"avgorandedatum": {"avgorandedatum": "xsd:date"},
"avkravtAvrapporteringsdatum": {"avkravtAvrapporteringsdatum": "xsd:date"},
"ratificeringsdatum": {"ratificeringsdatum": "xsd:date"},
"domsnummer": {"domsnummer": "xsd:string"},
"arsutgava": {"arsutgava": "xsd:string"},
"lopnummer": {"lopnummer": "xsd:string"}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment