Ontological model for s-forms. Repository was moved to https://github.com/kbss-cvut/s-forms-model.
Miroslav Blasko
2022-06-10 6d246ed5fa098a552f421934ce18cbb60d3d3c3e
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
@prefix : <http://onto.fel.cvut.cz/ontologies/form/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix doc: <http://onto.fel.cvut.cz/ontologies/documentation/> .
@prefix form: <http://onto.fel.cvut.cz/ontologies/form/> .
@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 xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 
doc:answer a owl:Class ;
    rdfs:subClassOf form:entity .
 
doc:todo a owl:DatatypeProperty .
 
<http://onto.fel.cvut.cz/ontologies/form> a owl:Ontology ;
    rdfs:comment "Represent form data." ;
    owl:imports <http://onto.fel.cvut.cz/ontologies/documentation> .
 
form:has-comment a owl:ObjectProperty ;
    rdfs:domain form:question ;
    rdfs:range form:comment ;
.
 
form:comment a owl:Class ;
.
form:author a  owl:Class ;
.
 
form:has-author a owl:ObjectProperty ;
    rdfs:label "has author" ;
    rdfs:domain form:comment ;
    rdfs:range form:author ;
.
 
form:has-timestamp a owl:ObjectProperty ;
    rdfs:label "has timestamp" ;
    rdfs:domain form:comment ;
.
 
form:has-comment-value a owl:DatatypeProperty ;
    rdfs:label "has comment value" ;
    rdfs:domain form:comment ;
    rdfs:range xsd:string ;
.
 
form:textual-view a owl:DataProperty ;
    dc:description "Defines a view on the question in textual form, which may also include textual views of its subquestions recursively."
    rdfs:domain doc:question ;
    rdfs:range xsd:string ;
.
 
form:accepts a owl:ObjectProperty ;
    rdfs:label "accepts" ;
    rdfs:domain form:condition ;
    rdfs:range form:question-type .
 
form:accepts-answer-value a owl:AnnotationProperty ;
    rdfs:label "accepts value" ;
    rdfs:domain form:condition .
 
form:accepts-validation-value a owl:DatatypeProperty ;
    rdfs:label "accepts validation value" ;
    dc:description "Defines which validation values (true/false) are permitted for the tested question." ;
    rdfs:domain form:condition ;
    rdfs:range xsd:boolean .
 
form:and-condition a owl:Class ;
    rdfs:label "And condition" ;
    dc:description "Operator to combine different conditions. If all of its sub-conditions are true this condition is evaluated as true." ;
    rdfs:subClassOf form:condition .
 
form:answer-origin a owl:Class ;
    rdfs:label "Answer origin" ;
    dc:description "Class of objects that are used to reconstruct how was a answer created." .
 
form:answered-question a form:question-type,
        owl:Class,
        owl:NamedIndividual ;
    rdfs:label "Represent question that was answered"@en ;
    rdfs:subClassOf doc:question .
 
form:has-answer-origin a owl:ObjectProperty ;
    rdfs:label "has answer origin" ;
    dc:description "Defines entity from which this answer was created." ;
    rdfs:domain doc:question ;
    rdfs:subPropertyOf form:has-origin .
 
form:has-datatype a owl:DatatypeProperty ;
    rdfs:label "has datatype" .
 
form:has-origin-path a owl:DatatypeProperty ;
    rdfs:label "has origin path" ;
    rdfs:range xsd:string .
 
form:has-origin-path-id a owl:DatatypeProperty ;
    rdfs:label "has origin path id" ;
    rdfs:range xsd:string .
 
form:has-origin-type a owl:ObjectProperty ;
    rdfs:label "has origin" ;
    dc:description "Defines type of entity from which this template was created." .
 
form:has-possible-value a owl:ObjectProperty ;
    rdfs:label "has possible value" ;
    rdfs:domain doc:question .
 
form:has-possible-values-query a owl:DatatypeProperty ;
    rdfs:label "has possible value query" ;
    rdfs:domain doc:question .
 
