-
Notifications
You must be signed in to change notification settings - Fork 1
API Guide: REST and SPARQL
Lorenzo edited this page Oct 16, 2015
·
17 revisions
See the dedicated page
See the dedicated page
The Web resources stored in the datastore and the entities in the Taxonomy need to be served also as NTRIPLES (see The GraphShard):
- example from WebResource model: http://hypermedia.projectchronos.eu/data/webresource/4504628272037888
- example from Taxonomy concept: http://hypermedia.projectchronos.eu/data/concept/infrared+telescopes
REST interface version 0.1 for components implemented! With some hypermedia flavor also (:
Check these URLs:
- entrypoint: http://hypermedia.projectchronos.eu/database/cots/
- by family: http://hypermedia.projectchronos.eu/database/cots/Spacecraft_Detector
- single: http://hypermedia.projectchronos.eu/database/cots/2545522e7a064d71be00f048c30b6e74
- an experiment of swagger documented API at http://mild-ql.appspot.com , the repo here
- entrypoint: http://taxonomy.projectchronos.eu
- Taxonomy: http://taxonomy.projectchronos.eu/concepts/
- space resources: http://taxonomy.projectchronos.eu/space/
- space sensors: http://taxonomy.projectchronos.eu/sensors/
- 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>)}