Hi i'm trying to work with wikidata
in order to enrich text data for a classification nlp task, but i have zero knowledge and i'm running out of time.
What I want to query in wikidata:
Let's say I'd like to know that Mercedes-Benz is part of the automotive industry.
I'd like to give as a filtering condition the itemLabel
Mercedes-benz:
I've tried Something like:
#All items with a property
# Sample to query all values of a property
# Property talk pages on Wikidata include basic queries adapted to each property
SELECT
?item ?itemLabel
?value ?valueLabel
# valueLabel is only useful for properties with item-datatype
WHERE
{
?item wdt:P452 ?itemLabel
FILTER(CONTAINS(LCASE(?itemLabel), "Mercedes-benz"@en))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
# remove or change limit for more results
LIMIT 10
which is returning an empty results. Help?
Thanks