Separate UoM construct from other datatype property constrict for RD
Showing
3 changed files
with
145 additions
and
102 deletions
... | @@ -140,106 +140,4 @@ owl:DatatypeProperty | ... | @@ -140,106 +140,4 @@ owl:DatatypeProperty |
140 | [ sp:varName "desigation"^^xsd:string | 140 | [ sp:varName "desigation"^^xsd:string |
141 | ] | 141 | ] |
142 | ]) | 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 | ] . | 143 | ] . | ... | ... |
1 | +# baseURI: http://www.reportinghub.no/refdata/transform/uomprop2rd | ||
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/uomprop2rd#> . | ||
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/uomprop2rd> | ||
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 "0340 Set URI and designation for EHR RD from Datatype Property that ARE 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 "pcaid"^^xsd:string | ||
45 | + ] ; | ||
46 | + sp:predicate <http://posccaesar.org/rdl/hasIdPCA> ; | ||
47 | + sp:subject | ||
48 | + [ sp:varName "thisrduri"^^xsd:string | ||
49 | + ] | ||
50 | + ] [ sp:object ISO-15926-2_2003:Scale ; | ||
51 | + sp:predicate rdf:type ; | ||
52 | + sp:subject | ||
53 | + [ sp:varName "thisrduri"^^xsd:string | ||
54 | + ] | ||
55 | + ]) ; | ||
56 | + sp:where ([ rdf:type sp:NotExists ; | ||
57 | + sp:elements ([ sp:object | ||
58 | + [ sp:varName "same"^^xsd:string | ||
59 | + ] ; | ||
60 | + sp:predicate owl:sameAs ; | ||
61 | + sp:subject spin:_this | ||
62 | + ]) | ||
63 | + ] [ rdf:type sp:NotExists ; | ||
64 | + sp:elements ([ sp:object | ||
65 | + [ sp:varName "seerd"^^xsd:string | ||
66 | + ] ; | ||
67 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#seeReferenceData> ; | ||
68 | + sp:subject spin:_this | ||
69 | + ]) | ||
70 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
71 | + sp:predicate rdf:type ; | ||
72 | + sp:subject spin:_this | ||
73 | + ] [ rdf:type sp:Filter ; | ||
74 | + sp:expression | ||
75 | + [ rdf:type sp:ne ; | ||
76 | + sp:arg1 [ rdf:type afn:namespace ; | ||
77 | + sp:arg1 spin:_this | ||
78 | + ] ; | ||
79 | + sp:arg2 "http://www.linkedmodel.org/schema/vaem#" | ||
80 | + ] | ||
81 | + ] [ rdf:type sp:Filter ; | ||
82 | + sp:expression | ||
83 | + [ rdf:type sp:ne ; | ||
84 | + sp:arg1 [ rdf:type afn:namespace ; | ||
85 | + sp:arg1 spin:_this | ||
86 | + ] ; | ||
87 | + sp:arg2 "http://www.w3.org/2004/02/skos/core#" | ||
88 | + ] | ||
89 | + ] [ sp:object | ||
90 | + [ sp:varName "label"^^xsd:string | ||
91 | + ] ; | ||
92 | + sp:predicate rdfs:label ; | ||
93 | + sp:subject spin:_this | ||
94 | + ] [ rdf:type sp:Bind ; | ||
95 | + sp:expression | ||
96 | + [ rdf:type spif:generateUUID | ||
97 | + ] ; | ||
98 | + sp:variable | ||
99 | + [ sp:varName "uuid"^^xsd:string | ||
100 | + ] | ||
101 | + ] [ rdf:type sp:Bind ; | ||
102 | + sp:expression | ||
103 | + [ rdf:type fn:concat ; | ||
104 | + sp:arg1 "ERH" ; | ||
105 | + sp:arg2 [ sp:varName "uuid"^^xsd:string | ||
106 | + ] | ||
107 | + ] ; | ||
108 | + sp:variable | ||
109 | + [ sp:varName "pcaid"^^xsd:string | ||
110 | + ] | ||
111 | + ] [ rdf:type sp:Bind ; | ||
112 | + sp:expression | ||
113 | + [ rdf:type spif:buildURI ; | ||
114 | + sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>" | ||
115 | + ] ; | ||
116 | + sp:variable | ||
117 | + [ sp:varName "thisrduri"^^xsd:string | ||
118 | + ] | ||
119 | + ] [ rdf:type sp:Bind ; | ||
120 | + sp:expression | ||
121 | + [ rdf:type fn:upper-case ; | ||
122 | + sp:arg1 [ sp:varName "label"^^xsd:string | ||
123 | + ] | ||
124 | + ] ; | ||
125 | + sp:variable | ||
126 | + [ sp:varName "desigation"^^xsd:string | ||
127 | + ] | ||
128 | + ]) | ||
129 | + ] . |
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 | + composite:index "0"^^xsd:int | ||
16 | + ] . |
-
Please register or login to post a comment