SPARQL (Simple Protocol And RDF Query Language)


PREFIX ex: <http://example.com/>
PREFIX geo: <http://geo.example.org/elements/>
SELECT ?station ?walkTime ?trainTime
WHERE	(?walkPath  geo:pathTo   ex:ORF)
	(?walkPath  geo:pathFrom ?station)
	(?walkPath  geo:time     ?walkTime)
	(?trainPath geo:pathFrom geo:FujisawaJR)
	(?trainPath geo:pathTo   ?station)
	(?trainPath geo:time     ?trainTime)

* Based on the Working Draft http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/