User:Battleofalma/Sample queries: Difference between revisions

From DAAP
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
===Some basic queries===
===Some basic queries===
[https://tinyurl.com/y984ka67 Link to query for all works with creators]
*[https://tinyurl.com/y984ka67 Link to query for all works with creators]
 
 
{{SPARQL|query=
 
select ?item ?itemLabel ?creator ?creatorLabel
 
where { ?item wdt:P1 wd:Q1
             
        Optional { ?item wdt:P9 ?creator }
       
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }}
 
}}

Revision as of 13:42, 19 June 2020