query-f04fdda35a9ed2215d2552fd4e4d6b8c

rq turtle/ttl

Female ODNB ids, no link to enWP, no occupation SELECT ?item WHERE { ?item wdt:P1415 ?dummy0 . ?item wdt:P21 wd:Q6581072 . OPTIONAL { ?wiki0 http://schema.org/about ?item . FILTER(SUBSTR(STR(?wiki0),1,24) = 'https://en.wikipedia.org') . } FILTER(!bound(?wiki0)) OPTIONAL { ?item wdt:P106 ?dummy1 } FILTER(!bound(?dummy1)) }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Female ODNB ids, no link to enWP, no occupation
SELECT ?item WHERE {
  ?item wdt:P1415 ?dummy0 .
  ?item wdt:P21 wd:Q6581072 .
  OPTIONAL {
    ?wiki0 <http://schema.org/about> ?item .
    FILTER(SUBSTR(STR(?wiki0),1,24) = 'https://en.wikipedia.org') .
  }
  FILTER(!bound(?wiki0))
  OPTIONAL { ?item wdt:P106 ?dummy1 }
  FILTER(!bound(?dummy1))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?dummy0") v1("?dummy1") v3("?item"):::projected v2("?wiki0") c6(["wd:Q6581072"]):::iri f0[["not bound(?dummy1)"]] f0 --> v1 f1[["not bound(?wiki0)"]] f1 --> v2 v3 --"wdt:P1415"--> v4 v3 --"wdt:P21"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -.http://schema.org/about.-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P106".-> v1 end