query-1c5634e23adbfcefb9d82ed9859723a7
Map of all places with Pinakes city ID. any value(P12062)Pinakes city ID XYZ. But I don't know SPARQL yet and after trying for 40 minutes from various examples, I couldn't do it. The "airport cities in Belgium" query was similar but I don't want pages with a specific value to the property, I want (P12062)Pinakes city ID Hello, I want a map which displays the coordinates of all places with 06:27, 11 October 2023 (UTC)) talk (Jonathan GroßI suspect this is a very simple query for someone with an advanced knowledge of SPARQL. Would anyone be so kind as to help me out? The easiest possibility is:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
#title:Places with Pinakes city ID
SELECT ?item ?itemLabel ?coord
WHERE {
?item wdt:P12062 ?id .
OPTIONAL { ?item wdt:P625 ?coord } .
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;
v3("?coord"):::projected
v2("?id")
v1("?item"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P12062"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end