Skip to content

API Guide: REST and SPARQL

Lorenzo edited this page Oct 16, 2015 · 17 revisions

REST APIs

Articles API

See the dedicated page

Graph API

See the dedicated page

RDF/N3 APIs

The Web resources stored in the datastore and the entities in the Taxonomy need to be served also as NTRIPLES (see The GraphShard):

Components API

REST interface version 0.1 for components implemented! With some hypermedia flavor also (:

Check these URLs:

experimental version

Hypermedia API

Taxonomy API


SPARQL API

  • Retrieve all the planets:
hypermedia.projectchronos.eu/sparql?query=SELECT * WHERE { ?planet <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://ontology.projectchronos.eu/astronomy/Planet>. } 
  • Retrieve all the planetary bodies (satellites)
hypermedia.projectchronos.eu/sparql?query=SELECT * WHERE { ?satellites <http://ontology.projectchronos.eu/astronomy/orbitsPlanet> ?planet} 
  • Retrieve other bodies orbiting Sun
hypermedia.projectchronos.eu/sparql?query=SELECT * WHERE{?s <http://ontology.projectchronos.eu/astronomy/orbiting> <http://ontology.projectchronos.eu/solarsystem/Sun>.?s a ?type .FILTER (?type != <http://ontology.projectchronos.eu/astronomy/Planet>)}