David Price

Started on datatype properties

1 +# baseURI: http://www.reportinghub.no/refdata/XSD-Datatypes
2 +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 +
5 +@prefix : <http://posccaesar.org/rdl/> .
6 +@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
7 +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
8 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 +
13 +:ERH-DATE
14 + rdf:type ISO-15926-2_2003:RepresentationForm ;
15 + :hasDefinition "the W3C XML Schema Language Date Datatype"^^xsd:string ;
16 + :hasDesignation "XML SCHEMA DATE"^^xsd:string .
17 +
18 +:ERH-DATETIME
19 + rdf:type ISO-15926-2_2003:RepresentationForm ;
20 + :hasDefinition "the W3C XML Schema Language DateTime Datatype"^^xsd:string ;
21 + :hasDesignation "XML SCHEMA DATETIME"^^xsd:string .
22 +
23 +:ERH-DOUBLE
24 + rdf:type ISO-15926-2_2003:RepresentationForm ;
25 + :hasDefinition "the W3C XML Schema Language Double Datatype"^^xsd:string ;
26 + :hasDesignation "XML SCHEMA DOUBLE"^^xsd:string .
27 +
28 +:ERH-FLOAT
29 + rdf:type ISO-15926-2_2003:RepresentationForm ;
30 + :hasDefinition "the W3C XML Schema Language Float Datatype"^^xsd:string ;
31 + :hasDesignation "XML SCHEMA FLOAT"^^xsd:string .
32 +
33 +:ERH-INTEGER
34 + rdf:type ISO-15926-2_2003:RepresentationForm ;
35 + :hasDefinition "the W3C XML Schema Language Integer Datatype"^^xsd:string ;
36 + :hasDesignation "XML SCHEMA INTEGER"^^xsd:string .
37 +
38 +:ERH-STRING
39 + rdf:type ISO-15926-2_2003:RepresentationForm ;
40 + :hasDefinition "the W3C XML Schema Language String Datatype"^^xsd:string ;
41 + :hasDesignation "XML SCHEMA STRING"^^xsd:string .
42 +
43 +<http://www.reportinghub.no/refdata/XSD-Datatypes>
44 + rdf:type owl:Ontology ;
45 + owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> ;
46 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +<http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#RepresentationForm>
13 + forms:keyProperties (rdfs:label rdfs:comment <http://posccaesar.org/rdl/hasDesignation>) .
1 +# baseURI: http://www.reportinghub.no/refdata/transform/datprop2rd
2 +# imports: http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003
3 +# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
4 +# imports: http://spinrdf.org/spin
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
6 +
7 +@prefix : <http://www.reportinghub.no/refdata/transform/datprop2rd#> .
8 +@prefix ISO-15926-2_2003: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
9 +@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
10 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
11 +@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
12 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
13 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
14 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
15 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
16 +@prefix sp: <http://spinrdf.org/sp#> .
17 +@prefix spif: <http://spinrdf.org/spif#> .
18 +@prefix spin: <http://spinrdf.org/spin#> .
19 +@prefix spl: <http://spinrdf.org/spl#> .
20 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
21 +
22 +<http://www.reportinghub.no/refdata/transform/datprop2rd>
23 + rdf:type owl:Ontology ;
24 + owl:imports <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003> , <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/drilling> ;
25 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
26 +
27 +owl:DatatypeProperty
28 + spin:rule
29 + [ rdf:type sp:Construct ;
30 + rdfs:comment "0310 Set URI and designation for EHR RD from Datatype Property that are not UoM"^^xsd:string ;
31 + sp:templates ([ sp:object
32 + [ sp:varName "thisrduri"^^xsd:string
33 + ] ;
34 + sp:predicate owl:sameAs ;
35 + sp:subject spin:_this
36 + ] [ sp:object
37 + [ sp:varName "desigation"^^xsd:string
38 + ] ;
39 + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ;
40 + sp:subject
41 + [ sp:varName "thisrduri"^^xsd:string
42 + ]
43 + ] [ sp:object
44 + [ sp:varName "definition"^^xsd:string
45 + ] ;
46 + sp:predicate <http://posccaesar.org/rdl/hasDefinition> ;
47 + sp:subject
48 + [ sp:varName "thisrduri"^^xsd:string
49 + ]
50 + ] [ sp:object
51 + [ sp:varName "pcaid"^^xsd:string
52 + ] ;
53 + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ;
54 + sp:subject
55 + [ sp:varName "thisrduri"^^xsd:string
56 + ]
57 + ] [ sp:object ISO-15926-2_2003:ClassOfClassOfRepresentation ;
58 + sp:predicate rdf:type ;
59 + sp:subject
60 + [ sp:varName "thisrduri"^^xsd:string
61 + ]
62 + ]) ;
63 + sp:where ([ rdf:type sp:NotExists ;
64 + sp:elements ([ sp:object
65 + [ sp:varName "same"^^xsd:string
66 + ] ;
67 + sp:predicate owl:sameAs ;
68 + sp:subject spin:_this
69 + ])
70 + ] [ rdf:type sp:NotExists ;
71 + sp:elements ([ sp:object
72 + [ sp:varName "seerd"^^xsd:string
73 + ] ;
74 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
75 + sp:subject spin:_this
76 + ])
77 + ] [ rdf:type sp:NotExists ;
78 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
79 + sp:predicate rdf:type ;
80 + sp:subject spin:_this
81 + ])
82 + ] [ rdf:type sp:Filter ;
83 + sp:expression
84 + [ rdf:type sp:ne ;
85 + sp:arg1 [ rdf:type afn:namespace ;
86 + sp:arg1 spin:_this
87 + ] ;
88 + sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
89 + ]
90 + ] [ rdf:type sp:Filter ;
91 + sp:expression
92 + [ rdf:type sp:ne ;
93 + sp:arg1 [ rdf:type afn:namespace ;
94 + sp:arg1 spin:_this
95 + ] ;
96 + sp:arg2 "http://www.w3.org/2004/02/skos/core#"
97 + ]
98 + ] [ sp:object
99 + [ sp:varName "definition"^^xsd:string
100 + ] ;
101 + sp:predicate rdfs:comment ;
102 + sp:subject spin:_this
103 + ] [ sp:object
104 + [ sp:varName "label"^^xsd:string
105 + ] ;
106 + sp:predicate rdfs:label ;
107 + sp:subject spin:_this
108 + ] [ rdf:type sp:Bind ;
109 + sp:expression
110 + [ rdf:type spif:generateUUID
111 + ] ;
112 + sp:variable
113 + [ sp:varName "uuid"^^xsd:string
114 + ]
115 + ] [ rdf:type sp:Bind ;
116 + sp:expression
117 + [ rdf:type fn:concat ;
118 + sp:arg1 "ERH" ;
119 + sp:arg2 [ sp:varName "uuid"^^xsd:string
120 + ]
121 + ] ;
122 + sp:variable
123 + [ sp:varName "pcaid"^^xsd:string
124 + ]
125 + ] [ rdf:type sp:Bind ;
126 + sp:expression
127 + [ rdf:type spif:buildURI ;
128 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
129 + ] ;
130 + sp:variable
131 + [ sp:varName "thisrduri"^^xsd:string
132 + ]
133 + ] [ rdf:type sp:Bind ;
134 + sp:expression
135 + [ rdf:type fn:upper-case ;
136 + sp:arg1 [ sp:varName "label"^^xsd:string
137 + ]
138 + ] ;
139 + sp:variable
140 + [ sp:varName "desigation"^^xsd:string
141 + ]
142 + ])
143 + ] ;
144 + spin:rule
145 + [ rdf:type sp:Construct ;
146 + rdfs:comment "0340 Set URI and designation for EHR RD from Datatype Property that ARE UoM"^^xsd:string ;
147 + sp:templates ([ sp:object
148 + [ sp:varName "thisrduri"^^xsd:string
149 + ] ;
150 + sp:predicate owl:sameAs ;
151 + sp:subject spin:_this
152 + ] [ sp:object
153 + [ sp:varName "desigation"^^xsd:string
154 + ] ;
155 + sp:predicate <http://posccaesar.org/rdl/hasDesignation> ;
156 + sp:subject
157 + [ sp:varName "thisrduri"^^xsd:string
158 + ]
159 + ] [ sp:object
160 + [ sp:varName "pcaid"^^xsd:string
161 + ] ;
162 + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ;
163 + sp:subject
164 + [ sp:varName "thisrduri"^^xsd:string
165 + ]
166 + ] [ sp:object ISO-15926-2_2003:Scale ;
167 + sp:predicate rdf:type ;
168 + sp:subject
169 + [ sp:varName "thisrduri"^^xsd:string
170 + ]
171 + ]) ;
172 + sp:where ([ rdf:type sp:NotExists ;
173 + sp:elements ([ sp:object
174 + [ sp:varName "same"^^xsd:string
175 + ] ;
176 + sp:predicate owl:sameAs ;
177 + sp:subject spin:_this
178 + ])
179 + ] [ rdf:type sp:NotExists ;
180 + sp:elements ([ sp:object
181 + [ sp:varName "seerd"^^xsd:string
182 + ] ;
183 + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ;
184 + sp:subject spin:_this
185 + ])
186 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ;
187 + sp:predicate rdf:type ;
188 + sp:subject spin:_this
189 + ] [ rdf:type sp:Filter ;
190 + sp:expression
191 + [ rdf:type sp:ne ;
192 + sp:arg1 [ rdf:type afn:namespace ;
193 + sp:arg1 spin:_this
194 + ] ;
195 + sp:arg2 "http://www.linkedmodel.org/schema/vaem#"
196 + ]
197 + ] [ rdf:type sp:Filter ;
198 + sp:expression
199 + [ rdf:type sp:ne ;
200 + sp:arg1 [ rdf:type afn:namespace ;
201 + sp:arg1 spin:_this
202 + ] ;
203 + sp:arg2 "http://www.w3.org/2004/02/skos/core#"
204 + ]
205 + ] [ sp:object
206 + [ sp:varName "label"^^xsd:string
207 + ] ;
208 + sp:predicate rdfs:label ;
209 + sp:subject spin:_this
210 + ] [ rdf:type sp:Bind ;
211 + sp:expression
212 + [ rdf:type spif:generateUUID
213 + ] ;
214 + sp:variable
215 + [ sp:varName "uuid"^^xsd:string
216 + ]
217 + ] [ rdf:type sp:Bind ;
218 + sp:expression
219 + [ rdf:type fn:concat ;
220 + sp:arg1 "ERH" ;
221 + sp:arg2 [ sp:varName "uuid"^^xsd:string
222 + ]
223 + ] ;
224 + sp:variable
225 + [ sp:varName "pcaid"^^xsd:string
226 + ]
227 + ] [ rdf:type sp:Bind ;
228 + sp:expression
229 + [ rdf:type spif:buildURI ;
230 + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
231 + ] ;
232 + sp:variable
233 + [ sp:varName "thisrduri"^^xsd:string
234 + ]
235 + ] [ rdf:type sp:Bind ;
236 + sp:expression
237 + [ rdf:type fn:upper-case ;
238 + sp:arg1 [ sp:varName "label"^^xsd:string
239 + ]
240 + ] ;
241 + sp:variable
242 + [ sp:varName "desigation"^^xsd:string
243 + ]
244 + ])
245 + ] .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + <http://spinrdf.org/spin#topSPINOptions>
16 + "singlePass" ;
17 + composite:index "0"^^xsd:int
18 + ] .