query-7f8f5cdc6c1630acc6d4d018561f7847

rq turtle/ttl

Items with HASC and no coordinates

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#-----------------------------------------------------
# All items with HASC and no coordinates
#-----------------------------------------------------
#defaultView:Table
SELECT ?item ?itemLabel ?itemDescription ?hasc ?coordinate
WHERE
{
    ?item wdt:P8119 ?hasc .                     # hasc
    OPTIONAL {?item wdt:P625 ?coordinate. }     # coordinate
    FILTER(!BOUND(?coordinate)).

    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de". }
}
order by ?hasc

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coordinate"):::projected v1("?hasc"):::projected v3("?item"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal f0[["not bound(?coordinate)"]] f0 --> v2 v3 --"wdt:P8119"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P625".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end