query-28139935bf44b8859bde98d82c3216c9
]reply[13:52, 2 September 2013 (UTC)) talk (Benlisquare). en:China), others don't (e.g. ko:중국/ko:중화인민공화국, which deals with a similar topic (political entity/sovereign state, as opposed to the generic cultural country). Some Wikipedias separate the sovereign state from the cultural country (e.g. Q148Not to be confused with For people who want to check every items here, good luck, you can run: reverted the change so I hope he and other people will check that Q29520 is never used in place of Q148.InfovariusI added the precision in the title for disambiguation because many places/cities used Q29520 instead of Q148 as the country. It's a common practice in some situations to disambiguate like this. @
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 DISTINCT ?city ?cityLabel
WHERE
{
{?city wdt:P17 wd:Q29520}
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("?city"):::projected
c4(["bd:serviceParam"]):::iri
c2(["wd:Q29520"]):::iri
c6(["en"]):::literal
v1 --"wdt:P17"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end