query-5be99c6744fb2a8a1d5104096d016e8f
Propertiesinstance of (P31)subclass of (P279)coordinate location (P625)Atlas of Hillforts ID (P4102)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?subj ?coord ?label WHERE
{ ?subj wdt:P31/wdt:P279? ?type ;
wdt:P625 ?coord ;
wdt:P4102 ?atlas ;
rdfs:label ?label filter (lang(?label) = "en").
FILTER (STRLEN(STR(?coord)) > 23)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?atlas")
v1("?coord"):::projected
v2("?label"):::projected
v3("?subj"):::projected
v4("?type")
a1((" "))
f0[["string-length(str(?coord)) > '23^^xsd:integer'"]]
f0 --> v1
f1[["?label = 'en'"]]
f1 --> v2
v3 --"wdt:P31"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
v3 --"wdt:P625"--> v1
v3 --"wdt:P4102"--> v5
v3 --"rdfs:label"--> v2