Skip to content

Instantly share code, notes, and snippets.

@bollwyvl
Created July 2, 2014 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bollwyvl/be3312c8a4d3ed0b6f59 to your computer and use it in GitHub Desktop.
Save bollwyvl/be3312c8a4d3ed0b6f59 to your computer and use it in GitHub Desktop.
JSON-LD (in JSON-LD) for xtypes
{
"@context": {
"xtypes": "http://purl.org/xtypes/",
"foaf": "http://xmlns.com/foaf/0.1/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
"dcterms": "http://purl.org/dc/terms/",
"label": "rdfs:label",
"subClassOf": {
"@type": "@id",
"@id": "rdfs:subClassOf"
},
"format": "dcterms:format",
"defines": {
"@reverse": "rdfs:isDefinedBy"
},
"sameAs": {
"@type": "@id",
"@id": "owl:sameAs"
}
},
"@id": "xtypes:",
"defines": [
{
"@id": "xtypes:Format-JSONLD",
"@type": "dcterms:MediaType",
"label": "RDF in JSON-LD Format",
"xtypes:hasFileExtension": ".jsonld",
"xtypes:hasMimeType": "application/ld+json",
"sameAs": "http://www.w3.org/ns/formats/JSON-LD",
"subClassOf": "xtypes:Format"
},
{
"@id": "xtypes:Fragment-JSONLD",
"@type": "rdfs:Datatype",
"label": "RDF in JSON-LD Fragment",
"format": "xtypes:Format-JSONLD",
"subClassOf": [
"xtypes:Fragment-JSON",
"xtypes:Fragment-RDFSerialisation"
]
},
{
"@id": "xtypes:Document-JSONLD",
"@type": "rdfs:Class",
"label": "RDF in JSON-LD Document",
"format": "xtypes:Format-JSONLD",
"subClassOf": [
"xtypes:Document",
"xtypes:Document-RDFSerialisation"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment