Git Product home page Git Product logo

schemas's Introduction

Histograph Schemas

Ontology

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#

Relations

Concept

  • hg:conceptIdentical
  • hg:conceptIsWithin
  • hg:conceptContains
  • hg:conceptIntersects

Type

  • hg:typeBroader
  • hg:typeNarrower
  • hg:typeIntersects

Geo

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

Time

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

Elasticsearch mapping

See elasticsearch/pit.json.

Histograph IO - JSON schemas

Histograph IO uses the following JSON Schema files to validate all data going into Histograph:

schemas-from-ontology.js

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

schemas's People

Contributors

bertspaan avatar rutgervanwilligen avatar wires avatar

Watchers

Joop Vanderheiden avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.