query-cb76f4a0f82f14269670f0e9016ffcf6
PropertiesAtlas of Hillforts ID (P4102)instance of (P31)subclass of (P279)
Use at
- https://query.wikidata.org/sparql
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 ?label ?subj ?atlas (GROUP_CONCAT(?typeLabel; separator=", ") AS ?types) WHERE
{ ?subj wdt:P4102 ?atlas ;
wdt:P31 ?type ;
rdfs:label ?label filter (lang(?label) = "en").
MINUS{?type wdt:P279? wd:Q744099 }
?type rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
} GROUP BY ?label ?subj ?atlas ORDER BY ?types
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?atlas"):::projected
v3("?label"):::projected
v4("?subj"):::projected
v6("?type")
v2("?typeLabel"):::projected
v7("?types")
c5(["wd:Q744099"]):::iri
f0[["?typeLabel = 'en'"]]
f0 --> v2
f1[["?label = 'en'"]]
f1 --> v3
v4 --"wdt:P4102"--> v5
v4 --"wdt:P31"--> v6
v4 --"rdfs:label"--> v3
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v6 --"wdt:P279"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
end
v6 --"rdfs:label"--> v2
bind4[/"?typeLabel"/]
v2 --o bind4
bind4 --as--o v7