John Skiles Skinner
John Skiles Skinner

Reputation: 2028

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.

Upvotes: 0

Views: 659

Answers (0)

Related Questions