Skip to content

Commit 9a13dd3

Browse files
committed
#7 remove repeat conditions from es and it verb queries
1 parent 93e7715 commit 9a13dd3

File tree

2 files changed

+30
-216
lines changed

2 files changed

+30
-216
lines changed

src/scribe_data/extract_transform/Italian/verbs/query_verbs.sparql

+15-108
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ SELECT
2626
wikibase:grammaticalFeature wd:Q110786 ;
2727
wikibase:grammaticalFeature wd:Q192613 ;
2828
} .
29-
OPTIONAL {
30-
?lexeme ontolex:lexicalForm ?presFPSForm .
31-
?presFPSForm ontolex:representation ?presFPS ;
32-
wikibase:grammaticalFeature wd:Q51929218 ;
33-
wikibase:grammaticalFeature wd:Q192613 ;
34-
} .
29+
3530
# SPS
3631
OPTIONAL {
3732
?lexeme ontolex:lexicalForm ?presSPSForm .
@@ -40,12 +35,7 @@ SELECT
4035
wikibase:grammaticalFeature wd:Q110786 ;
4136
wikibase:grammaticalFeature wd:Q192613 ;
4237
} .
43-
OPTIONAL {
44-
?lexeme ontolex:lexicalForm ?presSPSForm .
45-
?presSPSForm ontolex:representation ?presSPS ;
46-
wikibase:grammaticalFeature wd:Q51929369 ;
47-
wikibase:grammaticalFeature wd:Q192613 ;
48-
} .
38+
4939
# TPS
5040
OPTIONAL {
5141
?lexeme ontolex:lexicalForm ?presTPSForm .
@@ -54,12 +44,7 @@ SELECT
5444
wikibase:grammaticalFeature wd:Q110786 ;
5545
wikibase:grammaticalFeature wd:Q192613 ;
5646
} .
57-
OPTIONAL {
58-
?lexeme ontolex:lexicalForm ?presTPSForm .
59-
?presTPSForm ontolex:representation ?presTPS ;
60-
wikibase:grammaticalFeature wd:Q51929447 ;
61-
wikibase:grammaticalFeature wd:Q192613 ;
62-
} .
47+
6348
# FPP
6449
OPTIONAL {
6550
?lexeme ontolex:lexicalForm ?presFPPForm .
@@ -68,12 +53,7 @@ SELECT
6853
wikibase:grammaticalFeature wd:Q146786 ;
6954
wikibase:grammaticalFeature wd:Q192613 ;
7055
} .
71-
OPTIONAL {
72-
?lexeme ontolex:lexicalForm ?presFPPForm .
73-
?presFPPForm ontolex:representation ?presFPP ;
74-
wikibase:grammaticalFeature wd:Q51929290 ;
75-
wikibase:grammaticalFeature wd:Q192613 ;
76-
} .
56+
7757
# SPP
7858
OPTIONAL {
7959
?lexeme ontolex:lexicalForm ?presSPPForm .
@@ -82,12 +62,7 @@ SELECT
8262
wikibase:grammaticalFeature wd:Q146786 ;
8363
wikibase:grammaticalFeature wd:Q192613 ;
8464
} .
85-
OPTIONAL {
86-
?lexeme ontolex:lexicalForm ?presSPPForm .
87-
?presSPPForm ontolex:representation ?presSPP ;
88-
wikibase:grammaticalFeature wd:Q51929403 ;
89-
wikibase:grammaticalFeature wd:Q192613 ;
90-
} .
65+
9166
# TPP
9267
OPTIONAL {
9368
?lexeme ontolex:lexicalForm ?presTPPForm .
@@ -96,12 +71,6 @@ SELECT
9671
wikibase:grammaticalFeature wd:Q146786 ;
9772
wikibase:grammaticalFeature wd:Q192613 ;
9873
} .
99-
OPTIONAL {
100-
?lexeme ontolex:lexicalForm ?presTPPForm .
101-
?presTPPForm ontolex:representation ?presTPP ;
102-
wikibase:grammaticalFeature wd:Q51929517 ;
103-
wikibase:grammaticalFeature wd:Q192613 ;
104-
} .
10574

