query-cc9dfe5452bbd6fcf310c5c21e1ec4be

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?typeLabel ?districtLabel ?crossesLabel ?carriesLabel  ?coords
WHERE
{
  ?item wdt:P31 / wdt:P279 * wd:Q12280 . # Bridges
  ?item wdt:P131 + wd:Q90 .  # in Paris
  ?item wdt:P31 ?type .
  ?item wdt:P131 ?district .
  OPTIONAL { ?item wdt:P177 ?crosses . }
  OPTIONAL { ?item wdt:P205 ?carries . }
  OPTIONAL { ?item wdt:P625 ?coords . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?carries") v6("?coords"):::projected v4("?crosses") v3("?district") v1("?item"):::projected v2("?type") a1((" ")) c5(["wd:Q90"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en,fr"]):::literal c3(["wd:Q12280"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P131"--> c5 v1 --"wdt:P31"--> v2 v1 --"wdt:P131"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P177".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P205".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end