query-54271856ccfef51b6193186bcbeac9db
Rivières sur l'île d'Anticosti
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 schema: <http://schema.org/>
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 DISTINCT ?id ?idLabel ?long ?geo ?geo2
WHERE {
?id wdt:P31 wd:Q4022 .
?id wdt:P706 wd:Q575033.
?id wdt:P625 ?geo .
{?id p:P625 [ ps:P625 ?geo; pq:P518 ?appl ] }
OPTIONAL {?id p:P625 [ ps:P625 ?geo ] }
FILTER (?appl != wd:Q7376362).
{?id p:P625 [ ps:P625 ?geo2; pq:P518 ?cren ] }
OPTIONAL {?id p:P625 [ ps:P625 ?geo2] }
FILTER (?cren = wd:Q7376362).
OPTIONAL {?id wdt:P2043 ?long }
# OPTIONAL {?id wdt:P402 ?osm }
SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . }
OPTIONAL {
?link schema:about ?id .
?link schema:isPartOf <https://fr.wikipedia.org/> .
?link schema:name ?title.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?appl")
v1("?cren")
v4("?geo"):::projected
v5("?geo2"):::projected
v3("?id"):::projected
v7("?link")
v6("?long"):::projected
v8("?title")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c17([https://fr.wikipedia.org/]):::iri
c5(["wd:Q575033"]):::iri
c12(["bd:serviceParam"]):::iri
c3(["wd:Q4022"]):::iri
c14(["fr,en"]):::literal
f0[["?cren = 'wd:Q7376362'"]]
f0 --> v1
f1[["?appl != 'wd:Q7376362'"]]
f1 --> v2
v3 --"p:direct/P31"--> c3
v3 --"p:direct/P706"--> c5
v3 --"p:direct/P625"--> v4
a1 --"p:statement/P625"--> v4
a1 --"p:qualifier/P518"--> v2
v3 --"p:P625"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P625".-> v4
v3 --"p:P625"--> a2
end
a3 --"p:statement/P625"--> v5
a3 --"p:qualifier/P518"--> v1
v3 --"p:P625"--> a3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a4 -."p:statement/P625".-> v5
v3 --"p:P625"--> a4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P2043".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:about".-> v3
v7 --"schema:isPartOf"--> c17
v7 --"schema:name"--> v8
end