-
Notifications
You must be signed in to change notification settings - Fork 1
/
HTRC_textFeatureRdf.n3
282 lines (224 loc) · 9.12 KB
/
HTRC_textFeatureRdf.n3
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
@prefix afo: <https://w3id.org/afo/onto/1.1#> .
@prefix afv: <https://w3id.org/afo/vocab/1.1#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix event: <http://purl.org/NET/c4dm/event.#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix htrc: <http://example.org/htrc#>.
@prefix opennlp: <http://example.org/opennlp#>.
htrc:TextFeature a [ a owl:Restriction ;
owl:allValuesFrom afo:Operation ;
owl:onProperty afo:operation ],
[ a owl:Restriction ;
owl:cardinality "1"^^xsd:int ;
owl:onProperty afo:operation ],
owl:Class ;
rdfs:label "Text Feature"@en ;
rdfs:comment "Represents abstract conceptualisation of a text feature"@en ;
rdfs:subClassOf event:Event .
#LDA
opennlp:LDA a owl:Class ;
rdfs:label "LDA"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:LDAModel.
htrc:LDAModel a afo:Model ;
rdfs:label "LDA Model"@en ;
rdfs:comment "Topic Modeling technique that takes each text or document as a bag of words" ;
afo:sequence htrc:LDA_operation_sequence.
htrc:LDA_operation_1 a htrc:Tokenization ;
rdfs:label "LDA_operation_1"@en ;
rdfs:comment "LDA sequence step 1";
afo:next_operation htrc:LDA_operation_2 .
htrc:LDA_operation_2 a htrc:POStagMethod ;
rdfs:label "LDA_operation_2"@en ;
rdfs:comment "LDA sequence step 2" ;
afo:next_operation htrc:LDA_operation_3 .
htrc:LDA_operation_3 a htrc:ProbsMethod ;
rdfs:label "LDA_operation_3"@en ;
rdfs:comment "LDA sequence step 3" ;
afo:next_operation htrc:LDA_operation_4 .
htrc:LDA_operation_4 a htrc:TopKSequencesMethod ;
rdfs:label "LDA_operation_4"@en ;
rdfs:comment "LDA sequence step 4" ;
afo:next_operation htrc:LDA_operation_5 .
htrc:LDA_operation_5 a htrc:Lemmatization ;
rdfs:label "LDA_operation_5"@en ;
rdfs:comment "LDA sequence step 5" ;
afo:next_operation htrc:LDA_operation_6 .
htrc:LDA_operation_6 a htrc:CaseFolding;
rdfs:label "LDA_operation_6"@en ;
rdfs:comment "LDA sequence step 6" ;
afo:next_operation htrc:LDA_operation_7 .
htrc:LDA_operation_7 a afo:LastOperation,
htrc:StopListing;
rdfs:label "LDA_operation_7"@en ;
rdfs:comment "LDA sequence step 7".
htrc:LDA_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:LDA_operation_1.
#Chunker
opennlp:Chunker a owl:Class ;
rdfs:label "Chunker"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:ChunkerModel.
htrc:ChunkerModel a afo:Model ;
rdfs:label "Chunker Model"@en ;
rdfs:comment "The Part of Speech Tagger marks tokens with their corresponding word type based on the token itself and the context of the token" ;
afo:sequence htrc:Chunker_operation_sequence .
htrc:Chunker_operation_1 a htrc:Tokenization ;
rdfs:label "Chunker_operation_1"@en ;
rdfs:comment "Chunker sequence step 1";
afo:next_operation htrc:Chunker_operation_2 .
htrc:Chunker_operation_2 a htrc:POStagMethod ;
rdfs:label "Chunker_operation_2"@en ;
rdfs:comment "Chunker sequence step 2" ;
afo:next_operation htrc:Chunker_operation_3 .
htrc:Chunker_operation_3 a htrc:ProbsMethod ;
rdfs:label "Chunker_operation_3"@en ;
rdfs:comment "Chunker sequence step 3" ;
afo:next_operation htrc:Chunker_operation_4 .
htrc:Chunker_operation_4 a afo:LastOperation,
htrc:TopKSequencesMethod ;
rdfs:label "Chunker_operation_4"@en ;
rdfs:comment "Chunker sequence step 4".
htrc:Chunker_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:Chunker_operation_1.
#Name Entity Recognition
opennlp:NER a owl:Class ;
rdfs:label "NER"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:NERModel.
htrc:NERModel a afo:Model ;
rdfs:label "NER Model"@en ;
rdfs:comment "Detect names in text" ;
afo:sequence htrc:NER_operation_sequence .
htrc:NER_operation_1 a htrc:SentenceSegmentation ;
rdfs:label "NER_operation_1"@en ;
rdfs:comment "NER sequence step 1";
afo:next_operation htrc:NER_operation_2 .
htrc:NER_operation_2 a htrc:Tokenization ;
rdfs:label "NER_operation_2"@en ;
rdfs:comment "NER sequence step 2";
afo:next_operation htrc:NER_operation_3.
htrc:NER_operation_3 a htrc:POStagMethod ;
rdfs:label "NER_operation_3"@en ;
rdfs:comment "NER sequence step 3" ;
afo:next_operation htrc:LDA_operation_4 .
htrc:NER_operation_4 a htrc:ImportCorpus ;
rdfs:label "NER_operation_4"@en ;
rdfs:comment "NER sequence step 4" ;
afo:next_operation htrc:LDA_operation_5 .
htrc:NER_operation_5 a afo:LastOperation,
htrc:NameExtraction ;
rdfs:label "NER_operation_5"@en ;
rdfs:comment "NER sequence step 5".
htrc:NER_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:NER_operation_1.
#Tokenizer
opennlp:Tokenizer a owl:Class ;
rdfs:label "Tokenizer"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:TokenizerModel.
htrc:TokenizerModel a afo:Model ;
rdfs:label "Tokenizer Model"@en ;
rdfs:comment "Tokenizers segment an input character sequence into tokens" ;
afo:sequence htrc:Tokenizer_operation_sequence .
htrc:Tokenizer_operation_1 a htrc:SentenceSegmentation ;
rdfs:label "Tokenizer_operation_1"@en ;
rdfs:comment "Tokenizer sequence step 1" ;
afo:next_operation htrc:Tokenizer_operation_2 .
htrc:Tokenizer_operation_2 a afo:LastOperation,
htrc:Tokenization ;
rdfs:label "Tokenizer_operation_2"@en ;
rdfs:comment "Tokenizer sequence step 2".
htrc:Tokenizer_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:Tokenizer_operation_1.
#Sentence Detector
opennlp:SentenceDetector a owl:Class ;
rdfs:label "Sentence Detector"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:SentenceDetectorModel.
htrc:SentenceDetectorModel a afo:Model ;
rdfs:label "SentenceDetector Model"@en ;
rdfs:comment "detect that a punctuation character marks the end of a sentence or not" ;
afo:sequence htrc:SentenceDetector_operation_sequence .
htrc:SentenceDetector_operation_1 a htrc:SentenceSegmentation ;
rdfs:label "SentenceDetector_operation_1"@en ;
rdfs:comment "SentenceDetector sequence step 1".
htrc:SentenceDetector_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:SentenceDetector_operation_1.
#POStagger
opennlp:POStagger a owl:Class ;
rdfs:label "POStagger"@en ;
rdfs:subClassOf htrc:TextFeature ;
afo:model htrc:POStaggerModel.
htrc:POStaggerModel a afo:Model ;
rdfs:label "POStagger Model"@en ;
rdfs:comment "The Part of Speech Tagger marks tokens with their corresponding word type based on the token itself and the context of the token" ;
afo:sequence htrc:POStagger_operation_sequence .
htrc:POStagger_operation_1 a htrc:Tokenization ;
rdfs:label "POStagger_operation_1"@en ;
rdfs:comment "POStagger sequence step 1";
afo:next_operation htrc:POStagger_operation_2 .
htrc:POStagger_operation_2 a htrc:POStagMethod ;
rdfs:label "POStagger_operation_2"@en ;
rdfs:comment "POStagger sequence step 2" ;
afo:next_operation htrc:POStagger_operation_3 .
htrc:POStagger_operation_3 a htrc:ProbsMethod ;
rdfs:label "POStagger_operation_3"@en ;
rdfs:comment "POStagger sequence step 3" ;
afo:next_operation htrc:POStagger_operation_4 .
htrc:POStagger_operation_4 a afo:LastOperation,
htrc:TopKSequencesMethod ;
rdfs:label "POStagger_operation_4"@en ;
rdfs:comment "POStagger sequence step 4".
htrc:POStagger_operation_sequence a afo:OperationSequence ;
afo:first_operation htrc:POStagger_operation_1.
#All the operations
htrc:Tokenization a owl:Class ;
rdfs:label "Tokenization",
"Tokenization"@en ;
rdfs:comment "Tokenizers segment an input character sequence into tokens";
rdfs:subClassOf htrc:TextFeature.
htrc:POStagMethod a owl:Class ;
rdfs:label "POStagMethod",
"POStagMethod"@en ;
rdfs:comment "POS tagger";
rdfs:subClassOf htrc:TextFeature.
htrc:ProbsMethod a owl:Class ;
rdfs:label "ProbsMethod",
"ProbsMethod"@en ;
rdfs:comment "Probability method";
rdfs:subClassOf htrc:TextFeature.
htrc:TopKSequencesMethod a owl:Class ;
rdfs:label "TopKSequencesMethod",
"TopKSequencesMethod"@en ;
rdfs:comment "Top K Sequences Method";
rdfs:subClassOf htrc:TextFeature.
htrc:StopListing a owl:Class ;
rdfs:label "StopListing",
"StopListing"@en ;
rdfs:comment "removing words against a list of common, generally less interesting words";
rdfs:subClassOf htrc:TextFeature.
htrc:CaseFolding a owl:Class ;
rdfs:label "CaseFolding",
"CaseFolding"@en ;
rdfs:comment "Uppercases and lowercases fold into the same cases";
rdfs:subClassOf htrc:TextFeature.
htrc:Lemmatization a owl:Class ;
rdfs:label "Lemmatization",
"Lemmatization"@en ;
rdfs:comment "folding variants of words together, for example baking,bakes,baked";
rdfs:subClassOf htrc:TextFeature.
htrc:SentenceSegmentation a owl:Class ;
rdfs:label "Sentence Segmentation";
rdfs:comment "Splitting sentences";
rdfs:subClassOf htrc:TextFeature.
htrc:ImportCorpus a owl:Class ;
rdfs:label "Import Corpus";
rdfs:comment "Importing CoNLL, MUC or ACE corpus";
rdfs:subClassOf htrc:TextFeature.
htrc:NameExtraction a owl:Class ;
rdfs:label "Name Extraction";
rdfs:comment "Extract names based on corpus";
rdfs:subClassOf htrc:TextFeature.