OpenStreetMap Wiki template equivalent to Wikidata Template:SPARQL2

Would be possible to have the Template equivalent to on the OpenStreetMap wiki?

The does exist, but uses, not

What I’m using now

At the moment I’m using as something like this (which requires both edit the code and the URL encoded link manually

# SPARQL here

[ Try it]

It works, but is a bit more verbose.

What I would like (if relevant to OSM Wiki)

The following code

SELECT ?item ?itemLabel
  ?item wdt:P31/wdt:P279* wd:Q1968122 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

would render similar to

(However, the SPARQL2 could be different to explicitly hint that is to Wikidata, not Sophox)

5 posts - 3 participants

Read full topic

Ce sujet de discussion accompagne la publication sur