query-0f2d07aee3bbfcd4760e97a9f3991f30
Qualifiers query for a specified property (e.g. P22) and a specified class (e.g. Q5) SELECT DISTINCT ?qualifier ?qualifierLabel WHERE { { SELECT ?qualifier WHERE { [] wdt:P31/wdt:279* wd:Q5 ; p:P22 [ ?qualClaim [] ] . ?qualifier wikibase:qualifier ?qualClaim . } LIMIT 100 } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } }
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Qualifiers query for a specified property (e.g. P22) and a specified class (e.g. Q5)
SELECT DISTINCT ?qualifier ?qualifierLabel WHERE {
{
SELECT ?qualifier WHERE {
[] wdt:P31/wdt:279* wd:Q5 ;
p:P22 [ ?qualClaim [] ] .
?qualifier wikibase:qualifier ?qualClaim .
}
LIMIT 100
}
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("?qualClaim")
v2("?qualifier"):::projected
a1((" "))
a4((" "))
a2((" "))
a3((" "))
c7(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c9(["en"]):::literal
a1 --"p:direct/P31"--> a2
a2 --"p:direct/279"--> c3
a3 -->v1--> a4
a1 --"p:P22"--> a3
v2 --"wikibase:qualifier"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end