query-0ac7bb83bc4ac49e4ca90e87c6667e92

rq turtle/ttl

Epìdosis

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT ?item ?Angelicum_ID ?prop ?statement ?reference ?retrieved
WHERE
{
  ?item wdt:P5731 ?Angelicum_ID .
  ?item ?prop ?statement .
  ?statement prov:wasDerivedFrom ?reference .
  ?reference pr:P813 ?retrieved .
  ?reference ?refprop ?refvalue .
}
GROUP BY ?item ?Angelicum_ID ?prop ?statement ?reference ?retrieved
HAVING (COUNT(?refprop) = 2) # Having count = 2 because there will minimum also be a prv:P813 value

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Angelicum_ID"):::projected v9("?_anon_42b5416610844a34809f33a099ae9de1101314") v1("?item"):::projected v3("?prop"):::projected v5("?reference"):::projected v7("?refprop") v8("?refvalue") v6("?retrieved"):::projected v4("?statement"):::projected a1((" ")) f0[[" = '2^^xsd:integer'"]] f0 --> a1 v1 --"wdt:P5731"--> v2 v1 -->v3--> v4 v4 --"prov:wasDerivedFrom"--> v5 v5 --"pr:P813"--> v6 v5 -->v7--> v8 bind2[/"count(?refprop)"/] v7 --o bind2 bind2 --as--o v9