query-9d317535009bb9ef6a63ac5ef23da50d

rq turtle/ttl

Unique value constraint violations mistakenly created by bot

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?gnd_imported ?viaf_imported_from ?itemLabel ?item ?item2 ?item2Label ?viaf_imported_from2 WHERE {
  ?item p:P227 ?s .
  ?s psn:P227 ?gnd_imported;
     prov:wasDerivedFrom [ pr:P887 wd:Q116781035; prn:P214 ?viaf_imported_from; prv:P813/wikibase:timeValue '2023-02-10T00:00:00Z'^^xsd:dateTime ] .
  ?s wikibase:rank ?rank .
  FILTER(?rank != wikibase:DeprecatedRank) .

  ?item2 p:P227 ?s2 .
  ?s2 psn:P227 ?gnd_imported .
  FILTER(?item != ?item2) .
  OPTIONAL { ?s2 prov:wasDerivedFrom [ pr:P887 wd:Q116781035; prn:P214 ?viaf_imported_from2; prv:P813/wikibase:timeValue '2023-02-10T00:00:00Z'^^xsd:dateTime ] }
  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; v5("?gnd_imported"):::projected v1("?item"):::projected v2("?item2"):::projected v3("?rank") v4("?s") v7("?s2") v6("?viaf_imported_from"):::projected v8("?viaf_imported_from2"):::projected a1((" ")) a2((" ")) a3((" ")) a4((" ")) c5(["wd:Q116781035"]):::iri c15(["en"]):::literal c13(["bd:serviceParam"]):::iri c9(["2023-02-10T00:00:00Z^^xsd:dateTime"]):::literal f0[["?item != ?item2"]] f0 --> v1 f0 --> v2 f1[["?rank != 'wikibase:DeprecatedRank'"]] f1 --> v3 v1 --"p:P227"--> v4 v4 --"p:statement/value-normalized/P227"--> v5 a1 --"p:reference/P887"--> c5 a1 --"p:reference/value-normalized/P214"--> v6 a1 --"p:reference/value/P813"--> a2 a2 --"wikibase:timeValue"--> c9 v4 --"prov:wasDerivedFrom"--> a1 v4 --"wikibase:rank"--> v3 v2 --"p:P227"--> v7 v7 --"p:statement/value-normalized/P227"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; a3 -."p:reference/P887".-> c5 a3 --"p:reference/value-normalized/P214"--> v8 a3 --"p:reference/value/P813"--> a4 a4 --"wikibase:timeValue"--> c9 v7 --"prov:wasDerivedFrom"--> a3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end