Three namespaces:
Namespace | Name | URI |
---|---|---|
hg |
Histograph | http://schema.histograph.io/# |
time |
Time Ontology | http://www.w3.org/2006/time# |
geo |
GeoSPARQL | http://www.opengis.net/ont/geosparql# |
hg:conceptIdentical
hg:conceptIsWithin
hg:conceptContains
hg:conceptIntersects
hg:typeBroader
hg:typeNarrower
hg:typeIntersects
http://en.wikipedia.org/wiki/GeoSPARQL
geo:sf-disjoint
geo:sf-touches
geo:sf-overlaps
geo:sf-equals
geo:sf-within
geo:sf-contains
geo:sf-intersects
http://www.w3.org/TR/owl-time/#summary
time:intervalEquals
time:intervalBefore
time:intervalMeets
time:intervalOverlaps
time:intervalStarts
time:intervalDuring
time:intervalFinishes
time:intervalAfter
time:intervalMetBy
time:intervalOverlappedBy
time:intervalStartedBy
time:intervalContains
time:intervalFinishedBy
Histograph IO uses the following JSON Schema files to validate all data going into Histograph:
- PITs:
json/pits.schema.json
- Relations:
json/relations.schema.json
- Source metadata:
json/source.schema.json
schemas-from-ontology.js
reads the Histograph ontology from histograph.ttl
and writes constraints in JSON schema files (json/pits.schema.json
and json/relations.schema.json
).
Install dependencies:
npm install
Run:
node schemas-from-ontology.js