query-58f03d60b7ef78fdf4da5a0fb0e267df
title: Get the lemma for an inflected word in English
Author: So9q
2021-07-25
inspired by https://sinaahmadi.github.io/posts/10-essential-sparql-queries-for-lexicographical-data-on-wikidata.html
SELECT DISTINCT ?l ?word ?lemma WHERE { VALUES ?word { "bought"@en } ?l dct:language wd:Q1860 ; wikibase:lemma ?lemma ; ontolex:lexicalForm ?form . ?form ontolex:representation ?word . }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
#title: Get the lemma for an inflected word in English
# Author: So9q
# 2021-07-25
# inspired by https://sinaahmadi.github.io/posts/10-essential-sparql-queries-for-lexicographical-data-on-wikidata.html
SELECT DISTINCT ?l ?word ?lemma WHERE {
VALUES ?word { "bought"@en }
?l dct:language wd:Q1860 ;
wikibase:lemma ?lemma ;
ontolex:lexicalForm ?form .
?form ontolex:representation ?word .
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?form")
v2("?l"):::projected
v3("?lemma"):::projected
v1("?word"):::projected
c2(["wd:Q1860"]):::iri
bind0[/VALUES ?word/]
bind0-->v1
bind00([sbought^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind00 --> bind0
v2 --"dct:language"--> c2
v2 --"wikibase:lemma"--> v3
v2 --"ontolex:lexicalForm"--> v4
v4 --"ontolex:representation"--> v1