query-507f64d1f96468fffd23f275cebe5584
Rivières du Québec sans longueur
SELECT Distinct ?id ?idLabel ?link WHERE {
?id wdt:P31 wd:Q4022 .
OPTIONAL {?id wdt:P2043 ?long }
?id wdt:P131 ?region .
?region wdt:P131* wd:Q176 .
filter not exists {?id wdt:P2043 ?long }
SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . }
{
?link schema:about ?id .
?link schema:isPartOf https://fr.wikipedia.org/ .
}
}
order by ?idLabel
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 bd: <http://www.bigdata.com/rdf#>
#Rivières du Québec sans longueur
SELECT Distinct ?id ?idLabel ?link WHERE {
?id wdt:P31 wd:Q4022 .
OPTIONAL {?id wdt:P2043 ?long }
?id wdt:P131 ?region .
?region wdt:P131* wd:Q176 .
filter not exists {?id wdt:P2043 ?long }
SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . }
{
?link schema:about ?id .
?link schema:isPartOf <https://fr.wikipedia.org/> .
}
}
order by ?idLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?id"):::projected
v1("?idLabel"):::projected
v5("?link"):::projected
v3("?long")
v4("?region")
c7(["bd:serviceParam"]):::iri
c3(["wd:Q4022"]):::iri
c9(["fr,en"]):::literal
c12([https://fr.wikipedia.org/]):::iri
c5(["wd:Q176"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P2043"--> e0v2
e0v1("?id"):::projected
e0v2("?long"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P2043"--> v3
v2 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2043".-> v3
end
v2 --"wdt:P131"--> v4
v4 --"wdt:P131"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c12