Project:SPARQL examples: Difference between revisions

From Inguma Wikibase
(Created page with "= SPARQL Queries = == Get direct download links (P48) and corresponding bibItems == <sparql tryit="1"> 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 { ?wiki...")
(No difference)

Revision as of 14:40, 26 September 2022

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

Try it!