Showing
10 changed files
with
739 additions
and
458 deletions
1 | -# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 13:54:55 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/core |
3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem | 3 | # imports: http://www.linkedmodel.org/1.2/schema/vaem |
4 | 4 | ||
... | @@ -25,7 +25,7 @@ ep-core:PhysicalThing | ... | @@ -25,7 +25,7 @@ ep-core:PhysicalThing |
25 | rdfs:subClassOf owl:Thing . | 25 | rdfs:subClassOf owl:Thing . |
26 | 26 | ||
27 | ep-core:apiName | 27 | ep-core:apiName |
28 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 28 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
29 | rdfs:label "API name"^^xsd:string ; | 29 | rdfs:label "API name"^^xsd:string ; |
30 | rdfs:range xsd:string ; | 30 | rdfs:range xsd:string ; |
31 | rdfs:subPropertyOf ep-core:name . | 31 | rdfs:subPropertyOf ep-core:name . |
... | @@ -35,11 +35,11 @@ ep-core:basisFor | ... | @@ -35,11 +35,11 @@ ep-core:basisFor |
35 | rdfs:label "basis for"^^xsd:string . | 35 | rdfs:label "basis for"^^xsd:string . |
36 | 36 | ||
37 | ep-core:derivedFrom | 37 | ep-core:derivedFrom |
38 | - rdf:type owl:ObjectProperty , owl:TransitiveProperty ; | 38 | + rdf:type owl:TransitiveProperty , owl:ObjectProperty ; |
39 | rdfs:label "derived from"^^xsd:string . | 39 | rdfs:label "derived from"^^xsd:string . |
40 | 40 | ||
41 | ep-core:dtiName | 41 | ep-core:dtiName |
42 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | 42 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; |
43 | rdfs:label "DTI name"^^xsd:string ; | 43 | rdfs:label "DTI name"^^xsd:string ; |
44 | rdfs:range xsd:string ; | 44 | rdfs:range xsd:string ; |
45 | rdfs:subPropertyOf ep-core:name . | 45 | rdfs:subPropertyOf ep-core:name . |
... | @@ -60,7 +60,7 @@ ep-core:hasTemporalPart | ... | @@ -60,7 +60,7 @@ ep-core:hasTemporalPart |
60 | owl:inverseOf ep-core:partOf . | 60 | owl:inverseOf ep-core:partOf . |
61 | 61 | ||
62 | ep-core:localFieldName | 62 | ep-core:localFieldName |
63 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 63 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
64 | rdfs:label "local field name"^^xsd:string ; | 64 | rdfs:label "local field name"^^xsd:string ; |
65 | rdfs:range xsd:string ; | 65 | rdfs:range xsd:string ; |
66 | rdfs:subPropertyOf ep-core:name . | 66 | rdfs:subPropertyOf ep-core:name . |
... | @@ -71,13 +71,19 @@ ep-core:name | ... | @@ -71,13 +71,19 @@ ep-core:name |
71 | rdfs:range xsd:string . | 71 | rdfs:range xsd:string . |
72 | 72 | ||
73 | ep-core:npdCode | 73 | ep-core:npdCode |
74 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 74 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
75 | rdfs:label "NPD code"^^xsd:string ; | 75 | rdfs:label "NPD code"^^xsd:string ; |
76 | rdfs:range xsd:string ; | 76 | rdfs:range xsd:string ; |
77 | rdfs:subPropertyOf ep-core:name . | 77 | rdfs:subPropertyOf ep-core:name . |
78 | 78 | ||
79 | -ep-core:npdNumber | 79 | +ep-core:npdName |
80 | rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; | 80 | rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
81 | + rdfs:label "NPD name"^^xsd:string ; | ||
82 | + rdfs:range xsd:string ; | ||
83 | + rdfs:subPropertyOf ep-core:name . | ||
84 | + | ||
85 | +ep-core:npdNumber | ||
86 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | ||
81 | rdfs:label "NPD number"^^xsd:string ; | 87 | rdfs:label "NPD number"^^xsd:string ; |
82 | rdfs:range xsd:string ; | 88 | rdfs:range xsd:string ; |
83 | rdfs:subPropertyOf ep-core:name . | 89 | rdfs:subPropertyOf ep-core:name . |
... | @@ -90,7 +96,7 @@ ep-core:partOf | ... | @@ -90,7 +96,7 @@ ep-core:partOf |
90 | owl:inverseOf ep-core:hasPart . | 96 | owl:inverseOf ep-core:hasPart . |
91 | 97 | ||
92 | ep-core:prospectName | 98 | ep-core:prospectName |
93 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; | 99 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; |
94 | rdfs:label "prospect name"^^xsd:string ; | 100 | rdfs:label "prospect name"^^xsd:string ; |
95 | rdfs:range xsd:string ; | 101 | rdfs:range xsd:string ; |
96 | rdfs:subPropertyOf ep-core:name . | 102 | rdfs:subPropertyOf ep-core:name . | ... | ... |
1 | +# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility | 2 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility |
3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
2 | # imports: http://purl.org/dc/elements/1.1/ | 4 | # imports: http://purl.org/dc/elements/1.1/ |
3 | -# imports: http://purl.org/dc/terms/ | ||
4 | # imports: http://spinrdf.org/spin | 5 | # imports: http://spinrdf.org/spin |
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 6 | +# imports: http://purl.org/dc/terms/ |
6 | 7 | ||
7 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 8 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
... | @@ -15,9 +16,14 @@ | ... | @@ -15,9 +16,14 @@ |
15 | 16 | ||
16 | <http://www.reportinghub.no/ep/schema/1.0/facility> | 17 | <http://www.reportinghub.no/ep/schema/1.0/facility> |
17 | rdf:type owl:Ontology ; | 18 | rdf:type owl:Ontology ; |
18 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ; | 19 | + owl:imports <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> ; |
19 | owl:versionInfo "0.1.0"^^xsd:string . | 20 | owl:versionInfo "0.1.0"^^xsd:string . |
20 | 21 | ||
22 | +ep-fac:AllOrPartOfTheLifeOfARig | ||
23 | + rdf:type owl:Class ; | ||
24 | + rdfs:label "all or part of the life of a rig"^^xsd:string ; | ||
25 | + rdfs:subClassOf ep-fac:Facility . | ||
26 | + | ||
21 | ep-fac:Facility | 27 | ep-fac:Facility |
22 | rdf:type owl:Class ; | 28 | rdf:type owl:Class ; |
23 | rdfs:label "facility"^^xsd:string ; | 29 | rdfs:label "facility"^^xsd:string ; |
... | @@ -33,7 +39,8 @@ ep-fac:MoveableFacility | ... | @@ -33,7 +39,8 @@ ep-fac:MoveableFacility |
33 | 39 | ||
34 | ep-fac:Rig | 40 | ep-fac:Rig |
35 | rdf:type owl:Class ; | 41 | rdf:type owl:Class ; |
36 | - rdfs:subClassOf ep-fac:Facility . | 42 | + rdfs:label "rig"^^xsd:string ; |
43 | + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig . | ||
37 | 44 | ||
38 | ep-fac:SubSurfaceFixedFacility | 45 | ep-fac:SubSurfaceFixedFacility |
39 | rdf:type owl:Class ; | 46 | rdf:type owl:Class ; |
... | @@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility | ... | @@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility |
42 | ep-fac:SurfaceFixedFacility | 49 | ep-fac:SurfaceFixedFacility |
43 | rdf:type owl:Class ; | 50 | rdf:type owl:Class ; |
44 | rdfs:subClassOf ep-fac:FixedFacility . | 51 | rdfs:subClassOf ep-fac:FixedFacility . |
52 | + | ||
53 | +ep-fac:TemporalPartOfARig | ||
54 | + rdf:type owl:Class ; | ||
55 | + rdfs:label "temporal part of a rig"^^xsd:string ; | ||
56 | + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig . | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib | 2 | # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib |
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/report | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/report |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/core | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/core |
... | @@ -115,13 +115,53 @@ ep-spin-lib:buildPartActivityURI | ... | @@ -115,13 +115,53 @@ ep-spin-lib:buildPartActivityURI |
115 | ]) | 115 | ]) |
116 | ] . | 116 | ] . |
117 | 117 | ||
118 | +ep-spin-lib:buildRigURI | ||
119 | + rdf:type spin:Function ; | ||
120 | + rdfs:label "build Rig URI"^^xsd:string ; | ||
121 | + rdfs:subClassOf ep-spin-lib:Function ; | ||
122 | + spin:body | ||
123 | + [ rdf:type sp:Select ; | ||
124 | + sp:resultVariables (_:b5) ; | ||
125 | + sp:where ([ rdf:type sp:Bind ; | ||
126 | + sp:expression | ||
127 | + [ rdf:type ep-spin-lib:buildURI ; | ||
128 | + sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ; | ||
129 | + sp:arg2 spin:_arg1 | ||
130 | + ] ; | ||
131 | + sp:variable _:b5 | ||
132 | + ]) | ||
133 | + ] . | ||
134 | + | ||
135 | +ep-spin-lib:buildTemporalPartOfARigURI | ||
136 | + rdf:type spin:Function ; | ||
137 | + rdfs:label "build TemporalPartOfRig URI"^^xsd:string ; | ||
138 | + rdfs:subClassOf ep-spin-lib:Function ; | ||
139 | + spin:body | ||
140 | + [ rdf:type sp:Select ; | ||
141 | + sp:resultVariables (_:b6) ; | ||
142 | + sp:where ([ rdf:type sp:Bind ; | ||
143 | + sp:expression | ||
144 | + [ rdf:type ep-spin-lib:buildURI ; | ||
145 | + sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ; | ||
146 | + sp:arg2 [ rdf:type fn:concat ; | ||
147 | + sp:arg1 spin:_arg1 ; | ||
148 | + sp:arg2 "$" ; | ||
149 | + sp:arg3 spin:_arg2 ; | ||
150 | + sp:arg4 "$" ; | ||
151 | + sp:arg5 spin:_arg3 | ||
152 | + ] | ||
153 | + ] ; | ||
154 | + sp:variable _:b6 | ||
155 | + ]) | ||
156 | + ] . | ||
157 | + | ||
118 | ep-spin-lib:buildTemporalPartOfAWellBoreURI | 158 | ep-spin-lib:buildTemporalPartOfAWellBoreURI |
119 | rdf:type spin:Function ; | 159 | rdf:type spin:Function ; |
120 | rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ; | 160 | rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ; |
121 | rdfs:subClassOf ep-spin-lib:Function ; | 161 | rdfs:subClassOf ep-spin-lib:Function ; |
122 | spin:body | 162 | spin:body |
123 | [ rdf:type sp:Select ; | 163 | [ rdf:type sp:Select ; |
124 | - sp:resultVariables (_:b5) ; | 164 | + sp:resultVariables (_:b7) ; |
125 | sp:where ([ rdf:type sp:Bind ; | 165 | sp:where ([ rdf:type sp:Bind ; |
126 | sp:expression | 166 | sp:expression |
127 | [ rdf:type ep-spin-lib:buildURI ; | 167 | [ rdf:type ep-spin-lib:buildURI ; |
... | @@ -134,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI | ... | @@ -134,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI |
134 | sp:arg5 spin:_arg3 | 174 | sp:arg5 spin:_arg3 |
135 | ] | 175 | ] |
136 | ] ; | 176 | ] ; |
137 | - sp:variable _:b5 | 177 | + sp:variable _:b7 |
138 | ]) | 178 | ]) |
139 | ] . | 179 | ] . |
140 | 180 | ||
... | @@ -144,7 +184,7 @@ ep-spin-lib:buildURI | ... | @@ -144,7 +184,7 @@ ep-spin-lib:buildURI |
144 | rdfs:subClassOf ep-spin-lib:Function ; | 184 | rdfs:subClassOf ep-spin-lib:Function ; |
145 | spin:body | 185 | spin:body |
146 | [ rdf:type sp:Select ; | 186 | [ rdf:type sp:Select ; |
147 | - sp:resultVariables (_:b6) ; | 187 | + sp:resultVariables (_:b8) ; |
148 | sp:where ([ rdf:type sp:Bind ; | 188 | sp:where ([ rdf:type sp:Bind ; |
149 | sp:expression | 189 | sp:expression |
150 | [ rdf:type sp:iri ; | 190 | [ rdf:type sp:iri ; |
... | @@ -153,17 +193,17 @@ ep-spin-lib:buildURI | ... | @@ -153,17 +193,17 @@ ep-spin-lib:buildURI |
153 | sp:arg2 spin:_arg2 | 193 | sp:arg2 spin:_arg2 |
154 | ] | 194 | ] |
155 | ] ; | 195 | ] ; |
156 | - sp:variable _:b6 | 196 | + sp:variable _:b8 |
157 | ]) | 197 | ]) |
158 | ] ; | 198 | ] ; |
159 | spin:constraint | 199 | spin:constraint |
160 | [ rdf:type spl:Argument ; | 200 | [ rdf:type spl:Argument ; |
161 | - spl:predicate sp:arg2 ; | 201 | + spl:predicate sp:arg1 ; |
162 | spl:valueType xsd:string | 202 | spl:valueType xsd:string |
163 | ] ; | 203 | ] ; |
164 | spin:constraint | 204 | spin:constraint |
165 | [ rdf:type spl:Argument ; | 205 | [ rdf:type spl:Argument ; |
166 | - spl:predicate sp:arg1 ; | 206 | + spl:predicate sp:arg2 ; |
167 | spl:valueType xsd:string | 207 | spl:valueType xsd:string |
168 | ] . | 208 | ] . |
169 | 209 | ||
... | @@ -173,7 +213,7 @@ ep-spin-lib:normalizeString | ... | @@ -173,7 +213,7 @@ ep-spin-lib:normalizeString |
173 | rdfs:subClassOf ep-spin-lib:Function ; | 213 | rdfs:subClassOf ep-spin-lib:Function ; |
174 | spin:body | 214 | spin:body |
175 | [ rdf:type sp:Select ; | 215 | [ rdf:type sp:Select ; |
176 | - sp:resultVariables (_:b7) ; | 216 | + sp:resultVariables (_:b9) ; |
177 | sp:where ([ rdf:type sp:Bind ; | 217 | sp:where ([ rdf:type sp:Bind ; |
178 | sp:expression | 218 | sp:expression |
179 | [ rdf:type smf:regex ; | 219 | [ rdf:type smf:regex ; |
... | @@ -181,67 +221,67 @@ ep-spin-lib:normalizeString | ... | @@ -181,67 +221,67 @@ ep-spin-lib:normalizeString |
181 | sp:arg2 "\\((.*)\\)" ; | 221 | sp:arg2 "\\((.*)\\)" ; |
182 | sp:arg3 "" | 222 | sp:arg3 "" |
183 | ] ; | 223 | ] ; |
184 | - sp:variable _:b8 | 224 | + sp:variable _:b10 |
185 | ] [ rdf:type sp:Bind ; | 225 | ] [ rdf:type sp:Bind ; |
186 | sp:expression | 226 | sp:expression |
187 | [ rdf:type smf:trim ; | 227 | [ rdf:type smf:trim ; |
188 | - sp:arg1 _:b8 | 228 | + sp:arg1 _:b10 |
189 | ] ; | 229 | ] ; |
190 | - sp:variable _:b9 | 230 | + sp:variable _:b11 |
191 | ] [ rdf:type sp:Bind ; | 231 | ] [ rdf:type sp:Bind ; |
192 | sp:expression | 232 | sp:expression |
193 | [ rdf:type smf:encodeURL ; | 233 | [ rdf:type smf:encodeURL ; |
194 | - sp:arg1 _:b9 | 234 | + sp:arg1 _:b11 |
195 | ] ; | 235 | ] ; |
196 | - sp:variable _:b10 | 236 | + sp:variable _:b12 |
197 | ] [ rdf:type sp:Bind ; | 237 | ] [ rdf:type sp:Bind ; |
198 | sp:expression | 238 | sp:expression |
199 | [ rdf:type smf:regex ; | 239 | [ rdf:type smf:regex ; |
200 | - sp:arg1 _:b10 ; | 240 | + sp:arg1 _:b12 ; |
201 | sp:arg2 "%2F" ; | 241 | sp:arg2 "%2F" ; |
202 | sp:arg3 "_" | 242 | sp:arg3 "_" |
203 | ] ; | 243 | ] ; |
204 | - sp:variable _:b11 | 244 | + sp:variable _:b13 |
205 | ] [ rdf:type sp:Bind ; | 245 | ] [ rdf:type sp:Bind ; |
206 | sp:expression | 246 | sp:expression |
207 | [ rdf:type smf:regex ; | 247 | [ rdf:type smf:regex ; |
208 | - sp:arg1 _:b11 ; | 248 | + sp:arg1 _:b13 ; |
209 | sp:arg2 "%[0-9A-F][0-9A-F]" ; | 249 | sp:arg2 "%[0-9A-F][0-9A-F]" ; |
210 | sp:arg3 "" | 250 | sp:arg3 "" |
211 | ] ; | 251 | ] ; |
212 | - sp:variable _:b12 | 252 | + sp:variable _:b14 |
213 | ] [ rdf:type sp:Bind ; | 253 | ] [ rdf:type sp:Bind ; |
214 | sp:expression | 254 | sp:expression |
215 | [ rdf:type smf:regex ; | 255 | [ rdf:type smf:regex ; |
216 | - sp:arg1 _:b12 ; | 256 | + sp:arg1 _:b14 ; |
217 | sp:arg2 "\\+" ; | 257 | sp:arg2 "\\+" ; |
218 | sp:arg3 "_" | 258 | sp:arg3 "_" |
219 | ] ; | 259 | ] ; |
220 | - sp:variable _:b13 | 260 | + sp:variable _:b15 |
221 | ] [ rdf:type sp:Bind ; | 261 | ] [ rdf:type sp:Bind ; |
222 | sp:expression | 262 | sp:expression |
223 | [ rdf:type smf:regex ; | 263 | [ rdf:type smf:regex ; |
224 | - sp:arg1 _:b13 ; | 264 | + sp:arg1 _:b15 ; |
225 | sp:arg2 "_+" ; | 265 | sp:arg2 "_+" ; |
226 | sp:arg3 "_" | 266 | sp:arg3 "_" |
227 | ] ; | 267 | ] ; |
228 | - sp:variable _:b14 | 268 | + sp:variable _:b16 |
229 | ] [ rdf:type sp:Bind ; | 269 | ] [ rdf:type sp:Bind ; |
230 | sp:expression | 270 | sp:expression |
231 | [ rdf:type smf:regex ; | 271 | [ rdf:type smf:regex ; |
232 | - sp:arg1 _:b14 ; | 272 | + sp:arg1 _:b16 ; |
233 | sp:arg2 "\\*" ; | 273 | sp:arg2 "\\*" ; |
234 | sp:arg3 "" | 274 | sp:arg3 "" |
235 | ] ; | 275 | ] ; |
236 | - sp:variable _:b15 | 276 | + sp:variable _:b17 |
237 | ] [ rdf:type sp:Bind ; | 277 | ] [ rdf:type sp:Bind ; |
238 | sp:expression | 278 | sp:expression |
239 | [ rdf:type xsd:string ; | 279 | [ rdf:type xsd:string ; |
240 | sp:arg1 [ rdf:type smf:upperCase ; | 280 | sp:arg1 [ rdf:type smf:upperCase ; |
241 | - sp:arg1 _:b15 | 281 | + sp:arg1 _:b17 |
242 | ] | 282 | ] |
243 | ] ; | 283 | ] ; |
244 | - sp:variable _:b7 | 284 | + sp:variable _:b9 |
245 | ]) | 285 | ]) |
246 | ] ; | 286 | ] ; |
247 | spin:constraint | 287 | spin:constraint |
... | @@ -256,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType | ... | @@ -256,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType |
256 | rdfs:subClassOf ep-spin-lib:Function ; | 296 | rdfs:subClassOf ep-spin-lib:Function ; |
257 | spin:body | 297 | spin:body |
258 | [ rdf:type sp:Select ; | 298 | [ rdf:type sp:Select ; |
259 | - sp:resultVariables (_:b16) ; | 299 | + sp:resultVariables (_:b18) ; |
260 | sp:where ([ rdf:type sp:Bind ; | 300 | sp:where ([ rdf:type sp:Bind ; |
261 | sp:expression | 301 | sp:expression |
262 | [ rdf:type sp:if ; | 302 | [ rdf:type sp:if ; |
... | @@ -274,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType | ... | @@ -274,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType |
274 | sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport> | 314 | sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport> |
275 | ] | 315 | ] |
276 | ] ; | 316 | ] ; |
277 | - sp:variable _:b16 | 317 | + sp:variable _:b18 |
278 | ]) | 318 | ]) |
279 | ] . | 319 | ] . |
280 | 320 | ||
... | @@ -284,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType | ... | @@ -284,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType |
284 | rdfs:subClassOf ep-spin-lib:Function ; | 324 | rdfs:subClassOf ep-spin-lib:Function ; |
285 | spin:body | 325 | spin:body |
286 | [ rdf:type sp:Select ; | 326 | [ rdf:type sp:Select ; |
287 | - sp:resultVariables (_:b17) ; | 327 | + sp:resultVariables (_:b19) ; |
288 | sp:where ([ rdf:type sp:Bind ; | 328 | sp:where ([ rdf:type sp:Bind ; |
289 | sp:expression | 329 | sp:expression |
290 | [ rdf:type smf:if ; | 330 | [ rdf:type smf:if ; |
... | @@ -868,7 +908,7 @@ ep-spin-lib:selectDrillingActivityPurposeType | ... | @@ -868,7 +908,7 @@ ep-spin-lib:selectDrillingActivityPurposeType |
868 | ] | 908 | ] |
869 | ] | 909 | ] |
870 | ] ; | 910 | ] ; |
871 | - sp:variable _:b17 | 911 | + sp:variable _:b19 |
872 | ]) | 912 | ]) |
873 | ] . | 913 | ] . |
874 | 914 | ||
... | @@ -878,7 +918,7 @@ ep-spin-lib:selectLabelOfSystem | ... | @@ -878,7 +918,7 @@ ep-spin-lib:selectLabelOfSystem |
878 | rdfs:subClassOf ep-spin-lib:Function ; | 918 | rdfs:subClassOf ep-spin-lib:Function ; |
879 | spin:body | 919 | spin:body |
880 | [ rdf:type sp:Select ; | 920 | [ rdf:type sp:Select ; |
881 | - sp:resultVariables (_:b18) ; | 921 | + sp:resultVariables (_:b20) ; |
882 | sp:where ([ rdf:type sp:Bind ; | 922 | sp:where ([ rdf:type sp:Bind ; |
883 | sp:expression | 923 | sp:expression |
884 | [ rdf:type sp:if ; | 924 | [ rdf:type sp:if ; |
... | @@ -924,7 +964,7 @@ ep-spin-lib:selectLabelOfSystem | ... | @@ -924,7 +964,7 @@ ep-spin-lib:selectLabelOfSystem |
924 | ] | 964 | ] |
925 | ] | 965 | ] |
926 | ] ; | 966 | ] ; |
927 | - sp:variable _:b18 | 967 | + sp:variable _:b20 |
928 | ]) | 968 | ]) |
929 | ] . | 969 | ] . |
930 | 970 | ||
... | @@ -934,7 +974,7 @@ ep-spin-lib:selectPressureTestType | ... | @@ -934,7 +974,7 @@ ep-spin-lib:selectPressureTestType |
934 | rdfs:subClassOf ep-spin-lib:Function ; | 974 | rdfs:subClassOf ep-spin-lib:Function ; |
935 | spin:body | 975 | spin:body |
936 | [ rdf:type sp:Select ; | 976 | [ rdf:type sp:Select ; |
937 | - sp:resultVariables (_:b19) ; | 977 | + sp:resultVariables (_:b21) ; |
938 | sp:where ([ rdf:type sp:Bind ; | 978 | sp:where ([ rdf:type sp:Bind ; |
939 | sp:expression | 979 | sp:expression |
940 | [ rdf:type smf:if ; | 980 | [ rdf:type smf:if ; |
... | @@ -951,7 +991,7 @@ ep-spin-lib:selectPressureTestType | ... | @@ -951,7 +991,7 @@ ep-spin-lib:selectPressureTestType |
951 | sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> | 991 | sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> |
952 | ] | 992 | ] |
953 | ] ; | 993 | ] ; |
954 | - sp:variable _:b19 | 994 | + sp:variable _:b21 |
955 | ]) | 995 | ]) |
956 | ] . | 996 | ] . |
957 | 997 | ||
... | @@ -961,60 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType | ... | @@ -961,60 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType |
961 | rdfs:subClassOf ep-spin-lib:Function ; | 1001 | rdfs:subClassOf ep-spin-lib:Function ; |
962 | spin:body | 1002 | spin:body |
963 | [ rdf:type sp:Select ; | 1003 | [ rdf:type sp:Select ; |
964 | - sp:resultVariables (_:b20) ; | 1004 | + sp:resultVariables (_:b22) ; |
965 | - sp:where ([ sp:object _:b20 ; | 1005 | + sp:where ([ sp:object _:b22 ; |
966 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; | 1006 | sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; |
967 | sp:subject spin:_arg1 | 1007 | sp:subject spin:_arg1 |
968 | ]) | 1008 | ]) |
969 | ] . | 1009 | ] . |
970 | 1010 | ||
971 | -_:b7 sp:varName "normalizedStr"^^xsd:string . | 1011 | +_:b1 sp:varName "uri"^^xsd:string . |
972 | 1012 | ||
973 | -_:b8 sp:varName "s1"^^xsd:string . | 1013 | +_:b2 sp:varName "uri"^^xsd:string . |
974 | 1014 | ||
975 | -_:b9 sp:varName "s2"^^xsd:string . | 1015 | +_:b3 sp:varName "uri"^^xsd:string . |
1016 | + | ||
1017 | +_:b4 sp:varName "uri"^^xsd:string . | ||
1018 | + | ||
1019 | +_:b7 sp:varName "uri"^^xsd:string . | ||
1020 | + | ||
1021 | +_:b8 sp:varName "uri"^^xsd:string . | ||
1022 | + | ||
1023 | +_:b9 sp:varName "normalizedStr"^^xsd:string . | ||
976 | 1024 | ||
977 | _:b10 | 1025 | _:b10 |
978 | - sp:varName "t0a"^^xsd:string . | 1026 | + sp:varName "s1"^^xsd:string . |
979 | 1027 | ||
980 | _:b11 | 1028 | _:b11 |
981 | - sp:varName "t0b"^^xsd:string . | 1029 | + sp:varName "s2"^^xsd:string . |
982 | 1030 | ||
983 | _:b12 | 1031 | _:b12 |
984 | - sp:varName "t1"^^xsd:string . | 1032 | + sp:varName "t0a"^^xsd:string . |
985 | 1033 | ||
986 | _:b13 | 1034 | _:b13 |
987 | - sp:varName "t2"^^xsd:string . | 1035 | + sp:varName "t0b"^^xsd:string . |
988 | 1036 | ||
989 | _:b14 | 1037 | _:b14 |
990 | - sp:varName "t3"^^xsd:string . | 1038 | + sp:varName "t1"^^xsd:string . |
991 | 1039 | ||
992 | _:b15 | 1040 | _:b15 |
993 | - sp:varName "t4"^^xsd:string . | 1041 | + sp:varName "t2"^^xsd:string . |
994 | 1042 | ||
995 | _:b16 | 1043 | _:b16 |
996 | - sp:varName "dailyDrillingReportType"^^xsd:string . | 1044 | + sp:varName "t3"^^xsd:string . |
997 | 1045 | ||
998 | _:b17 | 1046 | _:b17 |
999 | - sp:varName "drillingActivityPurposeType"^^xsd:string . | 1047 | + sp:varName "t4"^^xsd:string . |
1048 | + | ||
1049 | +_:b18 | ||
1050 | + sp:varName "dailyDrillingReportType"^^xsd:string . | ||
1000 | 1051 | ||
1001 | _:b19 | 1052 | _:b19 |
1002 | - sp:varName "pressureTestType"^^xsd:string . | 1053 | + sp:varName "drillingActivityPurposeType"^^xsd:string . |
1003 | 1054 | ||
1004 | _:b20 | 1055 | _:b20 |
1005 | - sp:varName "wellBoreDrillingType"^^xsd:string . | ||
1006 | - | ||
1007 | -_:b18 | ||
1008 | sp:varName "dailyDrillingReportType"^^xsd:string . | 1056 | sp:varName "dailyDrillingReportType"^^xsd:string . |
1009 | 1057 | ||
1010 | -_:b1 sp:varName "uri"^^xsd:string . | 1058 | +_:b21 |
1011 | - | 1059 | + sp:varName "pressureTestType"^^xsd:string . |
1012 | -_:b2 sp:varName "uri"^^xsd:string . | ||
1013 | 1060 | ||
1014 | -_:b3 sp:varName "uri"^^xsd:string . | 1061 | +_:b22 |
1062 | + sp:varName "wellBoreDrillingType"^^xsd:string . | ||
1015 | 1063 | ||
1016 | -_:b4 sp:varName "uri"^^xsd:string . | 1064 | +_:b6 sp:varName "uri"^^xsd:string . |
1017 | 1065 | ||
1018 | _:b5 sp:varName "uri"^^xsd:string . | 1066 | _:b5 sp:varName "uri"^^xsd:string . |
1019 | - | ||
1020 | -_:b6 sp:varName "uri"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 13:36:32 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011 |
2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization |
3 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity | 3 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity |
4 | # imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias | 4 | # imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias |
5 | +# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | ||
5 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
6 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo | 7 | # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo |
7 | 8 | ||
... | @@ -15,11 +16,12 @@ | ... | @@ -15,11 +16,12 @@ |
15 | @prefix spin: <http://spinrdf.org/spin#> . | 16 | @prefix spin: <http://spinrdf.org/spin#> . |
16 | @prefix spl: <http://spinrdf.org/spl#> . | 17 | @prefix spl: <http://spinrdf.org/spl#> . |
17 | @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . | 18 | @prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . |
19 | +@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | ||
18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 20 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | 21 | ||
20 | <http://www.reportinghub.no/ep/transform/1.1/normalization> | 22 | <http://www.reportinghub.no/ep/transform/1.1/normalization> |
21 | rdf:type owl:Ontology ; | 23 | rdf:type owl:Ontology ; |
22 | - owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ; | 24 | + owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> ; |
23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
24 | 26 | ||
25 | owl:Thing | 27 | owl:Thing | ... | ... |
1 | -# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011 | 1 | +# Saved by TopBraid on Wed Aug 10 14:09:07 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
1 | +# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011 | ||
1 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr | 2 | # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr |
2 | -# imports: http://spinrdf.org/spin | 3 | +# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias |
3 | -# imports: http://topbraid.org/sxml | ||
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
8 | # imports: http://www.reportinghub.no/ep/schema/1.0/report | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/report |
9 | # imports: http://www.reportinghub.no/ep/schema/1.0/well | 5 | # imports: http://www.reportinghub.no/ep/schema/1.0/well |
6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
10 | +# imports: http://spinrdf.org/spin | ||
11 | +# imports: http://topbraid.org/sxml | ||
10 | 12 | ||
11 | @prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> . | 13 | @prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> . |
12 | @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . | 14 | @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . |
... | @@ -21,6 +23,7 @@ | ... | @@ -21,6 +23,7 @@ |
21 | @prefix spif: <http://spinrdf.org/spif#> . | 23 | @prefix spif: <http://spinrdf.org/spif#> . |
22 | @prefix spin: <http://spinrdf.org/spin#> . | 24 | @prefix spin: <http://spinrdf.org/spin#> . |
23 | @prefix sxml: <http://topbraid.org/sxml#> . | 25 | @prefix sxml: <http://topbraid.org/sxml#> . |
26 | +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> . | ||
24 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 27 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
25 | 28 | ||
26 | ddr:Cs_activity | 29 | ddr:Cs_activity |
... | @@ -36,7 +39,7 @@ ddr:Cs_activity | ... | @@ -36,7 +39,7 @@ ddr:Cs_activity |
36 | sxml:element "witsml:activity"^^xsd:string . | 39 | sxml:element "witsml:activity"^^xsd:string . |
37 | 40 | ||
38 | ddr:Cs_alias | 41 | ddr:Cs_alias |
39 | - sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" . | 42 | + sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string . |
40 | 43 | ||
41 | ddr:Cs_bitRecord | 44 | ddr:Cs_bitRecord |
42 | sxml:element "witsml:bitRecord" . | 45 | sxml:element "witsml:bitRecord" . |
... | @@ -84,7 +87,7 @@ ddr:Cs_drillReportPorePressure | ... | @@ -84,7 +87,7 @@ ddr:Cs_drillReportPorePressure |
84 | sxml:element "witsml:drillReportPorePressure" . | 87 | sxml:element "witsml:drillReportPorePressure" . |
85 | 88 | ||
86 | ddr:Cs_drillReportStatusInfo | 89 | ddr:Cs_drillReportStatusInfo |
87 | - sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" . | 90 | + sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string . |
88 | 91 | ||
89 | ddr:Cs_drillReportStratInfo | 92 | ddr:Cs_drillReportStratInfo |
90 | sxml:element "witsml:drillReportStratInfo" . | 93 | sxml:element "witsml:drillReportStratInfo" . |
... | @@ -120,7 +123,7 @@ ddr:Cs_refWellWellboreRig | ... | @@ -120,7 +123,7 @@ ddr:Cs_refWellWellboreRig |
120 | sxml:element "witsml:refWellWellboreRig" . | 123 | sxml:element "witsml:refWellWellboreRig" . |
121 | 124 | ||
122 | ddr:Cs_wellAlias | 125 | ddr:Cs_wellAlias |
123 | - sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string . | 126 | + sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias" . |
124 | 127 | ||
125 | ddr:Cs_wellCRS | 128 | ddr:Cs_wellCRS |
126 | sxml:element "witsml:wellCRS" . | 129 | sxml:element "witsml:wellCRS" . |
... | @@ -137,346 +140,345 @@ ddr:Obj_drillReport | ... | @@ -137,346 +140,345 @@ ddr:Obj_drillReport |
137 | ddr:Thing | 140 | ddr:Thing |
138 | spin:rule | 141 | spin:rule |
139 | [ rdf:type sp:Construct ; | 142 | [ rdf:type sp:Construct ; |
140 | - rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; | 143 | + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; |
141 | sp:templates ([ sp:object _:b1 ; | 144 | sp:templates ([ sp:object _:b1 ; |
142 | - sp:predicate rdf:type ; | 145 | + sp:predicate _:b2 ; |
143 | - sp:subject _:b2 | ||
144 | - ] [ sp:object _:b3 ; | ||
145 | - sp:predicate ddr:uom ; | ||
146 | - sp:subject _:b2 | ||
147 | - ] [ sp:object _:b4 ; | ||
148 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
149 | - sp:subject _:b2 | ||
150 | - ] [ sp:object _:b2 ; | ||
151 | - sp:predicate _:b5 ; | ||
152 | sp:subject spin:_this | 146 | sp:subject spin:_this |
153 | ] [ sp:object rdf:Statement ; | 147 | ] [ sp:object rdf:Statement ; |
154 | sp:predicate rdf:type ; | 148 | sp:predicate rdf:type ; |
155 | - sp:subject _:b6 | 149 | + sp:subject _:b3 |
156 | ] [ sp:object spin:_this ; | 150 | ] [ sp:object spin:_this ; |
157 | sp:predicate rdf:subject ; | 151 | sp:predicate rdf:subject ; |
158 | - sp:subject _:b6 | 152 | + sp:subject _:b3 |
159 | - ] [ sp:object _:b5 ; | 153 | + ] [ sp:object _:b2 ; |
160 | sp:predicate rdf:predicate ; | 154 | sp:predicate rdf:predicate ; |
161 | - sp:subject _:b6 | 155 | + sp:subject _:b3 |
162 | - ] [ sp:object _:b4 ; | 156 | + ] [ sp:object _:b1 ; |
163 | sp:predicate rdf:object ; | 157 | sp:predicate rdf:object ; |
164 | - sp:subject _:b6 | 158 | + sp:subject _:b3 |
165 | - ] [ sp:object _:b6 ; | 159 | + ] [ sp:object _:b3 ; |
166 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 160 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
167 | - sp:subject _:b7 | 161 | + sp:subject _:b4 |
168 | ]) ; | 162 | ]) ; |
169 | - sp:where ([ sp:object _:b7 ; | 163 | + sp:where ([ sp:object _:b4 ; |
170 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 164 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
171 | sp:subject spin:_this | 165 | sp:subject spin:_this |
172 | - ] [ sp:object _:b8 ; | 166 | + ] [ sp:object _:b5 ; |
173 | sp:predicate rdf:type ; | 167 | sp:predicate rdf:type ; |
174 | - sp:subject _:b7 | 168 | + sp:subject _:b4 |
175 | - ] [ sp:object _:b3 ; | ||
176 | - sp:predicate ddr:uom ; | ||
177 | - sp:subject _:b7 | ||
178 | ] [ rdf:type sp:NotExists ; | 169 | ] [ rdf:type sp:NotExists ; |
179 | sp:elements ([ sp:object | 170 | sp:elements ([ sp:object |
180 | - [ sp:varName "aNode"^^xsd:string | 171 | + [ sp:varName "uom"^^xsd:string |
181 | ] ; | 172 | ] ; |
182 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 173 | + sp:predicate ddr:uom ; |
183 | - sp:subject _:b7 | 174 | + sp:subject _:b4 |
184 | ]) | 175 | ]) |
185 | ] [ rdf:type sp:Bind ; | 176 | ] [ rdf:type sp:Bind ; |
186 | sp:expression | 177 | sp:expression |
187 | [ rdf:type afn:localname ; | 178 | [ rdf:type afn:localname ; |
188 | - sp:arg1 _:b8 | 179 | + sp:arg1 _:b5 |
189 | ] ; | 180 | ] ; |
190 | - sp:variable _:b9 | 181 | + sp:variable _:b6 |
191 | ] [ rdf:type sp:Bind ; | 182 | ] [ rdf:type sp:Bind ; |
192 | sp:expression | 183 | sp:expression |
193 | [ rdf:type smf:buildURI ; | 184 | [ rdf:type smf:buildURI ; |
194 | sp:arg1 [ rdf:type fn:concat ; | 185 | sp:arg1 [ rdf:type fn:concat ; |
195 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 186 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
196 | - sp:arg2 _:b9 | 187 | + sp:arg2 _:b6 |
197 | ] | 188 | ] |
198 | ] ; | 189 | ] ; |
199 | - sp:variable _:b5 | 190 | + sp:variable _:b2 |
200 | - ] [ sp:object owl:ObjectProperty ; | 191 | + ] [ sp:object owl:DatatypeProperty ; |
201 | sp:predicate rdf:type ; | 192 | sp:predicate rdf:type ; |
202 | - sp:subject _:b5 | 193 | + sp:subject _:b2 |
203 | - ] [ sp:object _:b5 ; | 194 | + ] [ sp:object _:b2 ; |
204 | sp:predicate owl:onProperty ; | 195 | sp:predicate owl:onProperty ; |
205 | - sp:subject _:b10 | 196 | + sp:subject _:b7 |
206 | - ] [ sp:object _:b1 ; | 197 | + ] [ sp:object _:b8 ; |
207 | sp:predicate owl:allValuesFrom ; | 198 | sp:predicate owl:allValuesFrom ; |
208 | - sp:subject _:b10 | 199 | + sp:subject _:b7 |
209 | - ] [ sp:object _:b11 ; | ||
210 | - sp:predicate rdf:type ; | ||
211 | - sp:subject spin:_this | ||
212 | ] [ rdf:type sp:TriplePath ; | 200 | ] [ rdf:type sp:TriplePath ; |
213 | - sp:object _:b10 ; | 201 | + sp:object xsd:string ; |
214 | sp:path [ rdf:type sp:ModPath ; | 202 | sp:path [ rdf:type sp:ModPath ; |
215 | sp:modMax -2 ; | 203 | sp:modMax -2 ; |
216 | sp:modMin 0 ; | 204 | sp:modMin 0 ; |
217 | sp:subPath rdfs:subClassOf | 205 | sp:subPath rdfs:subClassOf |
218 | ] ; | 206 | ] ; |
219 | - sp:subject _:b11 | 207 | + sp:subject _:b8 |
220 | - ] [ sp:object _:b12 ; | 208 | + ] [ sp:object _:b9 ; |
221 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 209 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
222 | - sp:subject _:b7 | 210 | + sp:subject _:b4 |
223 | ] [ sp:object sxml:TextNode ; | 211 | ] [ sp:object sxml:TextNode ; |
224 | sp:predicate rdf:type ; | 212 | sp:predicate rdf:type ; |
225 | - sp:subject _:b12 | 213 | + sp:subject _:b9 |
226 | - ] [ sp:object _:b13 ; | 214 | + ] [ sp:object _:b1 ; |
227 | sp:predicate sxml:text ; | 215 | sp:predicate sxml:text ; |
228 | - sp:subject _:b12 | 216 | + sp:subject _:b9 |
229 | - ] [ rdf:type sp:Bind ; | 217 | + ] [ sp:object _:b10 ; |
230 | - sp:expression | 218 | + sp:predicate rdf:type ; |
231 | - [ rdf:type xsd:double ; | 219 | + sp:subject spin:_this |
232 | - sp:arg1 _:b13 | 220 | + ] [ rdf:type sp:TriplePath ; |
221 | + sp:object _:b7 ; | ||
222 | + sp:path [ rdf:type sp:ModPath ; | ||
223 | + sp:modMax -2 ; | ||
224 | + sp:modMin 0 ; | ||
225 | + sp:subPath rdfs:subClassOf | ||
233 | ] ; | 226 | ] ; |
234 | - sp:variable _:b4 | 227 | + sp:subject _:b10 |
235 | ]) | 228 | ]) |
236 | ] ; | 229 | ] ; |
237 | spin:rule | 230 | spin:rule |
238 | [ rdf:type sp:Construct ; | 231 | [ rdf:type sp:Construct ; |
239 | - rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; | 232 | + rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; |
240 | - sp:templates ([ sp:object _:b14 ; | 233 | + sp:templates ([ sp:object _:b11 ; |
241 | - sp:predicate _:b15 ; | 234 | + sp:predicate _:b12 ; |
242 | sp:subject spin:_this | 235 | sp:subject spin:_this |
243 | ] [ sp:object rdf:Statement ; | 236 | ] [ sp:object rdf:Statement ; |
244 | sp:predicate rdf:type ; | 237 | sp:predicate rdf:type ; |
245 | - sp:subject _:b16 | 238 | + sp:subject _:b13 |
246 | ] [ sp:object spin:_this ; | 239 | ] [ sp:object spin:_this ; |
247 | sp:predicate rdf:subject ; | 240 | sp:predicate rdf:subject ; |
248 | - sp:subject _:b16 | 241 | + sp:subject _:b13 |
249 | - ] [ sp:object _:b15 ; | 242 | + ] [ sp:object _:b12 ; |
250 | sp:predicate rdf:predicate ; | 243 | sp:predicate rdf:predicate ; |
251 | - sp:subject _:b16 | 244 | + sp:subject _:b13 |
252 | - ] [ sp:object _:b14 ; | 245 | + ] [ sp:object _:b11 ; |
253 | sp:predicate rdf:object ; | 246 | sp:predicate rdf:object ; |
254 | - sp:subject _:b16 | 247 | + sp:subject _:b13 |
255 | - ] [ sp:object _:b16 ; | 248 | + ] [ sp:object _:b13 ; |
256 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 249 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
257 | - sp:subject _:b17 | 250 | + sp:subject _:b14 |
258 | ]) ; | 251 | ]) ; |
259 | - sp:where ([ sp:object _:b17 ; | 252 | + sp:where ([ sp:object _:b14 ; |
260 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 253 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
261 | sp:subject spin:_this | 254 | sp:subject spin:_this |
262 | - ] [ sp:object _:b18 ; | 255 | + ] [ sp:object _:b15 ; |
263 | sp:predicate rdf:type ; | 256 | sp:predicate rdf:type ; |
264 | - sp:subject _:b17 | 257 | + sp:subject _:b14 |
265 | ] [ rdf:type sp:NotExists ; | 258 | ] [ rdf:type sp:NotExists ; |
266 | sp:elements ([ sp:object | 259 | sp:elements ([ sp:object |
267 | [ sp:varName "uom"^^xsd:string | 260 | [ sp:varName "uom"^^xsd:string |
268 | ] ; | 261 | ] ; |
269 | sp:predicate ddr:uom ; | 262 | sp:predicate ddr:uom ; |
270 | - sp:subject _:b17 | 263 | + sp:subject _:b14 |
271 | ]) | 264 | ]) |
272 | ] [ rdf:type sp:Bind ; | 265 | ] [ rdf:type sp:Bind ; |
273 | sp:expression | 266 | sp:expression |
274 | - [ rdf:type smf:titleCase ; | 267 | + [ rdf:type afn:localname ; |
275 | - sp:arg1 [ rdf:type afn:localname ; | 268 | + sp:arg1 _:b15 |
276 | - sp:arg1 _:b18 | ||
277 | - ] | ||
278 | ] ; | 269 | ] ; |
279 | - sp:variable _:b19 | 270 | + sp:variable _:b16 |
280 | ] [ rdf:type sp:Bind ; | 271 | ] [ rdf:type sp:Bind ; |
281 | sp:expression | 272 | sp:expression |
282 | [ rdf:type smf:buildURI ; | 273 | [ rdf:type smf:buildURI ; |
283 | sp:arg1 [ rdf:type fn:concat ; | 274 | sp:arg1 [ rdf:type fn:concat ; |
284 | - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ; | 275 | + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
285 | - sp:arg2 _:b19 | 276 | + sp:arg2 _:b16 |
286 | ] | 277 | ] |
287 | ] ; | 278 | ] ; |
288 | - sp:variable _:b15 | 279 | + sp:variable _:b12 |
289 | - ] [ sp:object owl:ObjectProperty ; | 280 | + ] [ sp:object owl:DatatypeProperty ; |
290 | sp:predicate rdf:type ; | 281 | sp:predicate rdf:type ; |
291 | - sp:subject _:b15 | 282 | + sp:subject _:b12 |
292 | - ] [ sp:object _:b15 ; | 283 | + ] [ sp:object _:b12 ; |
293 | sp:predicate owl:onProperty ; | 284 | sp:predicate owl:onProperty ; |
294 | - sp:subject _:b20 | 285 | + sp:subject _:b17 |
295 | - ] [ sp:object _:b21 ; | 286 | + ] [ sp:object _:b18 ; |
296 | sp:predicate owl:allValuesFrom ; | 287 | sp:predicate owl:allValuesFrom ; |
297 | - sp:subject _:b20 | 288 | + sp:subject _:b17 |
298 | - ] [ sp:object _:b22 ; | ||
299 | - sp:predicate rdf:type ; | ||
300 | - sp:subject spin:_this | ||
301 | ] [ rdf:type sp:TriplePath ; | 289 | ] [ rdf:type sp:TriplePath ; |
302 | - sp:object _:b20 ; | 290 | + sp:object xsd:dateTime ; |
303 | sp:path [ rdf:type sp:ModPath ; | 291 | sp:path [ rdf:type sp:ModPath ; |
304 | sp:modMax -2 ; | 292 | sp:modMax -2 ; |
305 | sp:modMin 0 ; | 293 | sp:modMin 0 ; |
306 | sp:subPath rdfs:subClassOf | 294 | sp:subPath rdfs:subClassOf |
307 | ] ; | 295 | ] ; |
308 | - sp:subject _:b22 | 296 | + sp:subject _:b18 |
297 | + ] [ sp:object _:b19 ; | ||
298 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
299 | + sp:subject _:b14 | ||
300 | + ] [ sp:object sxml:TextNode ; | ||
301 | + sp:predicate rdf:type ; | ||
302 | + sp:subject _:b19 | ||
303 | + ] [ sp:object _:b20 ; | ||
304 | + sp:predicate sxml:text ; | ||
305 | + sp:subject _:b19 | ||
306 | + ] [ sp:object _:b21 ; | ||
307 | + sp:predicate rdf:type ; | ||
308 | + sp:subject spin:_this | ||
309 | ] [ rdf:type sp:TriplePath ; | 309 | ] [ rdf:type sp:TriplePath ; |
310 | - sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; | 310 | + sp:object _:b17 ; |
311 | sp:path [ rdf:type sp:ModPath ; | 311 | sp:path [ rdf:type sp:ModPath ; |
312 | sp:modMax -2 ; | 312 | sp:modMax -2 ; |
313 | sp:modMin 0 ; | 313 | sp:modMin 0 ; |
314 | sp:subPath rdfs:subClassOf | 314 | sp:subPath rdfs:subClassOf |
315 | ] ; | 315 | ] ; |
316 | sp:subject _:b21 | 316 | sp:subject _:b21 |
317 | - ] [ sp:object _:b23 ; | 317 | + ] [ rdf:type sp:Bind ; |
318 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 318 | + sp:expression |
319 | - sp:subject _:b17 | 319 | + [ rdf:type xsd:dateTime ; |
320 | - ] [ sp:object sxml:TextNode ; | 320 | + sp:arg1 _:b20 |
321 | - sp:predicate rdf:type ; | 321 | + ] ; |
322 | - sp:subject _:b23 | 322 | + sp:variable _:b11 |
323 | - ] [ sp:object _:b24 ; | ||
324 | - sp:predicate sxml:text ; | ||
325 | - sp:subject _:b23 | ||
326 | - ] [ sp:object _:b21 ; | ||
327 | - sp:predicate rdf:type ; | ||
328 | - sp:subject _:b14 | ||
329 | - ] [ sp:object _:b24 ; | ||
330 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
331 | - sp:subject _:b14 | ||
332 | ]) | 323 | ]) |
333 | ] ; | 324 | ] ; |
334 | spin:rule | 325 | spin:rule |
335 | [ rdf:type sp:Construct ; | 326 | [ rdf:type sp:Construct ; |
336 | rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; | 327 | rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; |
337 | - sp:templates ([ sp:object _:b25 ; | 328 | + sp:templates ([ sp:object _:b22 ; |
338 | - sp:predicate _:b26 ; | 329 | + sp:predicate _:b23 ; |
339 | sp:subject spin:_this | 330 | sp:subject spin:_this |
340 | ] [ sp:object rdf:Statement ; | 331 | ] [ sp:object rdf:Statement ; |
341 | sp:predicate rdf:type ; | 332 | sp:predicate rdf:type ; |
342 | - sp:subject _:b27 | 333 | + sp:subject _:b24 |
343 | ] [ sp:object spin:_this ; | 334 | ] [ sp:object spin:_this ; |
344 | sp:predicate rdf:subject ; | 335 | sp:predicate rdf:subject ; |
345 | - sp:subject _:b27 | 336 | + sp:subject _:b24 |
346 | - ] [ sp:object _:b26 ; | 337 | + ] [ sp:object _:b23 ; |
347 | sp:predicate rdf:predicate ; | 338 | sp:predicate rdf:predicate ; |
348 | - sp:subject _:b27 | 339 | + sp:subject _:b24 |
349 | - ] [ sp:object _:b25 ; | 340 | + ] [ sp:object _:b22 ; |
350 | sp:predicate rdf:object ; | 341 | sp:predicate rdf:object ; |
351 | - sp:subject _:b27 | 342 | + sp:subject _:b24 |
352 | - ] [ sp:object _:b27 ; | 343 | + ] [ sp:object _:b24 ; |
353 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 344 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
354 | - sp:subject _:b25 | 345 | + sp:subject _:b22 |
355 | ]) ; | 346 | ]) ; |
356 | - sp:where ([ sp:object _:b28 ; | 347 | + sp:where ([ sp:object _:b25 ; |
357 | sp:predicate owl:allValuesFrom ; | 348 | sp:predicate owl:allValuesFrom ; |
358 | - sp:subject _:b29 | 349 | + sp:subject _:b26 |
359 | - ] [ sp:object _:b26 ; | 350 | + ] [ sp:object _:b23 ; |
360 | sp:predicate owl:onProperty ; | 351 | sp:predicate owl:onProperty ; |
361 | - sp:subject _:b29 | 352 | + sp:subject _:b26 |
362 | - ] [ sp:object _:b28 ; | ||
363 | - sp:predicate rdf:type ; | ||
364 | - sp:subject _:b25 | ||
365 | ] [ sp:object _:b25 ; | 353 | ] [ sp:object _:b25 ; |
354 | + sp:predicate rdf:type ; | ||
355 | + sp:subject _:b22 | ||
356 | + ] [ sp:object _:b22 ; | ||
366 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 357 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
367 | sp:subject spin:_this | 358 | sp:subject spin:_this |
368 | - ] [ sp:object _:b30 ; | 359 | + ] [ sp:object _:b27 ; |
369 | sp:predicate rdf:type ; | 360 | sp:predicate rdf:type ; |
370 | sp:subject spin:_this | 361 | sp:subject spin:_this |
371 | ] [ rdf:type sp:TriplePath ; | 362 | ] [ rdf:type sp:TriplePath ; |
372 | - sp:object _:b29 ; | 363 | + sp:object _:b26 ; |
373 | sp:path [ rdf:type sp:ModPath ; | 364 | sp:path [ rdf:type sp:ModPath ; |
374 | sp:modMax -2 ; | 365 | sp:modMax -2 ; |
375 | sp:modMin 0 ; | 366 | sp:modMin 0 ; |
376 | sp:subPath rdfs:subClassOf | 367 | sp:subPath rdfs:subClassOf |
377 | ] ; | 368 | ] ; |
378 | - sp:subject _:b30 | 369 | + sp:subject _:b27 |
379 | ]) | 370 | ]) |
380 | ] ; | 371 | ] ; |
381 | spin:rule | 372 | spin:rule |
382 | [ rdf:type sp:Construct ; | 373 | [ rdf:type sp:Construct ; |
383 | - rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; | 374 | + rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; |
384 | - sp:templates ([ sp:object _:b31 ; | 375 | + sp:templates ([ sp:object _:b28 ; |
385 | - sp:predicate _:b32 ; | 376 | + sp:predicate _:b29 ; |
386 | sp:subject spin:_this | 377 | sp:subject spin:_this |
387 | ] [ sp:object rdf:Statement ; | 378 | ] [ sp:object rdf:Statement ; |
388 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
389 | - sp:subject _:b33 | 380 | + sp:subject _:b30 |
390 | ] [ sp:object spin:_this ; | 381 | ] [ sp:object spin:_this ; |
391 | sp:predicate rdf:subject ; | 382 | sp:predicate rdf:subject ; |
392 | - sp:subject _:b33 | 383 | + sp:subject _:b30 |
393 | - ] [ sp:object _:b32 ; | 384 | + ] [ sp:object _:b29 ; |
394 | sp:predicate rdf:predicate ; | 385 | sp:predicate rdf:predicate ; |
395 | - sp:subject _:b33 | 386 | + sp:subject _:b30 |
396 | - ] [ sp:object _:b31 ; | 387 | + ] [ sp:object _:b28 ; |
397 | sp:predicate rdf:object ; | 388 | sp:predicate rdf:object ; |
398 | - sp:subject _:b33 | 389 | + sp:subject _:b30 |
399 | - ] [ sp:object _:b33 ; | 390 | + ] [ sp:object _:b30 ; |
400 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | 391 | sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
401 | - sp:subject _:b34 | 392 | + sp:subject _:b31 |
402 | ]) ; | 393 | ]) ; |
403 | - sp:where ([ sp:object _:b34 ; | 394 | + sp:where ([ sp:object _:b31 ; |
404 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | 395 | sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
405 | sp:subject spin:_this | 396 | sp:subject spin:_this |
406 | - ] [ sp:object _:b35 ; | 397 | + ] [ sp:object _:b32 ; |
407 | sp:predicate rdf:type ; | 398 | sp:predicate rdf:type ; |
408 | - sp:subject _:b34 | 399 | + sp:subject _:b31 |
409 | ] [ rdf:type sp:NotExists ; | 400 | ] [ rdf:type sp:NotExists ; |
410 | sp:elements ([ sp:object | 401 | sp:elements ([ sp:object |
411 | [ sp:varName "uom"^^xsd:string | 402 | [ sp:varName "uom"^^xsd:string |
412 | ] ; | 403 | ] ; |
413 | sp:predicate ddr:uom ; | 404 | sp:predicate ddr:uom ; |
414 | - sp:subject _:b34 | 405 | + sp:subject _:b31 |
415 | ]) | 406 | ]) |
416 | ] [ rdf:type sp:Bind ; | 407 | ] [ rdf:type sp:Bind ; |
417 | sp:expression | 408 | sp:expression |
418 | - [ rdf:type afn:localname ; | 409 | + [ rdf:type smf:titleCase ; |
419 | - sp:arg1 _:b35 | 410 | + sp:arg1 [ rdf:type afn:localname ; |
411 | + sp:arg1 _:b32 | ||
412 | + ] | ||
420 | ] ; | 413 | ] ; |
421 | - sp:variable _:b36 | 414 | + sp:variable _:b33 |
422 | ] [ rdf:type sp:Bind ; | 415 | ] [ rdf:type sp:Bind ; |
423 | sp:expression | 416 | sp:expression |
424 | [ rdf:type smf:buildURI ; | 417 | [ rdf:type smf:buildURI ; |
425 | sp:arg1 [ rdf:type fn:concat ; | 418 | sp:arg1 [ rdf:type fn:concat ; |
426 | - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 419 | + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ; |
427 | - sp:arg2 _:b36 | 420 | + sp:arg2 _:b33 |
428 | ] | 421 | ] |
429 | ] ; | 422 | ] ; |
430 | - sp:variable _:b32 | 423 | + sp:variable _:b29 |
431 | - ] [ sp:object owl:DatatypeProperty ; | 424 | + ] [ sp:object owl:ObjectProperty ; |
432 | sp:predicate rdf:type ; | 425 | sp:predicate rdf:type ; |
433 | - sp:subject _:b32 | 426 | + sp:subject _:b29 |
434 | - ] [ sp:object _:b32 ; | 427 | + ] [ sp:object _:b29 ; |
435 | sp:predicate owl:onProperty ; | 428 | sp:predicate owl:onProperty ; |
436 | - sp:subject _:b37 | 429 | + sp:subject _:b34 |
437 | - ] [ sp:object _:b38 ; | 430 | + ] [ sp:object _:b35 ; |
438 | sp:predicate owl:allValuesFrom ; | 431 | sp:predicate owl:allValuesFrom ; |
439 | - sp:subject _:b37 | 432 | + sp:subject _:b34 |
433 | + ] [ sp:object _:b36 ; | ||
434 | + sp:predicate rdf:type ; | ||
435 | + sp:subject spin:_this | ||
440 | ] [ rdf:type sp:TriplePath ; | 436 | ] [ rdf:type sp:TriplePath ; |
441 | - sp:object xsd:dateTime ; | 437 | + sp:object _:b34 ; |
442 | sp:path [ rdf:type sp:ModPath ; | 438 | sp:path [ rdf:type sp:ModPath ; |
443 | sp:modMax -2 ; | 439 | sp:modMax -2 ; |
444 | sp:modMin 0 ; | 440 | sp:modMin 0 ; |
445 | sp:subPath rdfs:subClassOf | 441 | sp:subPath rdfs:subClassOf |
446 | ] ; | 442 | ] ; |
447 | - sp:subject _:b38 | 443 | + sp:subject _:b36 |
448 | - ] [ sp:object _:b39 ; | ||
449 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
450 | - sp:subject _:b34 | ||
451 | - ] [ sp:object sxml:TextNode ; | ||
452 | - sp:predicate rdf:type ; | ||
453 | - sp:subject _:b39 | ||
454 | - ] [ sp:object _:b40 ; | ||
455 | - sp:predicate sxml:text ; | ||
456 | - sp:subject _:b39 | ||
457 | - ] [ sp:object _:b41 ; | ||
458 | - sp:predicate rdf:type ; | ||
459 | - sp:subject spin:_this | ||
460 | ] [ rdf:type sp:TriplePath ; | 444 | ] [ rdf:type sp:TriplePath ; |
461 | - sp:object _:b37 ; | 445 | + sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; |
462 | sp:path [ rdf:type sp:ModPath ; | 446 | sp:path [ rdf:type sp:ModPath ; |
463 | sp:modMax -2 ; | 447 | sp:modMax -2 ; |
464 | sp:modMin 0 ; | 448 | sp:modMin 0 ; |
465 | sp:subPath rdfs:subClassOf | 449 | sp:subPath rdfs:subClassOf |
466 | ] ; | 450 | ] ; |
467 | - sp:subject _:b41 | 451 | + sp:subject _:b35 |
468 | - ] [ rdf:type sp:Bind ; | 452 | + ] [ sp:object _:b37 ; |
469 | - sp:expression | 453 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
470 | - [ rdf:type xsd:dateTime ; | 454 | + sp:subject _:b31 |
471 | - sp:arg1 _:b40 | 455 | + ] [ sp:object sxml:TextNode ; |
472 | - ] ; | 456 | + sp:predicate rdf:type ; |
473 | - sp:variable _:b31 | 457 | + sp:subject _:b37 |
458 | + ] [ sp:object _:b38 ; | ||
459 | + sp:predicate sxml:text ; | ||
460 | + sp:subject _:b37 | ||
461 | + ] [ sp:object _:b35 ; | ||
462 | + sp:predicate rdf:type ; | ||
463 | + sp:subject _:b28 | ||
464 | + ] [ sp:object _:b38 ; | ||
465 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
466 | + sp:subject _:b28 | ||
474 | ]) | 467 | ]) |
475 | ] ; | 468 | ] ; |
476 | spin:rule | 469 | spin:rule |
477 | [ rdf:type sp:Construct ; | 470 | [ rdf:type sp:Construct ; |
478 | - rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; | 471 | + rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; |
479 | - sp:templates ([ sp:object _:b42 ; | 472 | + sp:templates ([ sp:object _:b39 ; |
473 | + sp:predicate rdf:type ; | ||
474 | + sp:subject _:b40 | ||
475 | + ] [ sp:object _:b41 ; | ||
476 | + sp:predicate ddr:uom ; | ||
477 | + sp:subject _:b40 | ||
478 | + ] [ sp:object _:b42 ; | ||
479 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
480 | + sp:subject _:b40 | ||
481 | + ] [ sp:object _:b40 ; | ||
480 | sp:predicate _:b43 ; | 482 | sp:predicate _:b43 ; |
481 | sp:subject spin:_this | 483 | sp:subject spin:_this |
482 | ] [ sp:object rdf:Statement ; | 484 | ] [ sp:object rdf:Statement ; |
... | @@ -501,11 +503,14 @@ ddr:Thing | ... | @@ -501,11 +503,14 @@ ddr:Thing |
501 | ] [ sp:object _:b46 ; | 503 | ] [ sp:object _:b46 ; |
502 | sp:predicate rdf:type ; | 504 | sp:predicate rdf:type ; |
503 | sp:subject _:b45 | 505 | sp:subject _:b45 |
506 | + ] [ sp:object _:b41 ; | ||
507 | + sp:predicate ddr:uom ; | ||
508 | + sp:subject _:b45 | ||
504 | ] [ rdf:type sp:NotExists ; | 509 | ] [ rdf:type sp:NotExists ; |
505 | sp:elements ([ sp:object | 510 | sp:elements ([ sp:object |
506 | - [ sp:varName "uom"^^xsd:string | 511 | + [ sp:varName "aNode"^^xsd:string |
507 | ] ; | 512 | ] ; |
508 | - sp:predicate ddr:uom ; | 513 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; |
509 | sp:subject _:b45 | 514 | sp:subject _:b45 |
510 | ]) | 515 | ]) |
511 | ] [ rdf:type sp:Bind ; | 516 | ] [ rdf:type sp:Bind ; |
... | @@ -523,17 +528,20 @@ ddr:Thing | ... | @@ -523,17 +528,20 @@ ddr:Thing |
523 | ] | 528 | ] |
524 | ] ; | 529 | ] ; |
525 | sp:variable _:b43 | 530 | sp:variable _:b43 |
526 | - ] [ sp:object owl:DatatypeProperty ; | 531 | + ] [ sp:object owl:ObjectProperty ; |
527 | sp:predicate rdf:type ; | 532 | sp:predicate rdf:type ; |
528 | sp:subject _:b43 | 533 | sp:subject _:b43 |
529 | ] [ sp:object _:b43 ; | 534 | ] [ sp:object _:b43 ; |
530 | sp:predicate owl:onProperty ; | 535 | sp:predicate owl:onProperty ; |
531 | sp:subject _:b48 | 536 | sp:subject _:b48 |
532 | - ] [ sp:object _:b49 ; | 537 | + ] [ sp:object _:b39 ; |
533 | sp:predicate owl:allValuesFrom ; | 538 | sp:predicate owl:allValuesFrom ; |
534 | sp:subject _:b48 | 539 | sp:subject _:b48 |
540 | + ] [ sp:object _:b49 ; | ||
541 | + sp:predicate rdf:type ; | ||
542 | + sp:subject spin:_this | ||
535 | ] [ rdf:type sp:TriplePath ; | 543 | ] [ rdf:type sp:TriplePath ; |
536 | - sp:object xsd:string ; | 544 | + sp:object _:b48 ; |
537 | sp:path [ rdf:type sp:ModPath ; | 545 | sp:path [ rdf:type sp:ModPath ; |
538 | sp:modMax -2 ; | 546 | sp:modMax -2 ; |
539 | sp:modMin 0 ; | 547 | sp:modMin 0 ; |
... | @@ -546,20 +554,15 @@ ddr:Thing | ... | @@ -546,20 +554,15 @@ ddr:Thing |
546 | ] [ sp:object sxml:TextNode ; | 554 | ] [ sp:object sxml:TextNode ; |
547 | sp:predicate rdf:type ; | 555 | sp:predicate rdf:type ; |
548 | sp:subject _:b50 | 556 | sp:subject _:b50 |
549 | - ] [ sp:object _:b42 ; | 557 | + ] [ sp:object _:b51 ; |
550 | sp:predicate sxml:text ; | 558 | sp:predicate sxml:text ; |
551 | sp:subject _:b50 | 559 | sp:subject _:b50 |
552 | - ] [ sp:object _:b51 ; | 560 | + ] [ rdf:type sp:Bind ; |
553 | - sp:predicate rdf:type ; | 561 | + sp:expression |
554 | - sp:subject spin:_this | 562 | + [ rdf:type xsd:double ; |
555 | - ] [ rdf:type sp:TriplePath ; | 563 | + sp:arg1 _:b51 |
556 | - sp:object _:b48 ; | ||
557 | - sp:path [ rdf:type sp:ModPath ; | ||
558 | - sp:modMax -2 ; | ||
559 | - sp:modMin 0 ; | ||
560 | - sp:subPath rdfs:subClassOf | ||
561 | ] ; | 564 | ] ; |
562 | - sp:subject _:b51 | 565 | + sp:variable _:b42 |
563 | ]) | 566 | ]) |
564 | ] . | 567 | ] . |
565 | 568 | ||
... | @@ -576,113 +579,113 @@ ddr:version | ... | @@ -576,113 +579,113 @@ ddr:version |
576 | 579 | ||
577 | <http://www.reportinghub.no/ep/transform/1.1/ddr> | 580 | <http://www.reportinghub.no/ep/transform/1.1/ddr> |
578 | rdf:type owl:Ontology ; | 581 | rdf:type owl:Ontology ; |
579 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ; | 582 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ; |
580 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 583 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
581 | 584 | ||
582 | owl:Thing | 585 | owl:Thing |
583 | spin:query | 586 | spin:query |
584 | [ rdf:type sp:Select ; | 587 | [ rdf:type sp:Select ; |
585 | - sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ; | 588 | + sp:where ([ sp:object |
586 | - sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; | 589 | + [ sp:varName "p"^^xsd:string |
587 | - sp:predicate rdf:type ; | ||
588 | - sp:subject _:b56 | ||
589 | - ] [ rdf:type sp:TriplePath ; | ||
590 | - sp:object _:b57 ; | ||
591 | - sp:path [ rdf:type sp:ModPath ; | ||
592 | - sp:modMax -2 ; | ||
593 | - sp:modMin 0 ; | ||
594 | - sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> | ||
595 | ] ; | 590 | ] ; |
596 | - sp:subject _:b56 | 591 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; |
597 | - ] [ sp:object _:b58 ; | 592 | + sp:subject _:b52 |
598 | - sp:predicate <http://topbraid.org/sxsd#name> ; | 593 | + ] [ rdf:type sp:NotExists ; |
599 | - sp:subject _:b56 | 594 | + sp:elements ([ sp:object |
595 | + [ sp:varName "b"^^xsd:string | ||
596 | + ] ; | ||
597 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | ||
598 | + sp:subject _:b52 | ||
599 | + ]) | ||
600 | + ]) | ||
601 | + ] ; | ||
602 | + spin:query | ||
603 | + [ rdf:type sp:Select ; | ||
604 | + sp:resultVariables (_:b53 _:b54 _:b55 _:b56) ; | ||
605 | + sp:where ([ sp:object _:b56 ; | ||
606 | + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | ||
607 | + sp:subject _:b55 | ||
600 | ] [ sp:object _:b55 ; | 608 | ] [ sp:object _:b55 ; |
609 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
610 | + sp:subject _:b54 | ||
611 | + ] [ rdf:type sp:Union ; | ||
612 | + sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; | ||
613 | + sp:predicate rdf:type ; | ||
614 | + sp:subject _:b54 | ||
615 | + ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; | ||
616 | + sp:predicate rdf:type ; | ||
617 | + sp:subject _:b54 | ||
618 | + ])) | ||
619 | + ] [ sp:object _:b54 ; | ||
620 | + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
621 | + sp:subject _:b53 | ||
622 | + ]) | ||
623 | + ] ; | ||
624 | + spin:query | ||
625 | + [ rdf:type sp:Select ; | ||
626 | + sp:resultVariables (_:b57 _:b58 _:b59 _:b60) ; | ||
627 | + sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; | ||
628 | + sp:predicate rdf:type ; | ||
629 | + sp:subject _:b61 | ||
630 | + ] [ rdf:type sp:TriplePath ; | ||
631 | + sp:object _:b62 ; | ||
632 | + sp:path [ rdf:type sp:ModPath ; | ||
633 | + sp:modMax -2 ; | ||
634 | + sp:modMin 0 ; | ||
635 | + sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> | ||
636 | + ] ; | ||
637 | + sp:subject _:b61 | ||
638 | + ] [ sp:object _:b63 ; | ||
639 | + sp:predicate <http://topbraid.org/sxsd#name> ; | ||
640 | + sp:subject _:b61 | ||
641 | + ] [ sp:object _:b60 ; | ||
601 | sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | 642 | sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; |
602 | - sp:subject _:b57 | 643 | + sp:subject _:b62 |
603 | - ] [ sp:object _:b59 ; | 644 | + ] [ sp:object _:b64 ; |
604 | sp:predicate <http://topbraid.org/sxsd#name> ; | 645 | sp:predicate <http://topbraid.org/sxsd#name> ; |
605 | - sp:subject _:b57 | 646 | + sp:subject _:b62 |
606 | ] [ rdf:type sp:Bind ; | 647 | ] [ rdf:type sp:Bind ; |
607 | sp:expression | 648 | sp:expression |
608 | [ rdf:type spif:titleCase ; | 649 | [ rdf:type spif:titleCase ; |
609 | - sp:arg1 _:b59 | 650 | + sp:arg1 _:b64 |
610 | ] ; | 651 | ] ; |
611 | - sp:variable _:b60 | 652 | + sp:variable _:b65 |
612 | ] [ rdf:type sp:Bind ; | 653 | ] [ rdf:type sp:Bind ; |
613 | sp:expression | 654 | sp:expression |
614 | [ rdf:type smf:buildURI ; | 655 | [ rdf:type smf:buildURI ; |
615 | sp:arg1 [ rdf:type fn:concat ; | 656 | sp:arg1 [ rdf:type fn:concat ; |
616 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; | 657 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; |
617 | - sp:arg2 _:b60 | 658 | + sp:arg2 _:b65 |
618 | ] | 659 | ] |
619 | ] ; | 660 | ] ; |
620 | - sp:variable _:b54 | 661 | + sp:variable _:b59 |
621 | ] [ rdf:type sp:Bind ; | 662 | ] [ rdf:type sp:Bind ; |
622 | sp:expression | 663 | sp:expression |
623 | [ rdf:type spif:titleCase ; | 664 | [ rdf:type spif:titleCase ; |
624 | - sp:arg1 _:b58 ; | 665 | + sp:arg1 _:b63 ; |
625 | sp:arg2 "[a-z]s" | 666 | sp:arg2 "[a-z]s" |
626 | ] ; | 667 | ] ; |
627 | - sp:variable _:b61 | 668 | + sp:variable _:b66 |
628 | ] [ rdf:type sp:Bind ; | 669 | ] [ rdf:type sp:Bind ; |
629 | sp:expression | 670 | sp:expression |
630 | [ rdf:type smf:buildURI ; | 671 | [ rdf:type smf:buildURI ; |
631 | sp:arg1 [ rdf:type fn:concat ; | 672 | sp:arg1 [ rdf:type fn:concat ; |
632 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; | 673 | sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; |
633 | - sp:arg2 _:b61 | 674 | + sp:arg2 _:b66 |
634 | ] | 675 | ] |
635 | ] ; | 676 | ] ; |
636 | - sp:variable _:b53 | 677 | + sp:variable _:b58 |
637 | ] [ rdf:type sp:Bind ; | 678 | ] [ rdf:type sp:Bind ; |
638 | sp:expression | 679 | sp:expression |
639 | [ rdf:type smf:buildURI ; | 680 | [ rdf:type smf:buildURI ; |
640 | sp:arg1 [ rdf:type fn:concat ; | 681 | sp:arg1 [ rdf:type fn:concat ; |
641 | sp:arg1 "http://www.reportinghub.no/map/ddr#" ; | 682 | sp:arg1 "http://www.reportinghub.no/map/ddr#" ; |
642 | - sp:arg2 _:b61 ; | 683 | + sp:arg2 _:b66 ; |
643 | sp:arg3 "-has" ; | 684 | sp:arg3 "-has" ; |
644 | - sp:arg4 _:b60 | 685 | + sp:arg4 _:b65 |
645 | ] | 686 | ] |
646 | ] ; | 687 | ] ; |
647 | - sp:variable _:b52 | 688 | + sp:variable _:b57 |
648 | - ]) | ||
649 | - ] ; | ||
650 | - spin:query | ||
651 | - [ rdf:type sp:Select ; | ||
652 | - sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ; | ||
653 | - sp:where ([ sp:object _:b65 ; | ||
654 | - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; | ||
655 | - sp:subject _:b64 | ||
656 | - ] [ sp:object _:b64 ; | ||
657 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
658 | - sp:subject _:b63 | ||
659 | - ] [ rdf:type sp:Union ; | ||
660 | - sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; | ||
661 | - sp:predicate rdf:type ; | ||
662 | - sp:subject _:b63 | ||
663 | - ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; | ||
664 | - sp:predicate rdf:type ; | ||
665 | - sp:subject _:b63 | ||
666 | - ])) | ||
667 | - ] [ sp:object _:b63 ; | ||
668 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
669 | - sp:subject _:b62 | ||
670 | - ]) | ||
671 | - ] ; | ||
672 | - spin:query | ||
673 | - [ rdf:type sp:Select ; | ||
674 | - sp:where ([ sp:object | ||
675 | - [ sp:varName "p"^^xsd:string | ||
676 | - ] ; | ||
677 | - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; | ||
678 | - sp:subject _:b66 | ||
679 | - ] [ rdf:type sp:NotExists ; | ||
680 | - sp:elements ([ sp:object | ||
681 | - [ sp:varName "b"^^xsd:string | ||
682 | - ] ; | ||
683 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; | ||
684 | - sp:subject _:b66 | ||
685 | - ]) | ||
686 | ]) | 689 | ]) |
687 | ] ; | 690 | ] ; |
688 | spin:update | 691 | spin:update |
... | @@ -722,184 +725,183 @@ owl:Thing | ... | @@ -722,184 +725,183 @@ owl:Thing |
722 | ]) | 725 | ]) |
723 | ] . | 726 | ] . |
724 | 727 | ||
725 | -_:b42 | 728 | +_:b69 |
726 | - sp:varName "text"^^xsd:string . | 729 | + sp:varName "newLabel"^^xsd:string . |
727 | 730 | ||
728 | -_:b43 | 731 | +_:b68 |
729 | - sp:varName "dtpnameU"^^xsd:string . | 732 | + sp:varName "p"^^xsd:string . |
730 | 733 | ||
731 | -_:b45 | 734 | +_:b67 |
732 | - sp:varName "child"^^xsd:string . | 735 | + sp:varName "oldLabel"^^xsd:string . |
733 | 736 | ||
734 | -_:b46 | 737 | +_:b52 |
735 | - sp:varName "childType"^^xsd:string . | 738 | + sp:varName "c"^^xsd:string . |
736 | 739 | ||
737 | -_:b47 | 740 | +_:b56 |
738 | - sp:varName "childLocalName"^^xsd:string . | 741 | + sp:varName "e"^^xsd:string . |
739 | 742 | ||
740 | -_:b48 | 743 | +_:b55 |
741 | - sp:varName "valuesRestriction"^^xsd:string . | 744 | + sp:varName "s"^^xsd:string . |
742 | 745 | ||
743 | -_:b49 | 746 | +_:b54 |
744 | - sp:varName "rangeType"^^xsd:string . | 747 | + sp:varName "p"^^xsd:string . |
745 | 748 | ||
746 | -_:b50 | 749 | +_:b53 |
747 | - sp:varName "textNode"^^xsd:string . | 750 | + sp:varName "pp"^^xsd:string . |
748 | 751 | ||
749 | -_:b51 | 752 | +_:b66 |
750 | - sp:varName "instType"^^xsd:string . | 753 | + sp:varName "tcname"^^xsd:string . |
751 | 754 | ||
752 | -_:b31 | 755 | +_:b65 |
753 | - sp:varName "dateTime"^^xsd:string . | 756 | + sp:varName "tcpname"^^xsd:string . |
754 | 757 | ||
755 | -_:b32 | 758 | +_:b64 |
756 | - sp:varName "dtpnameU"^^xsd:string . | 759 | + sp:varName "pname"^^xsd:string . |
757 | 760 | ||
758 | -_:b34 | 761 | +_:b63 |
759 | - sp:varName "child"^^xsd:string . | 762 | + sp:varName "name"^^xsd:string . |
760 | 763 | ||
761 | -_:b35 | 764 | +_:b62 |
762 | - sp:varName "childType"^^xsd:string . | 765 | + sp:varName "c"^^xsd:string . |
763 | 766 | ||
764 | -_:b36 | 767 | +_:b61 |
765 | - sp:varName "childLocalName"^^xsd:string . | 768 | + sp:varName "s"^^xsd:string . |
766 | 769 | ||
767 | -_:b37 | 770 | +_:b60 |
768 | - sp:varName "valuesRestriction"^^xsd:string . | 771 | + sp:varName "mre"^^xsd:string . |
769 | 772 | ||
770 | -_:b38 | 773 | +_:b59 |
771 | - sp:varName "rangeType"^^xsd:string . | 774 | + sp:varName "ddrPU"^^xsd:string . |
772 | 775 | ||
773 | -_:b39 | 776 | +_:b58 |
774 | - sp:varName "textNode"^^xsd:string . | 777 | + sp:varName "ddrCU"^^xsd:string . |
775 | 778 | ||
776 | -_:b40 | 779 | +_:b57 |
777 | - sp:varName "text"^^xsd:string . | 780 | + sp:varName "ddrCPU"^^xsd:string . |
778 | 781 | ||
779 | -_:b41 | 782 | +_:b10 |
780 | sp:varName "instType"^^xsd:string . | 783 | sp:varName "instType"^^xsd:string . |
781 | 784 | ||
782 | -_:b25 | 785 | +_:b9 sp:varName "textNode"^^xsd:string . |
783 | - sp:varName "child"^^xsd:string . | ||
784 | 786 | ||
785 | -_:b26 | 787 | +_:b8 sp:varName "rangeType"^^xsd:string . |
786 | - sp:varName "formalProperty"^^xsd:string . | ||
787 | 788 | ||
788 | -_:b28 | 789 | +_:b7 sp:varName "valuesRestriction"^^xsd:string . |
789 | - sp:varName "childType"^^xsd:string . | ||
790 | 790 | ||
791 | -_:b29 | 791 | +_:b6 sp:varName "childLocalName"^^xsd:string . |
792 | - sp:varName "valuesRestriction"^^xsd:string . | ||
793 | 792 | ||
794 | -_:b30 | 793 | +_:b5 sp:varName "childType"^^xsd:string . |
795 | - sp:varName "instType"^^xsd:string . | ||
796 | 794 | ||
797 | -_:b14 | 795 | +_:b4 sp:varName "child"^^xsd:string . |
798 | - sp:varName "enumeratedValue"^^xsd:string . | ||
799 | 796 | ||
800 | -_:b15 | 797 | +_:b2 sp:varName "dtpnameU"^^xsd:string . |
801 | - sp:varName "opnameU"^^xsd:string . | ||
802 | 798 | ||
803 | -_:b17 | 799 | +_:b1 sp:varName "text"^^xsd:string . |
804 | - sp:varName "child"^^xsd:string . | ||
805 | 800 | ||
806 | -_:b18 | 801 | +_:b21 |
807 | - sp:varName "childType"^^xsd:string . | 802 | + sp:varName "instType"^^xsd:string . |
808 | - | ||
809 | -_:b19 | ||
810 | - sp:varName "childLocalName"^^xsd:string . | ||
811 | 803 | ||
812 | _:b20 | 804 | _:b20 |
813 | - sp:varName "valuesRestriction"^^xsd:string . | 805 | + sp:varName "text"^^xsd:string . |
814 | 806 | ||
815 | -_:b21 | 807 | +_:b19 |
816 | - sp:varName "rangeU"^^xsd:string . | 808 | + sp:varName "textNode"^^xsd:string . |
817 | 809 | ||
818 | -_:b22 | 810 | +_:b18 |
819 | - sp:varName "instType"^^xsd:string . | 811 | + sp:varName "rangeType"^^xsd:string . |
820 | 812 | ||
821 | -_:b23 | 813 | +_:b17 |
822 | - sp:varName "textNode"^^xsd:string . | 814 | + sp:varName "valuesRestriction"^^xsd:string . |
823 | 815 | ||
824 | -_:b24 | 816 | +_:b16 |
825 | - sp:varName "text"^^xsd:string . | 817 | + sp:varName "childLocalName"^^xsd:string . |
826 | 818 | ||
827 | -_:b1 sp:varName "rangeU"^^xsd:string . | 819 | +_:b15 |
820 | + sp:varName "childType"^^xsd:string . | ||
828 | 821 | ||
829 | -_:b3 sp:varName "uom"^^xsd:string . | 822 | +_:b14 |
823 | + sp:varName "child"^^xsd:string . | ||
830 | 824 | ||
831 | -_:b4 sp:varName "value"^^xsd:string . | 825 | +_:b12 |
826 | + sp:varName "dtpnameU"^^xsd:string . | ||
832 | 827 | ||
833 | -_:b5 sp:varName "opnameU"^^xsd:string . | 828 | +_:b11 |
829 | + sp:varName "dateTime"^^xsd:string . | ||
834 | 830 | ||
835 | -_:b7 sp:varName "child"^^xsd:string . | 831 | +_:b27 |
832 | + sp:varName "instType"^^xsd:string . | ||
836 | 833 | ||
837 | -_:b8 sp:varName "childType"^^xsd:string . | 834 | +_:b26 |
835 | + sp:varName "valuesRestriction"^^xsd:string . | ||
838 | 836 | ||
839 | -_:b9 sp:varName "childLocalName"^^xsd:string . | 837 | +_:b25 |
838 | + sp:varName "childType"^^xsd:string . | ||
840 | 839 | ||
841 | -_:b10 | 840 | +_:b23 |
842 | - sp:varName "allValuesRestriction"^^xsd:string . | 841 | + sp:varName "formalProperty"^^xsd:string . |
843 | 842 | ||
844 | -_:b11 | 843 | +_:b22 |
845 | - sp:varName "instType"^^xsd:string . | 844 | + sp:varName "child"^^xsd:string . |
846 | 845 | ||
847 | -_:b12 | 846 | +_:b38 |
847 | + sp:varName "text"^^xsd:string . | ||
848 | + | ||
849 | +_:b37 | ||
848 | sp:varName "textNode"^^xsd:string . | 850 | sp:varName "textNode"^^xsd:string . |
849 | 851 | ||
850 | -_:b13 | 852 | +_:b36 |
851 | - sp:varName "text"^^xsd:string . | 853 | + sp:varName "instType"^^xsd:string . |
852 | 854 | ||
853 | -_:b66 | 855 | +_:b35 |
854 | - sp:varName "c"^^xsd:string . | 856 | + sp:varName "rangeU"^^xsd:string . |
855 | 857 | ||
856 | -_:b62 | 858 | +_:b34 |
857 | - sp:varName "pp"^^xsd:string . | 859 | + sp:varName "valuesRestriction"^^xsd:string . |
858 | 860 | ||
859 | -_:b63 | 861 | +_:b33 |
860 | - sp:varName "p"^^xsd:string . | 862 | + sp:varName "childLocalName"^^xsd:string . |
861 | 863 | ||
862 | -_:b64 | 864 | +_:b32 |
863 | - sp:varName "s"^^xsd:string . | 865 | + sp:varName "childType"^^xsd:string . |
864 | 866 | ||
865 | -_:b65 | 867 | +_:b31 |
866 | - sp:varName "e"^^xsd:string . | 868 | + sp:varName "child"^^xsd:string . |
867 | 869 | ||
868 | -_:b52 | 870 | +_:b29 |
869 | - sp:varName "ddrCPU"^^xsd:string . | 871 | + sp:varName "opnameU"^^xsd:string . |
870 | 872 | ||
871 | -_:b53 | 873 | +_:b28 |
872 | - sp:varName "ddrCU"^^xsd:string . | 874 | + sp:varName "enumeratedValue"^^xsd:string . |
873 | 875 | ||
874 | -_:b54 | 876 | +_:b51 |
875 | - sp:varName "ddrPU"^^xsd:string . | 877 | + sp:varName "text"^^xsd:string . |
876 | 878 | ||
877 | -_:b55 | 879 | +_:b50 |
878 | - sp:varName "mre"^^xsd:string . | 880 | + sp:varName "textNode"^^xsd:string . |
879 | 881 | ||
880 | -_:b56 | 882 | +_:b49 |
881 | - sp:varName "s"^^xsd:string . | 883 | + sp:varName "instType"^^xsd:string . |
882 | 884 | ||
883 | -_:b57 | 885 | +_:b48 |
884 | - sp:varName "c"^^xsd:string . | 886 | + sp:varName "allValuesRestriction"^^xsd:string . |
885 | 887 | ||
886 | -_:b58 | 888 | +_:b47 |
887 | - sp:varName "name"^^xsd:string . | 889 | + sp:varName "childLocalName"^^xsd:string . |
888 | 890 | ||
889 | -_:b59 | 891 | +_:b46 |
890 | - sp:varName "pname"^^xsd:string . | 892 | + sp:varName "childType"^^xsd:string . |
891 | 893 | ||
892 | -_:b60 | 894 | +_:b45 |
893 | - sp:varName "tcpname"^^xsd:string . | 895 | + sp:varName "child"^^xsd:string . |
894 | 896 | ||
895 | -_:b61 | 897 | +_:b43 |
896 | - sp:varName "tcname"^^xsd:string . | 898 | + sp:varName "opnameU"^^xsd:string . |
897 | 899 | ||
898 | -_:b67 | 900 | +_:b42 |
899 | - sp:varName "oldLabel"^^xsd:string . | 901 | + sp:varName "value"^^xsd:string . |
900 | 902 | ||
901 | -_:b68 | 903 | +_:b41 |
902 | - sp:varName "p"^^xsd:string . | 904 | + sp:varName "uom"^^xsd:string . |
903 | 905 | ||
904 | -_:b69 | 906 | +_:b39 |
905 | - sp:varName "newLabel"^^xsd:string . | 907 | + sp:varName "rangeU"^^xsd:string . | ... | ... |
1 | +# Saved by TopBraid on Wed Aug 10 14:05:00 BST 2011 | ||
2 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo | ||
3 | +# imports: http://www.reportinghub.no/ep/spin/1.1/lib | ||
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
5 | +# imports: http://spinrdf.org/spin | ||
6 | + | ||
7 | +@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . | ||
8 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
13 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
14 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
15 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
16 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
18 | + | ||
19 | +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> | ||
20 | + spin:rule | ||
21 | + [ rdf:type sp:Construct ; | ||
22 | + rdfs:comment "STEP 161 Set name for Rig"^^xsd:string ; | ||
23 | + sp:templates ([ sp:object _:b1 ; | ||
24 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdName> ; | ||
25 | + sp:subject _:b2 | ||
26 | + ]) ; | ||
27 | + sp:where ([ sp:object _:b3 ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
29 | + sp:subject spin:_this | ||
30 | + ] [ sp:object _:b4 ; | ||
31 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
32 | + sp:subject spin:_this | ||
33 | + ] [ sp:object _:b5 ; | ||
34 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ; | ||
35 | + sp:subject spin:_this | ||
36 | + ] [ sp:object _:b6 ; | ||
37 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ; | ||
38 | + sp:subject _:b5 | ||
39 | + ] [ sp:object _:b1 ; | ||
40 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
41 | + sp:subject _:b6 | ||
42 | + ] [ sp:object "NPD Name" ; | ||
43 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ; | ||
44 | + sp:subject _:b6 | ||
45 | + ] [ sp:object _:b7 ; | ||
46 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ; | ||
47 | + sp:subject _:b8 | ||
48 | + ] [ sp:object _:b2 ; | ||
49 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
50 | + sp:subject _:b7 | ||
51 | + ] [ rdf:type sp:Bind ; | ||
52 | + sp:expression | ||
53 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
54 | + sp:arg1 _:b3 | ||
55 | + ] ; | ||
56 | + sp:variable _:b9 | ||
57 | + ] [ rdf:type sp:Bind ; | ||
58 | + sp:expression | ||
59 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
60 | + sp:arg1 _:b9 ; | ||
61 | + sp:arg2 _:b4 | ||
62 | + ] ; | ||
63 | + sp:variable _:b8 | ||
64 | + ]) | ||
65 | + ] ; | ||
66 | + spin:rule | ||
67 | + [ rdf:type sp:Construct ; | ||
68 | + rdfs:comment "STEP 160 Set rig for drilling activity"^^xsd:string ; | ||
69 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ; | ||
70 | + sp:predicate rdf:type ; | ||
71 | + sp:subject _:b10 | ||
72 | + ] [ sp:object _:b10 ; | ||
73 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ; | ||
74 | + sp:subject _:b11 | ||
75 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ; | ||
76 | + sp:predicate rdf:type ; | ||
77 | + sp:subject _:b12 | ||
78 | + ] [ sp:object _:b13 ; | ||
79 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdCode> ; | ||
80 | + sp:subject _:b12 | ||
81 | + ] [ sp:object _:b12 ; | ||
82 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
83 | + sp:subject _:b10 | ||
84 | + ]) ; | ||
85 | + sp:where ([ sp:object _:b14 ; | ||
86 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; | ||
87 | + sp:subject spin:_this | ||
88 | + ] [ sp:object _:b15 ; | ||
89 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
90 | + sp:subject spin:_this | ||
91 | + ] [ sp:object _:b16 ; | ||
92 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; | ||
93 | + sp:subject spin:_this | ||
94 | + ] [ sp:object _:b17 ; | ||
95 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ; | ||
96 | + sp:subject spin:_this | ||
97 | + ] [ sp:object _:b18 ; | ||
98 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ; | ||
99 | + sp:subject _:b17 | ||
100 | + ] [ sp:object "NPD Code" ; | ||
101 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ; | ||
102 | + sp:subject _:b18 | ||
103 | + ] [ sp:object _:b13 ; | ||
104 | + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; | ||
105 | + sp:subject _:b18 | ||
106 | + ] [ rdf:type sp:Bind ; | ||
107 | + sp:expression | ||
108 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
109 | + sp:arg1 _:b14 | ||
110 | + ] ; | ||
111 | + sp:variable _:b19 | ||
112 | + ] [ rdf:type sp:Bind ; | ||
113 | + sp:expression | ||
114 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
115 | + sp:arg1 _:b13 | ||
116 | + ] ; | ||
117 | + sp:variable _:b20 | ||
118 | + ] [ rdf:type sp:Bind ; | ||
119 | + sp:expression | ||
120 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
121 | + sp:arg1 _:b19 ; | ||
122 | + sp:arg2 _:b15 | ||
123 | + ] ; | ||
124 | + sp:variable _:b11 | ||
125 | + ] [ rdf:type sp:Bind ; | ||
126 | + sp:expression | ||
127 | + [ rdf:type ep-spin-lib:buildRigURI ; | ||
128 | + sp:arg1 _:b20 | ||
129 | + ] ; | ||
130 | + sp:variable _:b12 | ||
131 | + ] [ rdf:type sp:Bind ; | ||
132 | + sp:expression | ||
133 | + [ rdf:type ep-spin-lib:buildTemporalPartOfARigURI ; | ||
134 | + sp:arg1 _:b20 ; | ||
135 | + sp:arg2 _:b15 ; | ||
136 | + sp:arg3 _:b16 | ||
137 | + ] ; | ||
138 | + sp:variable _:b10 | ||
139 | + ]) | ||
140 | + ] . | ||
141 | + | ||
142 | +<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> | ||
143 | + rdf:type owl:Ontology ; | ||
144 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | ||
145 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ||
146 | + | ||
147 | +[] rdf:type smf:regex . | ||
148 | + | ||
149 | +[] rdf:type smf:trim . | ||
150 | + | ||
151 | +[] rdf:type fn:starts-with . | ||
152 | + | ||
153 | +[] rdf:type sp:Modify . | ||
154 | + | ||
155 | +_:b14 | ||
156 | + sp:varName "nameWellBore"^^xsd:string . | ||
157 | + | ||
158 | +_:b15 | ||
159 | + sp:varName "dTimStart"^^xsd:string . | ||
160 | + | ||
161 | +_:b16 | ||
162 | + sp:varName "dTimEnd"^^xsd:string . | ||
163 | + | ||
164 | +_:b17 | ||
165 | + sp:varName "wellboreInfo"^^xsd:string . | ||
166 | + | ||
167 | +_:b18 | ||
168 | + sp:varName "rigAlias"^^xsd:string . | ||
169 | + | ||
170 | +_:b13 | ||
171 | + sp:varName "nameRig"^^xsd:string . | ||
172 | + | ||
173 | +_:b19 | ||
174 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
175 | + | ||
176 | +_:b20 | ||
177 | + sp:varName "normalizedRigName"^^xsd:string . | ||
178 | + | ||
179 | +_:b11 | ||
180 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
181 | + | ||
182 | +_:b12 | ||
183 | + sp:varName "rig"^^xsd:string . | ||
184 | + | ||
185 | +_:b10 | ||
186 | + sp:varName "temporalPartOfARig"^^xsd:string . | ||
187 | + | ||
188 | +_:b3 sp:varName "nameWellBore"^^xsd:string . | ||
189 | + | ||
190 | +_:b4 sp:varName "dTimStart"^^xsd:string . | ||
191 | + | ||
192 | +_:b5 sp:varName "wellboreInfo"^^xsd:string . | ||
193 | + | ||
194 | +_:b6 sp:varName "rigAlias"^^xsd:string . | ||
195 | + | ||
196 | +_:b1 sp:varName "name"^^xsd:string . | ||
197 | + | ||
198 | +_:b8 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
199 | + | ||
200 | +_:b7 sp:varName "temporalPartOfARig"^^xsd:string . | ||
201 | + | ||
202 | +_:b2 sp:varName "rig"^^xsd:string . | ||
203 | + | ||
204 | +_:b9 sp:varName "normalizedWellBoreName"^^xsd:string . | ||
205 | + | ||
206 | +([] [] [ rdf:type sp:Filter | ||
207 | + ] [ rdf:type sp:Bind | ||
208 | + ]) . | ||
209 | + | ||
210 | +([]) . | ||
211 | + | ||
212 | +([]) . |
... | @@ -3,13 +3,13 @@ | ... | @@ -3,13 +3,13 @@ |
3 | <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" /> | 3 | <link rel="stylesheet" type="text/css" href="lib/rh/ddr.css" /> |
4 | </head> | 4 | </head> |
5 | <body> | 5 | <body> |
6 | - <h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }</h1> | 6 | + <h1>Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }</h1> |
7 | <div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div> | 7 | <div>End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }</div> |
8 | <hr /> | 8 | <hr /> |
9 | <table><tr> | 9 | <table><tr> |
10 | <td class="ddrSummaryLeft"> | 10 | <td class="ddrSummaryLeft"> |
11 | <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> | 11 | <rhswp:NameValuePair arg:name="Report Number:" arg:value="{ spl:object(?this, ?) }" /> |
12 | - <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label ?wellBoreName } }" /> | 12 | + <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{= SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode ?wellBoreName } }" /> |
13 | <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> | 13 | <rhswp:NameValuePair arg:name="Status:" arg:value="{= ui:label(spl:object(?this, rdf:type)) }" /> |
14 | <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> | 14 | <rhswp:NameValuePair arg:name="Operator:" arg:value="{ spl:object(?this, ???) }" /> |
15 | <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> | 15 | <rhswp:NameValuePair arg:name="Rig name:" arg:value="{ spl:object(?this, ???) }" /> | ... | ... |
-
Please register or login to post a comment