Skip to content

API Guide: REST and SPARQL

Lorenzo edited this page Sep 16, 2015 · 17 revisions

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>)}

REST API

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

Check these URLs:

REST Hypermedia API

Taxonomy API

Clone this wiki locally