beehind / beehind.github.io

Beehind: pilot workflows to capture prominent bee specimen and their historic and ecological associates
https://beehind.org
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

add way to do structured queries to search for commons wikimedia #17

Open jhpoelen opened 1 year ago

jhpoelen commented 1 year ago

https://w.wiki/6iBC

#defaultView:ImageGrid
select ?file ?specimen ?specimenLabel ?specimenDescription ?thumb with {
  select * {
    service <https://query.wikidata.org/sparql> {
      ?specimen wdt:P31*/wdt:P279* wd:Q51255340;
                rdfs:label ?specimenLabel;
                schema:description ?specimenDescription.
      filter (lang(?specimenLabel) = "en")
      filter (lang(?specimenDescription) = "en")
    }
  } 
} as %specimen where {
  include %specimen. 
  ?file wdt:P180 ?specimen;
         schema:url ?thumb.
}

 LIMIT 50

image

jhpoelen commented 1 year ago

fyi @Daniel-Mietchen @ajacsherman