-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathittbTreeObj.rq
82 lines (72 loc) · 3.41 KB
/
ittbTreeObj.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#>
PREFIX lime: <http://www.w3.org/ns/lemon/lime#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
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/>
prefix lilacorpora: <http://lila-erc.eu/ontologies/lila_corpora/>
prefix lila: <http://lila-erc.eu/ontologies/lila/>
prefix UDSynFunction: <https://universaldependencies.org/u/dep/>
prefix ITTBSynFunction: <http://lila-erc.eu/data/corpora/ITTB/id/synFunction/>
prefix wn: <https://globalwordnet.github.io/schemas/wn#>
# Chains in the ITTB where a common or proper noun depends as Obj in the PDT formalism and as obj in the UD formalism, on a verb belonging to either synset of "cause to seem less serious; play down" or "fight against or resist strongly", and is head of an adjective (in the LemmaBank) with positive polarity.
SELECT distinct ?tokenNoun ?tokenAdjLabel ?tokenNounLabel ?tokenVerbLabel ?wordnetSys
WHERE {
VALUES ?corpora {
<http://lila-erc.eu/data/corpora/ITTB/id/corpus>
}
VALUES ?synFunctionsUD {
UDSynFunction:obj
}
VALUES ?pos {
<http://lila-erc.eu/ontologies/lila/proper_noun> <http://lila-erc.eu/ontologies/lila/noun>
}
VALUES ?synFunctionsPDT {
ITTBSynFunction:Obj
}
VALUES ?wordnetSys {
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/01093838-v> <http://lila-erc.eu/data/lexicalResources/LatinWordNet/id/LexicalConcept/00866139-v>
}
VALUES ?liber {
<http://lila-erc.eu/data/corpora/ITTB/id/citationUnit/005.LB4.>
}
?corpora powla:hasSubDocument ?doc.
?citLayer powla:hasDocument ?doc.
?citLayer lilaCorpora:isLayer ?liber.
?liber lilaCorpora:hasCitSubUnit*/powla:hasChild ?tokenNoun.
?tokenNoun powla:hasLayer/powla:hasDocument ?doc.
?tokenNoun rdf:type powla:Terminal;
lila:hasLemma ?lemmaNoun ;
powla:hasStringValue ?tokenNounLabel.
?lemmaNoun lila:hasPOS ?pos ;
rdfs:label ?lemmaNounLabel.
?tokenVerb lila:hasLemma ?lemmaVerb ;
powla:hasStringValue ?tokenVerbLabel.
?lemmaVerb lila:hasPOS <http://lila-erc.eu/ontologies/lila/verb> ;
rdfs:label ?lemmaVerbLabel.
<http://lila-erc.eu/data/lexicalResources/LatinWordNet/Lexicon> lime:entry ?leWordnet.
?leWordnet ontolex:canonicalForm ?lemmaVerb;
ontolex:evokes ?wordnetSys.
?rel rdf:type ?synFunctionsPDT ,lilacorpora:DependencyRel ;
lilacorpora:hasHead ?tokenVerb ;
lilacorpora:hasDep ?tokenNoun .
minus{
?rel2 rdf:type ?synFunctionsUD ,lilacorpora:DependencyRel ;
lilacorpora:hasHead ?tokenVerb ;
lilacorpora:hasDep ?tokenNoun .
}
?relAdj rdf:type lilacorpora:DependencyRel ;
lilacorpora:hasHead ?tokenNoun ;
lilacorpora:hasDep ?adjToken .
?adjToken rdf:type powla:Terminal;
lila:hasLemma ?lemmaAdj;
powla:hasStringValue ?tokenAdjLabel.
?lemmaAdj lila:hasPOS <http://lila-erc.eu/ontologies/lila/adjective>;
rdfs:label ?lemmaAdjLabel.
<http://lila-erc.eu/data/lexicalResources/LatinAffectus/Lexicon> lime:entry ?leLemmaAdj.
?leLemmaAdj ontolex:canonicalForm ?lemmaAdj;
ontolex:sense ?latinAffectusSense.
?latinAffectusSense marl:hasPolarity marl:Positive.
}