10675
# Preterite
10776

@@ -113,12 +82,7 @@ SELECT
11382
wikibase:grammaticalFeature wd:Q110786 ;
11483
wikibase:grammaticalFeature wd:Q442485 ;
11584
} .
116-
OPTIONAL {
117-
?lexeme ontolex:lexicalForm ?pretFPSForm .
118-
?pretFPSForm ontolex:representation ?pretFPS ;
119-
wikibase:grammaticalFeature wd:Q51929218 ;
120-
wikibase:grammaticalFeature wd:Q442485 ;
121-
} .
85+
12286
# SPS
12387
OPTIONAL {
12488
?lexeme ontolex:lexicalForm ?pretSPSForm .
@@ -127,12 +91,7 @@ SELECT
12791
wikibase:grammaticalFeature wd:Q110786 ;
12892
wikibase:grammaticalFeature wd:Q442485 ;
12993
} .
130-
OPTIONAL {
131-
?lexeme ontolex:lexicalForm ?pretSPSForm .
132-
?pretSPSForm ontolex:representation ?pretSPS ;
133-
wikibase:grammaticalFeature wd:Q51929369 ;
134-
wikibase:grammaticalFeature wd:Q442485 ;
135-
} .
94+
13695
# TPS
13796
OPTIONAL {
13897
?lexeme ontolex:lexicalForm ?pretTPSForm .
@@ -141,12 +100,7 @@ SELECT
141100
wikibase:grammaticalFeature wd:Q110786 ;
142101
wikibase:grammaticalFeature wd:Q442485 ;
143102
} .
144-
OPTIONAL {
145-
?lexeme ontolex:lexicalForm ?pretTPSForm .
146-
?pretTPSForm ontolex:representation ?pretTPS ;
147-
wikibase:grammaticalFeature wd:Q51929447 ;
148-
wikibase:grammaticalFeature wd:Q442485 ;
149-
} .
103+
150104
# FPP
151105
OPTIONAL {
152106
?lexeme ontolex:lexicalForm ?pretFPPForm .
@@ -155,12 +109,7 @@ SELECT
155109
wikibase:grammaticalFeature wd:Q146786 ;
156110
wikibase:grammaticalFeature wd:Q442485 ;
157111
} .
158-
OPTIONAL {
159-
?lexeme ontolex:lexicalForm ?pretFPPForm .
160-
?pretFPPForm ontolex:representation ?pretFPP ;
161-
wikibase:grammaticalFeature wd:Q51929290 ;
162-
wikibase:grammaticalFeature wd:Q442485 ;
163-
} .
112+
164113
# SPP
165114
OPTIONAL {
166115
?lexeme ontolex:lexicalForm ?pretSPPForm .
@@ -169,12 +118,7 @@ SELECT
169118
wikibase:grammaticalFeature wd:Q146786 ;
170119
wikibase:grammaticalFeature wd:Q442485 ;
171120
} .
172-
OPTIONAL {
173-
?lexeme ontolex:lexicalForm ?pretSPPForm .
174-
?pretSPPForm ontolex:representation ?pretSPP ;
175-
wikibase:grammaticalFeature wd:Q51929403 ;
176-
wikibase:grammaticalFeature wd:Q442485 ;
177-
} .
121+
178122
# TPP
179123
OPTIONAL {
180124
?lexeme ontolex:lexicalForm ?pretTPPForm .
@@ -183,12 +127,6 @@ SELECT
183127
wikibase:grammaticalFeature wd:Q146786 ;
184128
wikibase:grammaticalFeature wd:Q442485 ;
185129
} .
186-
OPTIONAL {
187-
?lexeme ontolex:lexicalForm ?pretTPPForm .
188-
?pretTPPForm ontolex:representation ?pretTPP ;
189-
wikibase:grammaticalFeature wd:Q51929517 ;
190-
wikibase:grammaticalFeature wd:Q442485 ;
191-
} .
192130

