query-d00473c271cfcac45443a394b72d99ae

rq turtle/ttl

Maj identifiant OSM

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
SELECT Distinct ?id ?idLabel ?confluentLabel ?long ?geo ?link WHERE {  
  {?id wdt:P403* wd:Q392161} Union {?id wdt:P403* wd:Q979922} Union {?id wdt:P403* wd:Q1471254}            # se jette dans le Saguenay
  ?id wdt:P403 ?confluent .
  ?id wdt:P625 ?geo .
  ?id wdt:P2043 ?long .
  filter not exists { ?id wdt:P402 ?osm }
#  BIND (xsd:integer (?osm) as ?nosm )
  SERVICE wikibase:label {bd:serviceParam wikibase:language "fr,en" . }
   {
            ?link schema:about ?id .
            ?link schema:isPartOf <https://fr.wikipedia.org/> .
  }
}
#order by ?nosm

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?confluent") v4("?geo"):::projected v1("?id"):::projected v6("?link"):::projected v5("?long"):::projected v2("?osm") c5(["wd:Q1471254"]):::iri c14([https://fr.wikipedia.org/]):::iri c4(["wd:Q979922"]):::iri c9(["bd:serviceParam"]):::iri c11(["fr,en"]):::literal c3(["wd:Q392161"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P402"--> e0v2 e0v1("?id"):::projected e0v2("?osm"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"wdt:P402"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P403"--> c5 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P403"--> c4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P403"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P403"--> v3 v1 --"wdt:P625"--> v4 v1 --"wdt:P2043"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end v6 --"schema:about"--> v1 v6 --"schema:isPartOf"--> c14