-
Notifications
You must be signed in to change notification settings - Fork 0
/
UDante-synset.rq
52 lines (50 loc) · 1.79 KB
/
UDante-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
44
45
46
47
48
49
50
51
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
prefix wn: <http://wordnet-rdf.princeton.edu/ontology#>
PREFIX lila: <http://lila-erc.eu/ontologies/lila/>
PREFIX lilacorpora: <http://lila-erc.eu/ontologies/lila_corpora/>
PREFIX powla: <http://purl.org/powla/powla.owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
# Find all the lemmas of the synset (to reign) http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/02593467-v
SELECT ?lemma ?lemmaWrs ?docTitle
WHERE {
VALUES ?documentSummaCG {
<http://lila-erc.eu/data/corpora/ITTB/id/citationUnit/005.>
} .
{
SELECT ?lemma (GROUP_CONCAT (DISTINCT ?wr ;
separator=", ") as ?lemmaWrs)
WHERE {
VALUES ?syn {
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/02593467-v>
} .
{
SELECT ?wnLemma ?syn
WHERE {
{
?le ontolex:evokes ?syn;
ontolex:canonicalForm ?wnLemma .
}
UNION{
?syn wn:hypernym ?hyp .
?le ontolex:evokes ?hyp;
ontolex:canonicalForm ?wnLemma .
}
}group by ?wnLemma ?syn
}
?wnLemma lila:hasBase ?base .
?lemma lila:hasBase ?base ;
lila:hasPOS lila:verb ;
ontolex:writtenRep ?wr .
} group by ?lemma
}
VALUES ?copora {
<http://lila-erc.eu/data/corpora/ITTB/id/corpus> <http://lila-erc.eu/data/corpora/UDante/id/corpus>
}
?token lila:hasLemma ?lemma;
rdfs:label ?tokenLabel.
?token powla:hasLayer/powla:hasDocument ?doc.
?token powla:hasLayer/powla:hasDocument/^powla:hasSubDocument ?copora .
?doc dc:title ?docTitle .
}group by ?lemma ?lemmaWrs ?docTitle