query-311dac9fb1e2d7068fd344cc30b855fe
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?value ?valueLabel ?rank ?reason ?reasonLabel
WHERE
{
?statement pq:P2241 ?reason .
{?statement wikibase:rank wikibase:NormalRank .}
UNION
{?statement wikibase:rank wikibase:PreferredRank .}
?statement wikibase:rank ?rank .
?item ?ppp ?statement .
?property wikibase:claim ?ppp .
?property wikibase:statementProperty ?vvv .
?statement ?vvv ?value .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item"):::projected
v5("?ppp")
v6("?property"):::projected
v3("?rank"):::projected
v2("?reason"):::projected
v1("?statement")
v8("?value"):::projected
v7("?vvv")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en,it"]):::literal
c4(["wikibase:PreferredRank"]):::iri
c3(["wikibase:NormalRank"]):::iri
v1 --"pq:P2241"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wikibase:rank"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wikibase:rank"--> c3
end
union0r <== or ==> union0l
end
v1 --"wikibase:rank"--> v3
v4 -->v5--> v1
v6 --"wikibase:claim"--> v5
v6 --"wikibase:statementProperty"--> v7
v1 -->v7--> v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end