Project:Example Queries: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 74: Line 74:
To get all of the terms derived from a given etymon, you can use the following:
To get all of the terms derived from a given etymon, you can use the following:


<syntaxhighlight lang="sparql">SELECT ?item ?itemLabel
<syntaxhighlight lang="sparql">SELECT ?l ?lemma ?languageLabel
WHERE  
WHERE  
{
{
   ?item wdt:P49 wd:Q21.  
   ?l a ontolex:LexicalEntry;
    dct:language ?language;
    wikibase:lemma ?lemma .
  ?l wdt:P32 wd:L127.  
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}</syntaxhighlight>
}</syntaxhighlight>

Navigation menu