query-2cd12db04d23638068daee1db62789bf

rq turtle/ttl

Historical markers with missing directionsPlease use the following query:

Use at

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#>
SELECT DISTINCT ?marker ?markerLabel WHERE {
  ?marker wdt:P31 wd:Q21562164;
          rdfs:label ?markerLabel FILTER((LANG(?markerLabel)) = "en").
  FILTER NOT EXISTS { ?marker wdt:P2795 ?inscription }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?inscription") v1("?marker"):::projected v3("?markerLabel"):::projected c4(["wd:Q21562164"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P2795"--> e0v2 e0v2("?inscription"):::projected e0v1("?marker"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"wdt:P2795"--> v2 f1[["?markerLabel = 'en'"]] f1 --> v3 v1 --"wdt:P31"--> c4 v1 --"rdfs:label"--> v3