query-f03deef7520df71758dd596ae1c6b715

rq turtle/ttl

DNB/ODNB matchesHi Charles, Noticed a couple of duplicated items today where one has an ODNB ID and the other had a DNB link and for some reason we never matched them up. I've knocked up a quick query for any items with a DNB "desribed by source" but no ODNB entry:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?instanceLabel
WHERE
{ 
  { ?item wdt:P1343 wd:Q16014700 . }
  UNION { ?item wdt:P1343 wd:Q15987216 . }
  UNION { ?item wdt:P1343 wd:Q16014697 . } # is described by any DNB volume
  ?item wdt:P31 ?instance
  FILTER NOT EXISTS { ?item wdt:P1415 ?odnb . } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?instance") v1("?item"):::projected v2("?odnb") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q15987216"]):::iri c5(["wd:Q16014697"]):::iri c3(["wd:Q16014700"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P1415"--> e0v2 e0v1("?item"):::projected e0v2("?odnb"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"wdt:P1415"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1343"--> c5 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1343"--> c4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1343"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P31"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end