Project:SPARQL examples

From Inguma Wikibase
Revision as of 14:40, 26 September 2022 by DavidL (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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!