Template:Sophox

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 Sophox-compatible SPARQL query and appends links to run or edit the query on the public Sophox 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
#defaultView:Map

SELECT * WHERE {

 ?newspaper osmt:office "newspaper";
            osmm:loc ?coordinates.
}
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

URL of the SPARQL endpoint that can run this query

Default
https://sophox.org/
Example
https://query.wikidata.org/
URLoptional

See also