I'm trying to get all distinct labels of a Wikidata Item.
I know I can get all labels of an item with the following query:
SELECT DISTINCT ?team ?labels WHERE {
?team wdt:P31 wd:Q13393265.
?team rdfs:label ?labels.
}
LIMIT 10
But how would I go about only getting distinct labels (so no duplicates)?
I've tried the following:
SELECT DISTINCT ?team ?labels WHERE {
?team wdt:P31 wd:Q13393265.
{
SELECT DISTINCT * WHERE
{
?team rdfs:label ?labels.
}
}
}
LIMIT 10
But the results still contain duplicate labels.
PS: limits are only set, so queries are fast while debugging. Once it works as intended, there will not be a limit