Skip to content

API Guide: REST and SPARQL

Lorenzo edited this page Sep 18, 2015 · 17 revisions

REST APIs

Articles API

REST interface version 0.3 to serve crawled articles and tweets, all the articles are indexed by the semantic third party API (TagMe API):

Components API

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

Check these URLs:

experimental version

REST Hypermedia API

Taxonomy API

Graph API

  • to be implemented

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>)}
Clone this wiki locally