Name: schemas
Owner: Histograph
Description: Histograph Ontology, JSON schemas and Elasticsearch mappings
Created: 2015-03-03 14:39:35.0
Updated: 2016-01-13 00:48:36.0
Pushed: 2017-08-16 15:34:46.0
Homepage: http://histograph.io
Size: 43
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Creates JSON schemas and Turtle/N3 ontology from types and relations in Histograph configuration file.
schemas = require('histograph-schemas');
chemas.pits: PITs JSON schema
chemas.relations: relations JSON schema
chemas.dataset: dataset JSON schema
chemas.graphmalizer: [Graphmalizer](https://github.com/graphmalizer/graphmalizer-core) configuration
mas.ontology(function(err, results) {
results: Turtle/N3 ontology
All PITs must have either an id
or an uri
and a type, and optionally geometry, data and date fields. Hence, a line in a NDJSON file containing PITs can be either:
{"id": 123, "type": "hg:Place"}
Or:
{"uri": "http://sws.geonames.org/2331234", "type": "Place"}
All relations must have from
, to
and type
fields:
{"from": "http://sws.geonames.org/2331234", "to": "gemeentegeschiedenis/leiden", "type": "liesIn"}
Copyright © 2015 Waag Society.