query-8dda32cee7e57ecd55908f636aa94e2b

rq turtle/ttl

Authors of articles of the Enciclopedia Italiana which are also subjects of articles of Enciclopedia Italiana and are absent on it.wikipedia SELECT DISTINCT ?aut ?autLabel WHERE { ?item p:P4223 [ pq:P50 ?aut ] . ?aut wdt:P4223 [] . MINUS { ?article schema:about ?aut ; schema:isPartOf https://it.wikipedia.org/ . } SERVICE wikibase:label { bd:serviceParam wikibase:language "it". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Authors of articles of the Enciclopedia Italiana which are also subjects of articles of Enciclopedia Italiana and are absent on it.wikipedia
SELECT DISTINCT ?aut ?autLabel
WHERE {
  ?item p:P4223 [ pq:P50 ?aut ] .
  ?aut wdt:P4223 [] .
  MINUS { ?article schema:about ?aut ; schema:isPartOf <https://it.wikipedia.org/> . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article") v1("?aut"):::projected v2("?item") a2((" ")) a1((" ")) c8(["bd:serviceParam"]):::iri c6([https://it.wikipedia.org/]):::iri c10(["it"]):::literal a1 --"p:qualifier/P50"--> v1 v2 --"p:P4223"--> a1 v1 --"p:direct/P4223"--> a2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"schema:about"--> v1 v3 --"schema:isPartOf"--> c6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end