query-f7edd7275f06c6ecd5501c58a7c942d5
TODO
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 ?propertyLabel ?valueLabel ?rank ?qualifierLabel ?qualifier_valueLabel
{
?item wdt:P171+ wd:Q147149 .
?item wdt:P105 wd:Q7432 .
?item ?claim ?statement .
?property wikibase:claim ?claim .
?property wikibase:statementProperty ?ps_predicat .
?statement ?ps_predicat ?value .
?statement wikibase:rank ?rank .
OPTIONAL
{
?statement ?pq_predicat ?qualifier_value .
?qualifier wikibase:qualifier ?pq_predicat .
}
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;
v2("?claim")
v1("?item"):::projected
v8("?pq_predicat")
v4("?property")
v5("?ps_predicat")
v10("?qualifier")
v9("?qualifier_value")
v7("?rank"):::projected
v3("?statement")
v6("?value")
c4(["wd:Q7432"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q147149"]):::iri
v1 --"wdt:P171"--> c2
v1 --"wdt:P105"--> c4
v1 -->v2--> v3
v4 --"wikibase:claim"--> v2
v4 --"wikibase:statementProperty"--> v5
v3 -->v5--> v6
v3 --"wikibase:rank"--> v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -->v8--> v9
v10 -."wikibase:qualifier".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end