query-adf0ab2314c1ce2d74981d9fad82ba3b

rq turtle/ttl

British archaeologists 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:Q52231239 . # medieval archaeologist
?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

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#>
#British archaeologists 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:Q52231239 . # medieval archaeologist
    ?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 c12(["en"]):::literal c4(["wd:Q52231239"]):::iri 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