-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUDante-syntax.rq
35 lines (32 loc) · 1.34 KB
/
UDante-syntax.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
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/>
# Given the lemma "loquor" gives all the lemmas that are annotated as nsubj in Dante and subj ITTB
SELECT ?subLemmaLabel ?docTitle
WHERE {
VALUES ?copora {
<http://lila-erc.eu/data/corpora/ITTB/id/corpus> <http://lila-erc.eu/data/corpora/UDante/id/corpus>
}
VALUES ?synFunctions {
UDSynFunction:nsubj ITTBSynFunction:Sb
}
?token rdf:type powla:Terminal;
lila:hasLemma <http://lila-erc.eu/data/id/lemma/110805> .
?rel rdf:type ?synFunctions;
lilacorpora:hasHead ?token ;
lilacorpora:hasDep ?subj .
?subj lila:hasLemma ?subjLemma .
?token powla:hasLayer/powla:hasDocument/^powla:hasSubDocument ?copora .
?token powla:hasLayer/powla:hasDocument ?doc.
?doc dc:title ?docTitle .
VALUES ?nounPos {
lila:proper_noun lila:noun
}
?subjLemma lila:hasPOS ?nounPos .
?subjLemma rdfs:label ?subLemmaLabel.
}group by ?subjLemma ?subLemmaLabel ?docTitle