SPARQL queries: Difference between revisions

Jump to navigation Jump to search
Line 10: Line 10:
order by lcase(?lemma)
order by lcase(?lemma)
</sparql>
</sparql>
=Senses and sense descriptions=
<sparql tryit="1">
#this lists entries that have senses and sense descriptions
select ?entry ?lemma ?posLabel (group_concat(concat(str(?sensegloss)," (",lang(?sensegloss),")");SEPARATOR="; ") as ?sense_descriptions)
where {
?entry a ontolex:LexicalEntry;
      wikibase:lemma ?lemma;
      wikibase:lexicalCategory [rdfs:label ?posLabel] . filter(lang(?posLabel)="en")
?entry ontolex:sense [skos:definition ?sensegloss].
} group by ?entry ?lemma ?posLabel ?sense_descriptions
limit 100 # remove the limit and get all entries that have sense descriptions
</sparql>
=Dialectal lemma variants=
=Dialectal lemma variants=
<sparql tryit="1">
<sparql tryit="1">

Navigation menu