-
Notifications
You must be signed in to change notification settings - Fork 0
/
latinwordnet_synset.rq
43 lines (42 loc) · 1.53 KB
/
latinwordnet_synset.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX lila: <http://lila-erc.eu/ontologies/lila/>
PREFIX powla: <http://purl.org/powla/powla.owl#>
PREFIX lime: <http://www.w3.org/ns/lemon/lime#>
PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX corpora: <http://lila-erc.eu/ontologies/lila_corpora/>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX ittb: <http://lila-erc.eu/data/corpora/ITTB/id/synFunction/>
PREFIX lilacorpora: <http://lila-erc.eu/ontologies/lila_corpora/>
prefix wn: <https://globalwordnet.github.io/schemas/wn#>
# Retrieve all the lemmas belonging to a specific synset
select ?lemma ?lab ?base ?syn where {
{
values ?syn {
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/02593467-v>
}
?le ontolex:canonicalForm ?lemma ;
ontolex:evokes ?syn .
?lemma rdfs:label ?lab ;
lila:hasBase ?base .
}
UNION
{
?le ontolex:canonicalForm ?lemma ;
ontolex:evokes ?syn .
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/02593467-v> wn:hypernym ?syn .
?lemma rdfs:label ?lab ;
lila:hasBase ?base .
}
UNION
{
?le ontolex:canonicalForm ?l ;
ontolex:evokes ?syn_syn .
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/02593467-v> wn:hypernym ?syn_syn .
?l lila:hasBase ?base .
?lemma a lila:Lemma ;
lila:hasPOS lila:verb;
lila:hasBase ?base ;
rdfs:label ?lab .
}
}