SPARQL query of a local endpoint that uses http://schema.org vocabulary
SPARQL query of OSM Planet endpoint https://qlever.dev/api/osm-planet
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX osmkey: <https://www.openstreetmap.org/wiki/Key:>
PREFIX ogc: <http://www.opengis.net/rdf#>
PREFIX osmrel: <https://www.openstreetmap.org/relation/>
SELECT ?osm_id ?hasgeometry
WHERE {
osmrel:1960198 ogc:sfContains ?osm_id .
?osm_id geo:hasGeometry/geo:asWKT ?hasgeometry .
?osm_id osmkey:building ?building .
}
Messing about with #ClaudeCode, #RDF and #SPARQL, building an app that enables multiple queries in same window, geographic and network display, and exploring the "schema" implied by the entitity types and their connections. I want something like the apps we have to query SQL databases.