query-a67f961beb6332256dbf2fbc81c29bb6

rq turtle/ttl

OpenStreetMapFind all items with a given OSM tag:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?osm_tag
WHERE 
{
  ?item wdt:P1282 ?osm_tag .
  FILTER regex(?osm_tag, ".*:sport.*", "i") 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?osm_tag"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["regex(?osm_tag,'.*:sport.*','i')"]] f0 --> v1 v2 --"wdt:P1282"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end