193131
# Imperfect
194132

@@ -200,12 +138,7 @@ SELECT
200138
wikibase:grammaticalFeature wd:Q110786 ;
201139
wikibase:grammaticalFeature wd:Q12547192 ;
202140
} .
203-
OPTIONAL {
204-
?lexeme ontolex:lexicalForm ?impFPSForm .
205-
?impFPSForm ontolex:representation ?impFPS ;
206-
wikibase:grammaticalFeature wd:Q51929218 ;
207-
wikibase:grammaticalFeature wd:Q12547192 ;
208-
} .
141+
209142
# SPS
210143
OPTIONAL {
211144
?lexeme ontolex:lexicalForm ?impSPSForm .
@@ -214,12 +147,7 @@ SELECT
214147
wikibase:grammaticalFeature wd:Q110786 ;
215148
wikibase:grammaticalFeature wd:Q12547192 ;
216149
} .
217-
OPTIONAL {
218-
?lexeme ontolex:lexicalForm ?impSPSForm .
219-
?impSPSForm ontolex:representation ?impSPS ;
220-
wikibase:grammaticalFeature wd:Q51929369 ;
221-
wikibase:grammaticalFeature wd:Q12547192 ;
222-
} .
150+
223151
# TPS
224152
OPTIONAL {
225153
?lexeme ontolex:lexicalForm ?impTPSForm .
@@ -228,12 +156,7 @@ SELECT
228156
wikibase:grammaticalFeature wd:Q110786 ;
229157
wikibase:grammaticalFeature wd:Q12547192 ;
230158
} .
231-
OPTIONAL {
232-
?lexeme ontolex:lexicalForm ?impTPSForm .
233-
?impTPSForm ontolex:representation ?impTPS ;
234-
wikibase:grammaticalFeature wd:Q51929447 ;
235-
wikibase:grammaticalFeature wd:Q12547192 ;
236-
} .
159+
237160
# FPP
238161
OPTIONAL {
239162
?lexeme ontolex:lexicalForm ?impFPPForm .
@@ -242,12 +165,7 @@ SELECT
242165
wikibase:grammaticalFeature wd:Q146786 ;
243166
wikibase:grammaticalFeature wd:Q12547192 ;
244167
} .
245-
OPTIONAL {
246-
?lexeme ontolex:lexicalForm ?impFPPForm .
247-
?impFPPForm ontolex:representation ?impFPP ;
248-
wikibase:grammaticalFeature wd:Q51929290 ;
249-
wikibase:grammaticalFeature wd:Q12547192 ;
250-
} .
168+
251169
# SPP
252170
OPTIONAL {
253171
?lexeme ontolex:lexicalForm ?impSPPForm .
@@ -256,12 +174,7 @@ SELECT
256174
wikibase:grammaticalFeature wd:Q146786 ;
257175
wikibase:grammaticalFeature wd:Q12547192 ;
258176
} .
259-
OPTIONAL {
260-
?lexeme ontolex:lexicalForm ?impSPPForm .
261-
?impSPPForm ontolex:representation ?impSPP ;
262-
wikibase:grammaticalFeature wd:Q51929403 ;
263-
wikibase:grammaticalFeature wd:Q12547192 ;
264-
} .
177+
265178
# TPP
266179
OPTIONAL {
267180
?lexeme ontolex:lexicalForm ?impTPPForm .
@@ -270,10 +183,4 @@ SELECT
270183
wikibase:grammaticalFeature wd:Q146786 ;
271184
wikibase:grammaticalFeature wd:Q12547192 ;
272185
} .
273-
OPTIONAL {
274-
?lexeme ontolex:lexicalForm ?impTPPForm .
275-
?impTPPForm ontolex:representation ?impTPP ;
276-
wikibase:grammaticalFeature wd:Q51929517 ;
277-
wikibase:grammaticalFeature wd:Q12547192 ;
278-
} .
279186
}

0 commit comments

Comments
 (0)