query-04176a3f5a29bc1365e6ff02b3ce8181
Cleanup "instance of Geographical Object" with a more specific value. Query: (Q618123)geographical feature is considered a bad practice because it is not specific enough. We need to replace (Q618123)geographical feature with a value of (P31)instance of Giving an object the property
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
?item wdt:P17 wd:Q17.
?item wdt:P31 wd:Q618123.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c2(["wd:Q17"]):::iri
c6(["bd:serviceParam"]):::iri
c4(["wd:Q618123"]):::iri
c8(["en"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end