Template:QLever

From OpenStreetMap Wiki
Jump to navigation Jump to search
{{{query}}}

Run it (edit query)

[Edit] [Purge] Template-info.svg Template documentation

This template applies syntax highlighting to a QLever-compatible SPARQL query and appends links to run or edit the query on the public QLever endpoint.

Template data

Applies syntax highlighting to a SPARQL query and adds links to run or edit the query at a SPARQL endpoint server.

Template parameters

ParameterDescriptionTypeStatus
Queryquery

The SPARQL query

Example
PREFIX geo: <http://www.opengis.net/ont/geosparql#>

PREFIX osmkey: <https://www.openstreetmap.org/wiki/Key:> PREFIX osm: <https://www.openstreetmap.org/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT * WHERE {

 ?osmId rdf:type osm:way;
        osmkey:office "education" ;
        geo:hasGeometry ?loc .
}
Contentrequired
Collapsabilitystate

State of the code block: “expanded” to make it collapsible, “collapsed” to make it collapsible and collapse it by default; otherwise the code block is not collapsible

Lineoptional
Endpointendpoint

Route on the SPARQL endpoint that can run this query

Default
osm-planet
Example
wikidata
Contentoptional

See also