Project:SPARQL examples
From Inguma Wikibase
SPARQL Queries
Get direct download links (P48) and corresponding bibItems
PREFIX iwb: <https://wikibase.inguma.eus/entity/>
PREFIX idp: <https://wikibase.inguma.eus/prop/direct/>
PREFIX ip: <https://wikibase.inguma.eus/prop/>
PREFIX ips: <https://wikibase.inguma.eus/prop/statement/>
PREFIX ipq: <https://wikibase.inguma.eus/prop/qualifier/>
select distinct ?download (group_concat(str(?wikibase_item);SEPARATOR="|") as ?items)
where {
?wikibase_item idp:P48 ?download .
} group by ?download ?items