Ontological model for s-forms. Repository was moved to https://github.com/kbss-cvut/s-forms-model.
Miroslav Blasko
2021-03-28 18683dbefdfd0df6368d49ba65bd8bbb10f34152
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
20 form:accepts a owl:ObjectProperty ;
18683d 21     rdfs:label "accepts" ;
MB 22     rdfs:domain form:condition ;
23     rdfs:range form:question-type .
311be0 24
MB 25 form:accepts-answer-value a owl:AnnotationProperty ;
18683d 26     rdfs:label "accepts value" ;
MB 27     rdfs:domain form:condition .
311be0 28
MB 29 form:accepts-validation-value a owl:DatatypeProperty ;
30     rdfs:label "accepts validation value" ;
01786a 31     dc:description "Defines which validation values (true/false) are permitted for the tested question." ;
311be0 32     rdfs:domain form:condition ;
MB 33     rdfs:range xsd:boolean .
34
18683d 35 form:and-condition a owl:Class ;
MB 36     rdfs:label "And condition" ;
37     dc:description "Operator to combine different conditions. If all of its sub-conditions are true this condition is evaluated as true." ;
38     rdfs:subClassOf form:condition .
39
311be0 40 form:answer-origin a owl:Class ;
MB 41     rdfs:label "Answer origin" ;
01786a 42     dc:description "Class of objects that are used to reconstruct how was a answer created." .
311be0 43
18683d 44 form:answered-question a form:question-type,
MB 45         owl:Class,
46         owl:NamedIndividual ;
47     rdfs:label "Represent question that was answered"@en ;
311be0 48     rdfs:subClassOf doc:question .
MB 49
50 form:has-answer-origin a owl:ObjectProperty ;
51     rdfs:label "has answer origin" ;
01786a 52     dc:description "Defines entity from which this answer was created." ;
311be0 53     rdfs:domain doc:question ;
MB 54     rdfs:subPropertyOf form:has-origin .
55
56 form:has-datatype a owl:DatatypeProperty ;
57     rdfs:label "has datatype" .
58
59 form:has-origin-path a owl:DatatypeProperty ;
60     rdfs:label "has origin path" ;
61     rdfs:range xsd:string .
62
63 form:has-origin-path-id a owl:DatatypeProperty ;
64     rdfs:label "has origin path id" ;
65     rdfs:range xsd:string .
66
67 form:has-origin-type a owl:ObjectProperty ;
68     rdfs:label "has origin" ;
01786a 69     dc:description "Defines type of entity from which this template was created." .
311be0 70
MB 71 form:has-possible-value a owl:ObjectProperty ;
72     rdfs:label "has possible value" ;
73     rdfs:domain doc:question .
74
75 form:has-possible-values-query a owl:DatatypeProperty ;
76     rdfs:label "has possible value query" ;
77     rdfs:domain doc:question .
78
79 form:has-preceding-question a owl:ObjectProperty ;
80     rdfs:label "has preceding question" ;
01786a 81     dc:description "Defines that this question follows (typicaly chronologically) specified question." ;
311be0 82     rdfs:domain doc:question ;
MB 83     rdfs:range doc:question .
84
85 form:has-preceding-template a owl:ObjectProperty ;
86     rdfs:label "has preceding question template" ;
01786a 87     dc:description "Defines that this question template follows (typicaly chronologically) specified question template." ;
311be0 88     rdfs:domain form:question-template ;
MB 89     rdfs:range form:question-template .
90
91 form:has-preceding-value a owl:ObjectProperty ;
92     rdfs:label "has preceding question" ;
01786a 93     dc:description "Defines that this answer value follows (typicaly chronologically) specified answer value." .
311be0 94
MB 95 form:has-question-origin a owl:ObjectProperty ;
96     rdfs:label "has question origin" ;
01786a 97     dc:description "Defines entity from which this question was created." ;
311be0 98     rdfs:domain doc:question ;
MB 99     rdfs:subPropertyOf form:has-origin .
100
18683d 101 form:has-sub-condition a owl:ObjectProperty ;
MB 102     rdfs:label "has sub-condition" ;
103     rdfs:domain form:condition ;
104     rdfs:range form:condition .
105
311be0 106 form:has-subsection a owl:ObjectProperty ;
18683d 107     rdfs:label "has subsection" .
311be0 108
MB 109 form:has-subtemplate a owl:ObjectProperty ;
110     rdfs:domain form:section ;
111     rdfs:range form:question-template .
112
113 form:has-template a owl:ObjectProperty ;
18683d 114     rdfs:label "has template" .
311be0 115
MB 116 form:has-template-origin a owl:ObjectProperty ;
117     rdfs:label "has template origin" ;
01786a 118     dc:description "Defines entity from which this template was created." ;
311be0 119     rdfs:domain form:question-template ;
MB 120     rdfs:subPropertyOf form:has-origin .
121
122 form:has-template-relation a owl:ObjectProperty ;
18683d 123     rdfs:label "has template relation" .
311be0 124
MB 125 form:has-tested-question a owl:ObjectProperty ;
126     rdfs:label "has tested question" ;
01786a 127     dc:description "Determine which questions are tested for this condition. Multiple questions can be tested." ;
311be0 128     rdfs:domain form:condition ;
MB 129     rdfs:range doc:question .
130
131 form:has-unit a owl:DatatypeProperty ;
132     rdfs:label "has unit" ;
133     rdfs:range xsd:string .
134
135 form:inherits-template-from a owl:ObjectProperty ;
01786a 136     dc:description "Subject inherits properties from its object, i.e. any question created by subject template must also have properties of object template." ;
311be0 137     rdfs:domain form:question-template ;
MB 138     rdfs:range form:question-template .
139
140 form:is-clone-of-question a owl:ObjectProperty ;
01786a 141     dc:description "Question within subject of this relation is unmodifiable clone of question within object of this relation." ;
311be0 142     rdfs:domain doc:question ;
MB 143     rdfs:range doc:question .
144
145 form:is-link-template-of a owl:ObjectProperty ;
01786a 146     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 147
MB 148 form:is-relevant-if a owl:ObjectProperty ;
149     rdfs:label "is relevant if" ;
01786a 150     dc:description "States in which context is statement relevant." ;
311be0 151     rdfs:domain doc:question ;
MB 152     rdfs:range form:condition .
153
154 form:is-valid-answer a owl:ObjectProperty ;
155     rdfs:label "has valid answer" ;
01786a 156     dc:description "Defines  set of answers that need to be valid in order for condition to hold." ;
311be0 157     rdfs:domain form:condition ;
MB 158     rdfs:range doc:question .
159
18683d 160 form:not-answered-question a form:question-type,
MB 161         owl:Class,
162         owl:NamedIndividual ;
163     rdfs:label "Represent question that was not answered"@en ;
311be0 164     rdfs:subClassOf doc:question .
18683d 165
MB 166 form:not-condition a owl:Class ;
167     rdfs:label "Not condition" ;
168     dc:description "Operator negates related conditions. If sub-condition evaluates to true it evaluates to false and vice versa." ;
169     rdfs:subClassOf form:condition .
311be0 170
MB 171 form:or-condition a owl:Class ;
172     rdfs:label "Or condition" ;
18683d 173     dc:description "Operator to combine different conditions. If any of its sub-conditions is true this condition is evaluated as true." ;
311be0 174     rdfs:subClassOf form:condition .
MB 175
176 form:positive-validation-condition a owl:Class ;
01786a 177     dc:description "Indicates that accept answer value is only  \"true\" of this condition." ;
311be0 178     rdfs:subClassOf form:validation-result-condition .
MB 179
180 form:question-origin a owl:Class ;
181     rdfs:label "Question origin" ;
01786a 182     dc:description "Class of objects that are used to reconstruct how was a question created." .
311be0 183
MB 184 form:requires-answer a owl:ObjectProperty ;
185     rdfs:label "requires answer" ;
01786a 186     dc:description "Indicates that question requires answer." ;
311be0 187     rdfs:domain doc:question .
MB 188
189 form:requires-answer-description-if a owl:ObjectProperty ;
190     rdfs:label "requires answer description" ;
01786a 191     dc:description "Answer requires descripton." ;
311be0 192     rdfs:domain doc:question ;
MB 193     rdfs:range form:condition .
194
18683d 195 dc:description a owl:AnnotationProperty .
MB 196
311be0 197 form:entity a owl:Class ;
MB 198     rdfs:label "entity" ;
199     rdfs:subClassOf owl:Thing .
200
201 form:section a owl:Class ;
202     rdfs:subClassOf form:question-template .
203
204 form:template-entity a owl:Class ;
18683d 205     rdfs:label "template entity" ;
311be0 206     rdfs:subClassOf owl:Thing .
MB 207
208 form:validation-result-condition a owl:Class ;
18683d 209     dc:description "" ;
311be0 210     rdfs:subClassOf form:condition .
MB 211
212 form:has-origin a owl:ObjectProperty ;
213     rdfs:label "has origin" ;
01786a 214     dc:description "Defines entity from which this template was created." .
311be0 215
18683d 216 form:question-type a owl:Class .
311be0 217
MB 218 form:question-template a owl:Class ;
219     rdfs:subClassOf form:template-entity .
220
18683d 221 form:condition a owl:Class ;
MB 222     rdfs:label "Condition" ;
223     rdfs:subClassOf owl:Thing .
224