205,551
edits
Superraptor (talk | contribs) No edit summary |
Superraptor (talk | contribs) No edit summary |
||
Line 83: | Line 83: | ||
=== Lexemes === | === Lexemes === | ||
==== Instances of lexemes derived from a particular lexeme ==== | |||
This query returns all instances of lexemes wherein at least one of the indicated etyma is the lexeme 'queen' (L127). It uses the service wikibase:label to return the labels in your default language or in English. | |||
<sparql tryit="1">PREFIX wd: <https://lgbtdb.wikibase.cloud/entity/> | |||
PREFIX wdt: <https://lgbtdb.wikibase.cloud/prop/direct/> | |||
SELECT ?l ?lemma ?languageLabel | |||
WHERE | |||
{ | |||
?l a ontolex:LexicalEntry; # Indicates that the entity is of the type lexical entry | |||
dct:language ?language; # Returns the language | |||
wikibase:lemma ?lemma . # Returns the lemma | |||
?l wdt:P32 wd:L127. # Returns all lexemes with an etymon for 'queen' indicated. | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en (English) language | |||
} | |||
</sparql> | |||
[[Category:Query Service]] | [[Category:Query Service]] |