Skip to content

API Guide: REST and SPARQL

Niels H. Christensen edited this page Aug 24, 2015 · 17 revisions

SPARQL API

  • Retrieve all the planets:
/ds?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)
/ds?query=SELECT * WHERE { ?satellites <http://ontology.projectchronos.eu/astronomy/orbitsPlanet> ?planet} 
  • Retrieve other bodies orbiting Sun
/ds?query=SELECT * WHERE{?s <http://ontology.projectchronos.eu/astronomy/orbiting> <http://ontology.projectchronos.eu/solarsystem/Sun>}

REST Hypermedia API

Clone this wiki locally