query-b5d5ab11372ee3ca26f7c8c7bd1d4aff
Apartment buildings in Manhattan that don't have coordonates SELECT ?object ?objectLabel $objectDescription $coord WHERE { ?object wdt:P31 wd:Q13402009 . ?object wdt:P131 wd:Q11299 . OPTIONAL { ?object wdt:P625 ?coord } . FILTER (!BOUND(?coord)) . SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". } }
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#>
#Apartment buildings in Manhattan that don't have coordonates
SELECT ?object ?objectLabel $objectDescription $coord
WHERE {
?object wdt:P31 wd:Q13402009 .
?object wdt:P131 wd:Q11299 .
OPTIONAL { ?object wdt:P625 ?coord } .
FILTER (!BOUND(?coord)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?coord"):::projected
v2("?object"):::projected
c4(["wd:Q11299"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["fr"]):::literal
c2(["wd:Q13402009"]):::iri
f0[["not bound(?coord)"]]
f0 --> v1
v2 --"wdt:P31"--> c2
v2 --"wdt:P131"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end