query-c03b469d004880716077db7d238efbc4

rq turtle/ttl

Rivières du bassin versant de la baie James SELECT Distinct ?id ?idLabel ?bassinLabel ?long ?link ?natLabel WHERE {
{ ?id (wdt:P403|wdt:P201)* wd:Q223810 } ?id wdt:P31 ?nat .

?id wdt:P31 wd:Q4022 .

OPTIONAL {?id wdt:P4614 ?bassin } OPTIONAL {?id wdt:P2043 ?long } filter (?long >10) . SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . } OPTIONAL { ?link schema:about ?id . ?link schema:isPartOf https://fr.wikipedia.org/ . } } order by ?idLabel

Use at

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 bassin versant de la baie James
SELECT Distinct ?id ?idLabel ?bassinLabel ?long ?link ?natLabel WHERE {  
  { ?id (wdt:P403|wdt:P201)* wd:Q223810 }
  ?id wdt:P31 ?nat .
#  ?id wdt:P31 wd:Q4022 .
  OPTIONAL {?id wdt:P4614 ?bassin }
  OPTIONAL {?id wdt:P2043 ?long }
  filter  (?long >10) .
  SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . }
  OPTIONAL {
            ?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; v5("?bassin") v3("?id"):::projected v1("?idLabel"):::projected v6("?link"):::projected v2("?long"):::projected v4("?nat") c14([https://fr.wikipedia.org/]):::iri c3(["wd:Q223810"]):::iri c9(["bd:serviceParam"]):::iri c11(["fr,en"]):::literal f0[["?long > '10^^xsd:integer'"]] f0 --> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P201"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P403"--> c3 end union0r <== or ==> union0l end v3 --"wdt:P31"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P4614".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P2043".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v3 v6 --"schema:isPartOf"--> c14 end