Ontological model for s-forms. Repository was moved to https://github.com/kbss-cvut/s-forms-model.
Miroslav Blasko
2021-03-28 01786af36b8bddd605e4a6ffc8bdf0fb779ac987
commit | author | age
f3da6c 1 @prefix : <http://onto.fel.cvut.cz/ontologies/form/> .
MB 2 @prefix doc: <http://onto.fel.cvut.cz/ontologies/documentation/> .
3 @prefix form: <http://onto.fel.cvut.cz/ontologies/form/> .
4 @prefix owl: <http://www.w3.org/2002/07/owl#> .
5 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
6 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7 @prefix xml: <http://www.w3.org/XML/1998/namespace> .
8 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
01786a 9 @prefix dc: <http://purl.org/dc/terms/> .
f3da6c 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 ;
21     rdfs:label "accepts" .
22
23 form:accepts-answer-value a owl:AnnotationProperty ;
24     rdfs:label "accepts value" .
25
26 form:accepts-validation-value a owl:DatatypeProperty ;
27     rdfs:label "accepts validation value" ;
01786a 28     dc:description "Defines which validation values (true/false) are permitted for the tested question." ;
311be0 29     rdfs:domain form:condition ;
MB 30     rdfs:range xsd:boolean .
31
32 form:answer-origin a owl:Class ;
33     rdfs:label "Answer origin" ;
01786a 34     dc:description "Class of objects that are used to reconstruct how was a answer created." .
311be0 35
MB 36 form:answered-question rdfs:label "Represent question that was answered"@en ;
37     rdfs:subClassOf doc:question .
38
39 form:has-answer-origin a owl:ObjectProperty ;
40     rdfs:label "has answer origin" ;
01786a 41     dc:description "Defines entity from which this answer was created." ;
311be0 42     rdfs:domain doc:question ;
MB 43     rdfs:subPropertyOf form:has-origin .
44
45 form:has-datatype a owl:DatatypeProperty ;
46     rdfs:label "has datatype" .
47
48 form:has-origin-path a owl:DatatypeProperty ;
49     rdfs:label "has origin path" ;
50     rdfs:range xsd:string .
51
52 form:has-origin-path-id a owl:DatatypeProperty ;
53     rdfs:label "has origin path id" ;
54     rdfs:range xsd:string .
55
56 form:has-origin-type a owl:ObjectProperty ;
57     rdfs:label "has origin" ;
01786a 58     dc:description "Defines type of entity from which this template was created." .
311be0 59
MB 60 form:has-possible-value a owl:ObjectProperty ;
61     rdfs:label "has possible value" ;
62     rdfs:domain doc:question .
63
64 form:has-possible-values-query a owl:DatatypeProperty ;
65     rdfs:label "has possible value query" ;
66     rdfs:domain doc:question .
67
68 form:has-preceding-question a owl:ObjectProperty ;
69     rdfs:label "has preceding question" ;
01786a 70     dc:description "Defines that this question follows (typicaly chronologically) specified question." ;
311be0 71     rdfs:domain doc:question ;
MB 72     rdfs:range doc:question .
73
74 form:has-preceding-template a owl:ObjectProperty ;
75     rdfs:label "has preceding question template" ;
01786a 76     dc:description "Defines that this question template follows (typicaly chronologically) specified question template." ;
311be0 77     rdfs:domain form:question-template ;
MB 78     rdfs:range form:question-template .
79
80 form:has-preceding-value a owl:ObjectProperty ;
81     rdfs:label "has preceding question" ;
01786a 82     dc:description "Defines that this answer value follows (typicaly chronologically) specified answer value." .
311be0 83
MB 84 form:has-question-origin a owl:ObjectProperty ;
85     rdfs:label "has question origin" ;
01786a 86     dc:description "Defines entity from which this question was created." ;
311be0 87     rdfs:domain doc:question ;
MB 88     rdfs:subPropertyOf form:has-origin .
89
90 form:has-subsection a owl:ObjectProperty ;
91     rdfs:label "has-subsection" .
92
93 form:has-subtemplate a owl:ObjectProperty ;
94     rdfs:domain form:section ;
95     rdfs:range form:question-template .
96
97 form:has-template a owl:ObjectProperty ;
98     rdfs:label "has-template" .
99
100 form:has-template-origin a owl:ObjectProperty ;
101     rdfs:label "has template origin" ;
01786a 102     dc:description "Defines entity from which this template was created." ;
311be0 103     rdfs:domain form:question-template ;
MB 104     rdfs:subPropertyOf form:has-origin .
105
106 form:has-template-relation a owl:ObjectProperty ;
107     rdfs:label "has-template-relation" .
108
109 form:has-tested-question a owl:ObjectProperty ;
110     rdfs:label "has tested question" ;
01786a 111     dc:description "Determine which questions are tested for this condition. Multiple questions can be tested." ;
311be0 112     rdfs:domain form:condition ;
MB 113     rdfs:range doc:question .
114
115 form:has-unit a owl:DatatypeProperty ;
116     rdfs:label "has unit" ;
117     rdfs:range xsd:string .
118
119 form:inherits-template-from a owl:ObjectProperty ;
01786a 120     dc:description "Subject inherits properties from its object, i.e. any question created by subject template must also have properties of object template." ;
311be0 121     rdfs:domain form:question-template ;
MB 122     rdfs:range form:question-template .
123
124 form:is-clone-of-question a owl:ObjectProperty ;
01786a 125     dc:description "Question within subject of this relation is unmodifiable clone of question within object of this relation." ;
311be0 126     rdfs:domain doc:question ;
MB 127     rdfs:range doc:question .
128
129 form:is-link-template-of a owl:ObjectProperty ;
01786a 130     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 131
MB 132 form:is-relevant-if a owl:ObjectProperty ;
133     rdfs:label "is relevant if" ;
01786a 134     dc:description "States in which context is statement relevant." ;
311be0 135     rdfs:domain doc:question ;
MB 136     rdfs:range form:condition .
137
138 form:is-valid-answer a owl:ObjectProperty ;
139     rdfs:label "has valid answer" ;
01786a 140     dc:description "Defines  set of answers that need to be valid in order for condition to hold." ;
311be0 141     rdfs:domain form:condition ;
MB 142     rdfs:range doc:question .
143
144 form:not-answered-question rdfs:label "Represent question that was not answered"@en ;
145     rdfs:subClassOf doc:question .
146
147 form:or-condition a owl:Class ;
148     rdfs:label "Or condition" ;
01786a 149     dc:description "Operator to combine different conditions. If any of its sub-conditions is true this condition is evaluated as true." ; 
311be0 150     rdfs:subClassOf form:condition .
MB 151
152 form:positive-validation-condition a owl:Class ;
01786a 153     dc:description "Indicates that accept answer value is only  \"true\" of this condition." ;
311be0 154     rdfs:subClassOf form:validation-result-condition .
MB 155
156 form:question-origin a owl:Class ;
157     rdfs:label "Question origin" ;
01786a 158     dc:description "Class of objects that are used to reconstruct how was a question created." .
311be0 159
MB 160 form:requires-answer a owl:ObjectProperty ;
161     rdfs:label "requires answer" ;
01786a 162     dc:description "Indicates that question requires answer." ;
311be0 163     rdfs:domain doc:question .
MB 164
165 form:requires-answer-description-if a owl:ObjectProperty ;
166     rdfs:label "requires answer description" ;
01786a 167     dc:description "Answer requires descripton." ;
311be0 168     rdfs:domain doc:question ;
MB 169     rdfs:range form:condition .
170
171 form:entity a owl:Class ;
172     rdfs:label "entity" ;
173     rdfs:subClassOf owl:Thing .
174
175 form:section a owl:Class ;
176     rdfs:subClassOf form:question-template .
177
178 form:template-entity a owl:Class ;
179     rdfs:label "template-entity" ;
180     rdfs:subClassOf owl:Thing .
181
182 form:validation-result-condition a owl:Class ;
183     rdfs:subClassOf form:condition .
184
185 form:has-origin a owl:ObjectProperty ;
186     rdfs:label "has origin" ;
01786a 187     dc:description "Defines entity from which this template was created." .
311be0 188
MB 189 form:condition a owl:Class ;
190     rdfs:label "Condition" ;
191     rdfs:subClassOf owl:Thing .
192
193 form:question-template a owl:Class ;
194     rdfs:subClassOf form:template-entity .
195