histograph/schemas

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Histograph Schemas

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

PITs

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"}
Relations

All relations must have from, to and type fields:

{"from": "http://sws.geonames.org/2331234", "to": "gemeentegeschiedenis/leiden", "type": "liesIn"}

Copyright © 2015 Waag Society.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.