-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaslaPatior.rq
50 lines (45 loc) · 1.84 KB
/
laslaPatior.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
PREFIX po: <http://purl.org/ontology/po/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dcterm: <http://purl.org/dc/terms/>
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 ITTBSynFunction: <http://lila-erc.eu/data/corpora/ITTB/id/synFunction/>
# Given a lexical base (patior), find all the lemmas of that lexical base in Dante and ITTB and Seneca
SELECT ?sameBaseLemma ?sameBaseLemmaLabel ?doc ?docTitle
WHERE {
{
select ?sameBaseLemma ?doc ?docTitle where{
VALUES ?copora {
<http://lila-erc.eu/data/corpora/ITTB/id/corpus> <http://lila-erc.eu/data/corpora/UDante/id/corpus> <http://lila-erc.eu/data/corpora/LASLA/id/corpus>
}
VALUES ?base {
<http://lila-erc.eu/data/id/base/942>
}
?sameBaseLemma lila:hasBase ?base.
?token rdf:type powla:Terminal;
lila:hasLemma ?sameBaseLemma .
?token powla:hasLayer/powla:hasDocument ?doc.
?doc dc:title ?docTitle .
?token powla:hasLayer/powla:hasDocument/^powla:hasSubDocument ?copora .
}
}
UNION{
select ?sameBaseLemma ?doc ?docTitle where{
VALUES ?base {
<http://lila-erc.eu/data/id/base/942>
}
?doc dcterms:creator <http://www.wikidata.org/entity/Q2054>.
?sameBaseLemma lila:hasBase ?base.
?tokenSeneca rdf:type powla:Terminal;
lila:hasLemma ?sameBaseLemma .
?tokenSeneca powla:hasLayer/powla:hasDocument ?doc.
?doc dc:title ?docTitle .
}
}
?sameBaseLemma rdfs:label ?sameBaseLemmaLabel.
}group by ?sameBaseLemma ?sameBaseLemmaLabel ?docTitle
order by ?sameBaseLemma ?docTitle