form:has-preceding-question a owl:ObjectProperty ;
    rdfs:label "has preceding question" ;
    dc:description "Defines that this question follows (typicaly chronologically) specified question." ;
    rdfs:domain doc:question ;
    rdfs:range doc:question .
 
form:has-preceding-template a owl:ObjectProperty ;
    rdfs:label "has preceding question template" ;
    dc:description "Defines that this question template follows (typicaly chronologically) specified question template." ;
    rdfs:domain form:question-template ;
    rdfs:range form:question-template .
 
form:has-preceding-value a owl:ObjectProperty ;
    rdfs:label "has preceding question" ;
    dc:description "Defines that this answer value follows (typicaly chronologically) specified answer value." .
 
form:has-question-origin a owl:ObjectProperty ;
    rdfs:label "has question origin" ;
    dc:description "Defines entity from which this question was created." ;
    rdfs:domain doc:question ;
    rdfs:subPropertyOf form:has-origin .
 
form:has-sub-condition a owl:ObjectProperty ;
    rdfs:label "has sub-condition" ;
    rdfs:domain form:condition ;
    rdfs:range form:condition .
 
form:has-subsection a owl:ObjectProperty ;
    rdfs:label "has subsection" .
 
form:has-subtemplate a owl:ObjectProperty ;
    rdfs:domain form:section ;
    rdfs:range form:question-template .
 
form:has-template a owl:ObjectProperty ;
    rdfs:label "has template" .
 
form:has-template-origin a owl:ObjectProperty ;
    rdfs:label "has template origin" ;
    dc:description "Defines entity from which this template was created." ;
    rdfs:domain form:question-template ;
    rdfs:subPropertyOf form:has-origin .
 
form:has-template-relation a owl:ObjectProperty ;
    rdfs:label "has template relation" .
 
form:has-tested-question a owl:ObjectProperty ;
    rdfs:label "has tested question" ;
    dc:description "Determine which questions are tested for this condition. Multiple questions can be tested." ;
    rdfs:domain form:condition ;
    rdfs:range doc:question .
 
form:has-unit a owl:DatatypeProperty ;
    rdfs:label "has unit" ;
    rdfs:range xsd:string .
 
form:inherits-template-from a owl:ObjectProperty ;
    dc:description "Subject inherits properties from its object, i.e. any question created by subject template must also have properties of object template." ;
    rdfs:domain form:question-template ;
    rdfs:range form:question-template .
 
form:is-clone-of-question a owl:ObjectProperty ;
    dc:description "Question within subject of this relation is unmodifiable clone of question within object of this relation." ;
    rdfs:domain doc:question ;
    rdfs:range doc:question .
 
form:is-link-template-of a owl:ObjectProperty ;
    dc:description "Subject of this relation is a template relation (?s_qts_rel) that defines contract how any of its question should be created. Every question created using ?s_qts_rel must be only reference to other question created from ?o_qts_rel, i.e. template relation within object of this relation. Domain and range of this relation is of type reification of ?qt1 has-subtemplate ?qt2." .
 
form:is-relevant-if a owl:ObjectProperty ;
    rdfs:label "is relevant if" ;
    dc:description "States in which context is statement relevant." ;
    rdfs:domain doc:question ;
    rdfs:range form:condition .
 
form:is-valid-answer a owl:ObjectProperty ;
    rdfs:label "has valid answer" ;
    dc:description "Defines  set of answers that need to be valid in order for condition to hold." ;
    rdfs:domain form:condition ;
    rdfs:range doc:question .
 
form:not-answered-question a form:question-type,
        owl:Class,
        owl:NamedIndividual ;
    rdfs:label "Represent question that was not answered"@en ;
    rdfs:subClassOf doc:question .
 
form:not-condition a owl:Class ;
    rdfs:label "Not condition" ;
    dc:description "Operator negates related conditions. If sub-condition evaluates to true it evaluates to false and vice versa." ;
    rdfs:subClassOf form:condition .
 
