query-f2e3939de722b4d48234dca8652bd58c
Frontières 2 à faire
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?qualifier ?qualifierLabel ?statutLabel ?pays ?paysLabel
WHERE {
?item p:P31 ?statut_statement .
?statut wdt:P279 wd:Q1292279 .
?statut_statement ps:P31 ?statut .
OPTIONAL { ?item p:P31 [ pq:P642 ?qualifier ] }
OPTIONAL { ?item wdt:P17 ?pays. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v5("?pays"):::projected
v4("?qualifier"):::projected
v3("?statut")
v2("?statut_statement")
a1((" "))
c8(["bd:serviceParam"]):::iri
c3(["wd:Q1292279"]):::iri
c10(["fr"]):::literal
v1 --"p:P31"--> v2
v3 --"p:direct/P279"--> c3
v2 --"p:statement/P31"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:qualifier/P642".-> v4
v1 --"p:P31"--> a1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P17".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end