query-12d5e8ae0ecc4d8c64446f0e52216c53
TODO
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 DISTINCT ?item ?licenseLabel
WHERE {
?item wdt:P5008 wd:Q55439927;
wdt:P275 ?license;
wdt:P921 ?subject.
?subject wdt:P1995 wd:Q203337.
MINUS {?item wdt:P275 wd:Q36795408}
MINUS {?item wdt:P275 wd:Q6937225}
MINUS {?item wdt:P275 wd:Q19125045}
MINUS {?item wdt:P275 wd:Q24082749}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?license")
v3("?subject")
c9(["wd:Q19125045"]):::iri
c2(["wd:Q55439927"]):::iri
c14(["en"]):::literal
c6(["wd:Q203337"]):::iri
c10(["wd:Q24082749"]):::iri
c8(["wd:Q6937225"]):::iri
c12(["bd:serviceParam"]):::iri
c7(["wd:Q36795408"]):::iri
v1 --"wdt:P5008"--> c2
v1 --"wdt:P275"--> v2
v1 --"wdt:P921"--> v3
v3 --"wdt:P1995"--> c6
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P275"--> c7
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P275"--> c8
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P275"--> c9
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P275"--> c10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end