form:or-condition a owl:Class ;
    rdfs:label "Or condition" ;
    dc:description "Operator to combine different conditions. If any of its sub-conditions is true this condition is evaluated as true." ;
    rdfs:subClassOf form:condition .
 
form:positive-validation-condition a owl:Class ;
    dc:description "Indicates that accept answer value is only  \"true\" of this condition." ;
    rdfs:subClassOf form:validation-result-condition .
 
form:question-origin a owl:Class ;
    rdfs:label "Question origin" ;
    dc:description "Class of objects that are used to reconstruct how was a question created." .
 
form:requires-answer a owl:ObjectProperty ;
    rdfs:label "requires answer" ;
    dc:description "Indicates that question requires answer." ;
    rdfs:domain doc:question .
 
form:requires-answer-description-if a owl:ObjectProperty ;
    rdfs:label "requires answer description" ;
    dc:description "Answer requires descripton." ;
    rdfs:domain doc:question ;
    rdfs:range form:condition .
 
dc:description a owl:AnnotationProperty .
 
form:entity a owl:Class ;
    rdfs:label "entity" ;
    rdfs:subClassOf owl:Thing .
 
form:section a owl:Class ;
    rdfs:subClassOf form:question-template .
 
form:template-entity a owl:Class ;
    rdfs:label "template entity" ;
    rdfs:subClassOf owl:Thing .
 
form:validation-result-condition a owl:Class ;
    dc:description "" ;
    rdfs:subClassOf form:condition .
 
form:has-origin a owl:ObjectProperty ;
    rdfs:label "has origin" ;
    dc:description "Defines entity from which this template was created." .
 
form:question-type a owl:Class .
 
form:question-template a owl:Class ;
    rdfs:subClassOf form:template-entity .
 
form:condition a owl:Class ;
    rdfs:label "Condition" ;
    rdfs:subClassOf owl:Thing .
 
form:has-first-question a owl:ObjectProperty ;
    rdfs:domain form:question-precedence ;
    rdfs:range doc:question ;
.
 
form:has-second-question a owl:ObjectProperty ;
    rdfs:domain form:question-precedence ;
    rdfs:range doc:question ;
.
 
form:question-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator of a precedence between two questions." ;
.
 
form:direct-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions based on explicit has-preceding-question relation." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:language-variant-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions based on same question having different language variants." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:relator-multiplicity-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions based on relator question with higher cardinality." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:meta-question-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions where one of them is meta-question." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:object-identification-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions where one of them is identifying trope of an entity." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:object-description-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions where one of them is trope providing description of an entity." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:aspect-type-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions that are either relator or intrinsic trope." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:temporal-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions based on temporal properties of entities." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:alphabethical-precedence a owl:Class, owl:NamedIndividual ;
    rdfs:label "Relator defining precedence between two questions based on alphabethical order of its labels." ;
    rdfs:subClassOf form:question-precedence ;
.
 
form:has-higher-priority-precedence a owl:ObjectProperty ;
    rdfs:label "Defines priority of precedence types, the higher priority precedence should be ordered before the lower one." ;
.
 
form:object-identification-question a owl:Class ;
    rdfs:subClassOf form:trope-question ;
.
 
form:object-identification-coordinate-question a owl:Class ;
    rdfs:subClassOf form:trope-question ;
.
 
form:object-description-question a owl:Class ;
    rdfs:subClassOf form:trope-question ;
.
 
form:trope-question a owl:Class ;
    rdfs:subClassOf doc:question ;
.
 
form:multilingual-question a owl:Class ;
    rdfs:subClassOf form:trope-question ;
.
 
form:multirelator-question a owl:Class ;
    rdfs:subClassOf form:relator-question ;
.
 
form:relator-question a owl:Class ;
    rdfs:subClassOf doc:question ;
.
 
form:meta-question a owl:Class ;
    rdfs:subClassOf doc:question ;
.
 
form:temporally-related-question a owl:Class ;
    rdfs:subClassOf doc:question ;
.