query-fef7f4a3bedd02d596e26a61db62557c
request to delete wrong references (2021-10-27) LutiV: Request date: 27 October 2021, byLink to discussions justifying the requestTask description https://w.wiki/4DFS. The list is: (P8732)Archivio Storico Ricordi opera ID instead property (P8290)Archivio Storico Ricordi person ID : it was used the property (P136)genre and (P1476)title Please delete the wrong references from Licence of data to import (if relevant)DiscussionI would use the following query:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT ?item ?st ?ref
WHERE {
?item wdt:P8732 ?id .
?item ?p ?st . ?st prov:wasDerivedFrom ?ref . ?ref pr:P8290 ?id .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?id")
v1("?item"):::projected
v3("?p")
v5("?ref"):::projected
v4("?st"):::projected
v1 --"wdt:P8732"--> v2
v1 -->v3--> v4
v4 --"prov:wasDerivedFrom"--> v5
v5 --"pr:P8290"--> v2