'Find synonym for a specific word with Wikidata SPARQL

I'm trying to construct a query for https://query.wikidata.org/ that finds synonyms for a given string. I know it will involve finding lemmas of the particular string (the string is "kind" in this example) and the P5973 synonym property. This returns zero results:

select ?lexeme ?lemma ?synonym WHERE {
  ?lexeme wikibase:lemma ?lemma.
  FILTER (?lemma ='kind')
  ?lexeme wdt:P5973 ?synonym .
}

I've used the string kind in this example. I would like to return synonyms for all meanings of the word kind, so both empathetic and type would be correct responses.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source