Created
March 26, 2020 15:07
-
-
Save James-Hudson3010/7deec4df32aa6b97509aeb490f1edf9b to your computer and use it in GitHub Desktop.
Sample json-ld schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"mne": "http://company.org/", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"sch": "http://schema.org/", | |
"subclassOf": "rdfs:subClassOf", | |
"valueTypes": "sch:rangeIncludes", | |
"propertyOf": "sch:domainIncludes" | |
}, | |
"@graph": [ | |
{ | |
"@id": "mne:CONTAINER", | |
"@type": "rdfs:Class", | |
"rdfs:comment": "An CONTAINER", | |
"rdfs:label": "CONTAINER", | |
"subclassOf": [ | |
{ | |
"@id": "mne:Item" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:Item", | |
"@type": "rdfs:Class", | |
"rdfs:comment": "An Item", | |
"rdfs:label": "Item" | |
}, | |
{ | |
"@id": "mne:CONTAINERVersion", | |
"@type": "rdfs:Class", | |
"rdfs:comment": "version information", | |
"rdfs:label": "CONTAINERVersion" | |
}, | |
{ | |
"@id": "mne:item", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:CONTAINER" | |
} | |
], | |
"rdfs:comment": "a item", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Item" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:itemname", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:Item" | |
} | |
], | |
"rdfs:comment": "the name", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:width", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:Item" | |
} | |
], | |
"rdfs:comment": "the width", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:height", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:Item" | |
} | |
], | |
"rdfs:comment": "the height", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:containerVersion", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:CONTAINER" | |
} | |
], | |
"rdfs:comment": "version information about an CONTAINER", | |
"valueTypes": [ | |
{ | |
"@id": "mne:CONTAINERVersion" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:version", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:CONTAINERVersion" | |
} | |
], | |
"rdfs:comment": "the version information", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:iteration", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:CONTAINERVersion" | |
} | |
], | |
"rdfs:comment": "the iteration", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
}, | |
{ | |
"@id": "mne:itemIdentifier", | |
"@type": "rdf:Property", | |
"propertyOf": [ | |
{ | |
"@id": "mne:CONTAINERVersion" | |
} | |
], | |
"rdfs:comment": "the identifier of the item", | |
"valueTypes": [ | |
{ | |
"@id": "sch:Text" | |
} | |
] | |
} | |
], | |
"@id": "http://company.org/#1.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment