Ontological model for s-forms. Repository was moved to https://github.com/kbss-cvut/s-forms-model.
Miroslav Blasko
2021-08-20 27c8f2bc95ba394df7fc815cbcbfaafc109f3497
commit | author | age
f3da6c 1 @prefix : <http://onto.fel.cvut.cz/ontologies/form/> .
18683d 2 @prefix dc: <http://purl.org/dc/terms/> .
f3da6c 3 @prefix doc: <http://onto.fel.cvut.cz/ontologies/documentation/> .
MB 4 @prefix form: <http://onto.fel.cvut.cz/ontologies/form/> .
5 @prefix owl: <http://www.w3.org/2002/07/owl#> .
6 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 @prefix xml: <http://www.w3.org/XML/1998/namespace> .
9 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10
311be0 11 doc:answer a owl:Class ;
MB 12     rdfs:subClassOf form:entity .
f3da6c 13
311be0 14 doc:todo a owl:DatatypeProperty .
MB 15
16 <http://onto.fel.cvut.cz/ontologies/form> a owl:Ontology ;
17     rdfs:comment "Represent form data." ;
18     owl:imports <http://onto.fel.cvut.cz/ontologies/documentation> .
19
27c8f2 20 form:has-comment a owl:ObjectProperty ;
MB 21     rdfs:domain form:question ;
22     rdfs:range form:comment ;
23 .
24
25 form:comment a owl:Class ;
26 .
27 form:author a  owl:Class ;
28 .
29
30 form:has-author a owl:ObjectProperty ;
31     rdfs:domain form:comment ;
32     rdfs:range form:author ;
33 .
34
35 form:has-timestamp a owl:ObjectProperty ;
36     rdfs:domain form:comment ;
37 .
38
311be0 39 form:accepts a owl:ObjectProperty ;
18683d 40     rdfs:label "accepts" ;
MB 41     rdfs:domain form:condition ;
42     rdfs:range form:question-type .
311be0 43
MB 44 form:accepts-answer-value a owl:AnnotationProperty ;
18683d 45     rdfs:label "accepts value" ;
MB 46     rdfs:domain form:condition .
311be0 47
MB 48 form:accepts-validation-value a owl:DatatypeProperty ;
49     rdfs:label "accepts validation value" ;
01786a 50     dc:description "Defines which validation values (true/false) are permitted for the tested question." ;
311be0 51     rdfs:domain form:condition ;
MB 52     rdfs:range xsd:boolean .
53
18683d 54 form:and-condition a owl:Class ;
MB 55     rdfs:label "And condition" ;
56     dc:description "Operator to combine different conditions. If all of its sub-conditions are true this condition is evaluated as true." ;
57     rdfs:subClassOf form:condition .
58
311be0 59 form:answer-origin a owl:Class ;
MB 60     rdfs:label "Answer origin" ;
01786a 61     dc:description "Class of objects that are used to reconstruct how was a answer created." .
311be0 62
18683d 63 form:answered-question a form:question-type,
MB 64         owl:Class,
65         owl:NamedIndividual ;
66     rdfs:label "Represent question that was answered"@en ;
311be0 67     rdfs:subClassOf doc:question .
MB 68
69 form:has-answer-origin a owl:ObjectProperty ;
70     rdfs:label "has answer origin" ;
01786a 71     dc:description "Defines entity from which this answer was created." ;
311be0 72     rdfs:domain doc:question ;
MB 73     rdfs:subPropertyOf form:has-origin .
74
75 form:has-datatype a owl:DatatypeProperty ;
76     rdfs:label "has datatype" .
77
78 form:has-origin-path a owl:DatatypeProperty ;
79     rdfs:label "has origin path" ;
80     rdfs:range xsd:string .
81
82 form:has-origin-path-id a owl:DatatypeProperty ;
83     rdfs:label "has origin path id" ;
84     rdfs:range xsd:string .
85
86 form:has-origin-type a owl:ObjectProperty ;
87     rdfs:label "has origin" ;
01786a 88     dc:description "Defines type of entity from which this template was created." .
311be0 89
MB 90 form:has-possible-value a owl:ObjectProperty ;
91     rdfs:label "has possible value" ;
92     rdfs:domain doc:question .
93
94 form:has-possible-values-query a owl:DatatypeProperty ;
95     rdfs:label "has possible value query" ;
96     rdfs:domain doc:question .
97
98 form:has-preceding-question a owl:ObjectProperty ;
99     rdfs:label "has preceding question" ;
01786a 100     dc:description "Defines that this question follows (typicaly chronologically) specified question." ;
311be0 101     rdfs:domain doc:question ;
MB 102     rdfs:range doc:question .
103
104 form:has-preceding-template a owl:ObjectProperty ;
105     rdfs:label "has preceding question template" ;
01786a 106     dc:description "Defines that this question template follows (typicaly chronologically) specified question template." ;
311be0 107     rdfs:domain form:question-template ;
MB 108     rdfs:range form:question-template .
109
110 form:has-preceding-value a owl:ObjectProperty ;
111     rdfs:label "has preceding question" ;
01786a 112     dc:description "Defines that this answer value follows (typicaly chronologically) specified answer value." .
311be0 113
MB 114 form:has-question-origin a owl:ObjectProperty ;
115     rdfs:label "has question origin" ;
01786a 116     dc:description "Defines entity from which this question was created." ;
311be0 117     rdfs:domain doc:question ;
MB 118     rdfs:subPropertyOf form:has-origin .
119
18683d 120 form:has-sub-condition a owl:ObjectProperty ;
MB 121     rdfs:label "has sub-condition" ;
122     rdfs:domain form:condition ;
123     rdfs:range form:condition .
124
311be0 125 form:has-subsection a owl:ObjectProperty ;
18683d 126     rdfs:label "has subsection" .
311be0 127
MB 128 form:has-subtemplate a owl:ObjectProperty ;
129     rdfs:domain form:section ;
130     rdfs:range form:question-template .
131
132 form:has-template a owl:ObjectProperty ;
18683d 133     rdfs:label "has template" .
311be0 134
MB 135 form:has-template-origin a owl:ObjectProperty ;
136     rdfs:label "has template origin" ;
01786a 137     dc:description "Defines entity from which this template was created." ;
311be0 138     rdfs:domain form:question-template ;
MB 139     rdfs:subPropertyOf form:has-origin .
140
141 form:has-template-relation a owl:ObjectProperty ;
18683d 142     rdfs:label "has template relation" .
311be0 143
MB 144 form:has-tested-question a owl:ObjectProperty ;
145     rdfs:label "has tested question" ;
01786a 146     dc:description "Determine which questions are tested for this condition. Multiple questions can be tested." ;
311be0 147     rdfs:domain form:condition ;
MB 148     rdfs:range doc:question .
149
150 form:has-unit a owl:DatatypeProperty ;
151     rdfs:label "has unit" ;
152     rdfs:range xsd:string .
153
154 form:inherits-template-from a owl:ObjectProperty ;
01786a 155     dc:description "Subject inherits properties from its object, i.e. any question created by subject template must also have properties of object template." ;
311be0 156     rdfs:domain form:question-template ;
MB 157     rdfs:range form:question-template .
158
159 form:is-clone-of-question a owl:ObjectProperty ;
01786a 160     dc:description "Question within subject of this relation is unmodifiable clone of question within object of this relation." ;
311be0 161     rdfs:domain doc:question ;
MB 162     rdfs:range doc:question .
163
164 form:is-link-template-of a owl:ObjectProperty ;
01786a 165     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." .
311be0 166
MB 167 form:is-relevant-if a owl:ObjectProperty ;
168     rdfs:label "is relevant if" ;
01786a 169     dc:description "States in which context is statement relevant." ;
311be0 170     rdfs:domain doc:question ;
MB 171     rdfs:range form:condition .
172
173 form:is-valid-answer a owl:ObjectProperty ;
174     rdfs:label "has valid answer" ;
01786a 175     dc:description "Defines  set of answers that need to be valid in order for condition to hold." ;
311be0 176     rdfs:domain form:condition ;
MB 177     rdfs:range doc:question .
178
18683d 179 form:not-answered-question a form:question-type,
MB 180         owl:Class,
181         owl:NamedIndividual ;
182     rdfs:label "Represent question that was not answered"@en ;
311be0 183     rdfs:subClassOf doc:question .
18683d 184
MB 185 form:not-condition a owl:Class ;
186     rdfs:label "Not condition" ;
187     dc:description "Operator negates related conditions. If sub-condition evaluates to true it evaluates to false and vice versa." ;
188     rdfs:subClassOf form:condition .
311be0 189
MB 190 form:or-condition a owl:Class ;
191     rdfs:label "Or condition" ;
18683d 192     dc:description "Operator to combine different conditions. If any of its sub-conditions is true this condition is evaluated as true." ;
311be0 193     rdfs:subClassOf form:condition .
MB 194
195 form:positive-validation-condition a owl:Class ;
01786a 196     dc:description "Indicates that accept answer value is only  \"true\" of this condition." ;
311be0 197     rdfs:subClassOf form:validation-result-condition .
MB 198
199 form:question-origin a owl:Class ;
200     rdfs:label "Question origin" ;
01786a 201     dc:description "Class of objects that are used to reconstruct how was a question created." .
311be0 202
MB 203 form:requires-answer a owl:ObjectProperty ;
204     rdfs:label "requires answer" ;
01786a 205     dc:description "Indicates that question requires answer." ;
311be0 206     rdfs:domain doc:question .
MB 207
208 form:requires-answer-description-if a owl:ObjectProperty ;
209     rdfs:label "requires answer description" ;
01786a 210     dc:description "Answer requires descripton." ;
311be0 211     rdfs:domain doc:question ;
MB 212     rdfs:range form:condition .
213
18683d 214 dc:description a owl:AnnotationProperty .
MB 215
311be0 216 form:entity a owl:Class ;
MB 217     rdfs:label "entity" ;
218     rdfs:subClassOf owl:Thing .
219
220 form:section a owl:Class ;
221     rdfs:subClassOf form:question-template .
222
223 form:template-entity a owl:Class ;
18683d 224     rdfs:label "template entity" ;
311be0 225     rdfs:subClassOf owl:Thing .
MB 226
227 form:validation-result-condition a owl:Class ;
18683d 228     dc:description "" ;
311be0 229     rdfs:subClassOf form:condition .
MB 230
231 form:has-origin a owl:ObjectProperty ;
232     rdfs:label "has origin" ;
01786a 233     dc:description "Defines entity from which this template was created." .
311be0 234
18683d 235 form:question-type a owl:Class .
311be0 236
MB 237 form:question-template a owl:Class ;
238     rdfs:subClassOf form:template-entity .
239
18683d 240 form:condition a owl:Class ;
MB 241     rdfs:label "Condition" ;
242     rdfs:subClassOf owl:Thing .
243
27c8f2 244 form:has-first-question a owl:ObjectProperty ;
MB 245     rdfs:domain form:question-precedence ;
246     rdfs:range doc:question ;
247 .
248
249 form:has-second-question a owl:ObjectProperty ;
250     rdfs:domain form:question-precedence ;
251     rdfs:range doc:question ;
252 .
253
254 form:question-precedence a owl:Class, owl:NamedIndividual ;
255     rdfs:label "Relator of a precedence between two questions." ;         
256 .
257
258 form:direct-precedence a owl:Class, owl:NamedIndividual ;
259     rdfs:label "Relator defining precedence between two questions based on explicit has-preceding-question relation." ;         
260     rdfs:subClassOf form:question-precedence ;
261 .
262
263 form:language-variant-precedence a owl:Class, owl:NamedIndividual ;
264     rdfs:label "Relator defining precedence between two questions based on same question having different language variants." ;         
265     rdfs:subClassOf form:question-precedence ;
266 .
267
268 form:relator-multiplicity-precedence a owl:Class, owl:NamedIndividual ;
269     rdfs:label "Relator defining precedence between two questions based on relator question with higher cardinality." ;         
270     rdfs:subClassOf form:question-precedence ;
271 .
272
273 form:meta-question-precedence a owl:Class, owl:NamedIndividual ;
274     rdfs:label "Relator defining precedence between two questions where one of them is meta-question." ;         
275     rdfs:subClassOf form:question-precedence ;
276 .
277
278 form:object-identification-precedence a owl:Class, owl:NamedIndividual ;
279     rdfs:label "Relator defining precedence between two questions where one of them is identifying trope of an entity." ;         
280     rdfs:subClassOf form:question-precedence ;
281 .
282
283 form:object-description-precedence a owl:Class, owl:NamedIndividual ;
284     rdfs:label "Relator defining precedence between two questions where one of them is trope providing description of an entity." ;         
285     rdfs:subClassOf form:question-precedence ;
286 .
287
288 form:aspect-type-precedence a owl:Class, owl:NamedIndividual ;
289     rdfs:label "Relator defining precedence between two questions that are either relator or intrinsic trope." ;         
290     rdfs:subClassOf form:question-precedence ;
291 .
292
293 form:temporal-precedence a owl:Class, owl:NamedIndividual ;
294     rdfs:label "Relator defining precedence between two questions based on temporal properties of entities." ;         
295     rdfs:subClassOf form:question-precedence ;
296 .
297
298 form:alphabethical-precedence a owl:Class, owl:NamedIndividual ;
299     rdfs:label "Relator defining precedence between two questions based on alphabethical order of its labels." ;         
300     rdfs:subClassOf form:question-precedence ;
301 .
302
303 form:has-higher-priority-precedence a owl:ObjectProperty ;
304     rdfs:label "Defines priority of precedence types, the higher priority precedence should be ordered before the lower one." ;
305 .
306
307 form:object-identification-question a owl:Class ;
308     rdfs:subClassOf form:trope-question ;
309 .
310
311 form:object-identification-coordinate-question a owl:Class ;
312     rdfs:subClassOf form:trope-question ;
313 .
314
315 form:object-description-question a owl:Class ;
316     rdfs:subClassOf form:trope-question ;
317 .
318
319 form:trope-question a owl:Class ;
320     rdfs:subClassOf doc:question ;
321 .
322
323 form:multilingual-question a owl:Class ;
324     rdfs:subClassOf form:trope-question ;
325 .
326
327 form:multirelator-question a owl:Class ;
328     rdfs:subClassOf form:relator-question ;
329 .
330
331 form:relator-question a owl:Class ;
332     rdfs:subClassOf doc:question ;
333 .
334
335 form:meta-question a owl:Class ;
336     rdfs:subClassOf doc:question ;
337 .
338
339 form:temporally-related-question a owl:Class ;
340     rdfs:subClassOf doc:question ;
341 .