query-0cfd945638c9a580b8ecba3f3d1a3bb3
Art historians with an article on the English Wikipedia and no ADS ID SELECT ?person ?personLabel ?article WHERE {
?person wdt:P31 wd:Q5 . # person
?person wdt:P106 wd:Q1792450 . # art historian
?article schema:about ?person .
?article schema:isPartOf <https://en.wikipedia.org/>. # with an article on en.wiki
MINUS { ?person wdt:P6734 [] } .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en"
}
}
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Art historians with an article on the English Wikipedia and no ADS ID
SELECT ?person ?personLabel ?article WHERE {
?person wdt:P31 wd:Q5 . # person
?person wdt:P106 wd:Q1792450 . # art historian
?article schema:about ?person .
?article schema:isPartOf <https://en.wikipedia.org/>. # with an article on en.wiki
MINUS { ?person wdt:P6734 [] } .
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;
v2("?article"):::projected
v1("?person"):::projected
a1((" "))
c7([https://en.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q1792450"]):::iri
c12(["en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P106"--> c4
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P6734"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end