Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. SELECT ?auth ?authLabel ?desc ?linkPattern ?countryLabel ?remoteID WHERE {
  2. ?auth wdt:P31 wd:Q19595382; # Properties of type "person authority"
  3. schema:description ?desc; # Plain-english description
  4. wdt:P1630 ?linkPattern . # Link pattern
  5. OPTIONAL { ?auth wdt:P17 ?country. } # Country of origin, if you have it
  6. FILTER((LANG(?desc)) = "en")
  7. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  8. }
  9.  
  10. SELECT ?auth ?authLabel ?desc ?linkPattern ?countryLabel ?remoteID WHERE {
  11. ?auth wdt:P31 wd:Q19595382;
  12. schema:description ?desc;
  13. wdt:P1630 ?linkPattern .
  14. wd:Q5145349 ?auth ?remoteID . # <-- Authority record property must appear in person Q5145349 (Colin McCahon)
  15. OPTIONAL { ?auth wdt:P17 ?country. }
  16. FILTER((LANG(?desc)) = "en")
  17. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement