query-169899e7c00c3457d307d0dae0f675e8
subclass of something (?itemsubclass of (P279)type ) linked to Norway (?item?propertyNorway (Q20) )
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#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?type ?typeLabel {
?item wdt:P279 ?type.
?item ?prop wd:Q20.
?property wikibase:directClaim ?prop.
MINUS { ?item wdt:P31 / wdt:P279* wd:Q34770 }.
SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
}
Query found at
- https://www.wikidata.org/wiki/User:Iwan.Aucamp/WIP/Norway
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Norway
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?prop")
v4("?property"):::projected
v2("?type"):::projected
a1((" "))
c5(["wd:Q34770"]):::iri
c7(["bd:serviceParam"]):::iri
c2(["wd:Q20"]):::iri
c9(["en"]):::literal
v1 --"wdt:P279"--> v2
v1 -->v3--> c2
v4 --"wikibase:directClaim"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end