How can I query Wikidata to get all items that have labels contain a word? I tried this but didn\'t work; it retrieved nothing.
SELECT ?item ?itemLabel WHERE {
Yes, you can search by label, for example:
SELECT distinct ?item ?itemLabel ?itemDescription WHERE{
?item ?label "Something"@en.
?article schema:about ?item .
?article schema:inLanguage "en" .
?article schema:isPartOf .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
see it on Query page.