query-8c59d27e63e5a30008b74fccacf6d6eb
a little of a repeat of the previous one.
apartment buildings in the USA that don't have the property "voie" set
SELECT DISTINCT ?objectLabel ?objectDescription ?voieLabel WHERE { ?object wdt:P17 wd:Q30 ; wdt:P31 wd:Q13402009 ; rdfs:label ?label . OPTIONAL { ?object wdt:P669 ?voie } #FILTER(CONTAINS(?label, "89th Street")) . FILTER (!BOUND(?voie)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } }
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#a little of a repeat of the previous one.
#apartment buildings in the USA that don't have the property "voie" set
SELECT DISTINCT ?objectLabel ?objectDescription ?voieLabel
WHERE {
?object wdt:P17 wd:Q30 ; wdt:P31 wd:Q13402009 ; rdfs:label ?label .
OPTIONAL { ?object wdt:P669 ?voie }
#FILTER(CONTAINS(?label, "89th Street")) .
FILTER (!BOUND(?voie)) .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr,en"
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?label")
v2("?object")
v1("?voie")
c8(["bd:serviceParam"]):::iri
c10(["fr,en"]):::literal
c2(["wd:Q30"]):::iri
c4(["wd:Q13402009"]):::iri
f0[["not bound(?voie)"]]
f0 --> v1
v2 --"wdt:P17"--> c2
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P669".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end