Skip to content

Using Wikidata Query Service

Louis Maddox edited this page Feb 10, 2021 · 2 revisions

Wikidata has a query service with examples like cats, with pictures

#Cats, with pictures
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?pic
WHERE
{
?item wdt:P31 wd:Q146 .
?item wdt:P18 ?pic
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

The first line is read as 4 components:

The first step to finding images I want is to go backwards and inspect the properties of an image found already (from the Commons: Featured pictures link above)

Clone this wiki locally