query-82bb017b7c87ab8fa854664672d726da
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE
{
?item p:P131 ?statement .
?statement ps:P131 wd:Q59150 .
?item p:P131/wikibase:rank wikibase:NormalRank . # comment this line out and substitute one of the commented-out lines below
# ?item p:P131/wikibase:rank wikibase:PreferredRank . # item statement must have preferred rank
# minus {?item p:P131/wikibase:rank wikibase:DeprecatedRank .} # item statement must not have deprecated rank
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;
v1("?item"):::projected
v2("?statement")
a1((" "))
c7(["bd:serviceParam"]):::iri
c5(["wikibase:NormalRank"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q59150"]):::iri
v1 --"p:P131"--> v2
v2 --"p:statement/P131"--> c3
v1 --"p:P131"--> a1
a1 --"wikibase:rank"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end