query-8a1196b054d9710a51919da42a7d435a

rq turtle/ttl

Protein families associated with domainGoal is to have a family item for every domain item. Which have none?

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item1 ?ipr ?item1Label
{
    ?item1 wdt:P31 wd:Q898273 .
    ?item1 wdt:P2926 ?ipr .
  MINUS {
    ?item2 wdt:P31 wd:Q81505329 .
    ?item2 p:P31 ?stmt .
    ?stmt pq:P642 ?item1
    }
    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("?ipr"):::projected v1("?item1"):::projected v3("?item2") v4("?stmt") c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c4(["wd:Q81505329"]):::iri c2(["wd:Q898273"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P2926"--> v2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"p:direct/P31"--> c4 v3 --"p:P31"--> v4 v4 --"p:qualifier/P642"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end