query-873e70f91e21400a7836dece7728a26b
Streets in Nantes that does or not refer to something. SELECT DISTINCT ?item ?itemLabel ?namedAfterLabel WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q83620 ; wdt:P131 wd:Q12191 . OPTIONAL { ?item wdt:P138 ?namedAfter } # FILTER (!BOUND(?namedAfter)) . SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,ru". }
} ORDER BY (?itemLabel)
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 bd: <http://www.bigdata.com/rdf#>
# Streets in Nantes that does or not refer to something.
SELECT DISTINCT ?item ?itemLabel ?namedAfterLabel WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q83620 ; wdt:P131 wd:Q12191 .
OPTIONAL { ?item wdt:P138 ?namedAfter }
# FILTER (!BOUND(?namedAfter)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,ru". }
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?namedAfter")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["fr,en,ru"]):::literal
c3(["wd:Q83620"]):::iri
c5(["wd:Q12191"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P138".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end