query-1f406492af0b7059d372d7a782d2dabc
equivalent of wdt:
wd:Q2807 wdt:P1082 ?pop
SELECT ?pop WHERE { wd:Q2807 p:P1082 ?popNode . # will return every node ?popNode rdf:type wikibase:BestRank . # will restrict it to "best" nodes, similar to wdt: ?popNode ps:P1082 ?pop # extract value of node }
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
# equivalent of wdt:
# wd:Q2807 wdt:P1082 ?pop
SELECT ?pop WHERE {
wd:Q2807 p:P1082 ?popNode . # will return every node
?popNode rdf:type wikibase:BestRank . # will restrict it to "best" nodes, similar to wdt:
?popNode ps:P1082 ?pop # extract value of node
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?pop"):::projected
v1("?popNode")
c1(["wd:Q2807"]):::iri
c4(["wikibase:BestRank"]):::iri
c1 --"p:P1082"--> v1
v1 --"a"--> c4
v1 --"p:statement/P1082"--> v2