Skip to content

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

@jhpoelen

Description

@jhpoelen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions