query-054fc8ba84317f9c04bf7a6e480a873d

rq turtle/ttl

Rius del Llobregat: https://angryloki.github.io/wikidata-graph-builder/?property=P403&item=Q4918&lang=ca&mode=reverseWikidata graph builder: https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fdesemboca%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP403%2a%20wd%3AQ4918.%0ASERVICE%20wikibase%3Alabel%20%7B%0Abd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cca%2Cen%2Ces%2Can%2Ceu%2Cpl%2Csv%2Cceb%22%20.%0A%3Fitem%20rdfs%3Alabel%20%3FitemLabel%0A%7D%0AOPTIONAL%20%7B%3Fitem%20wdt%3AP403%20%3Fdesemboca%7D%0A%7DWikidata query: Rius de la Mediterrània: https://query.wikidata.org/#SELECT%20DISTINCT%20%3Ftipus%20%3Fnomtipus%0AWHERE%20%7B%0A%3Ftipus%20wdt%3AP279%2a%20wd%3AQ811979.%0ASERVICE%20wikibase%3Alabel%20%7B%0Abd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cca%2Cen%2Ces%2Cfr%2Ceu%2Cde%2Csv%2Cceb%22%20.%0A%3Ftipus%20rdfs%3Alabel%20%3Fnomtipus%0A%7D%0A%7D%0ASubclasses d'estructura arquitectònica:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Rius del Llobregat
SELECT ?item ?itemLabel ?desemboca
WHERE {
  ?item wdt:P403* wd:Q31424.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,an,eu,pl,sv,ceb" .
?item rdfs:label ?itemLabel
}
OPTIONAL {?item wdt:P403 ?desemboca}
}
#defaultView:Graph

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?desemboca"):::projected v1("?item"):::projected v2("?itemLabel"):::projected c6(["#91;AUTO_LANGUAGE#93;,ca,en,es,an,eu,pl,sv,ceb"]):::literal c4(["bd:serviceParam"]):::iri c2(["wd:Q31424"]):::iri v1 --"wdt:P403"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 v1 --"rdfs:label"--> v2 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P403".-> v3 end