David Leal

Added mapping of Rig and its identifiers

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 -# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility 1 +# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011
2 -# imports: http://purl.org/dc/elements/1.1/ 2 +# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
3 -# imports: http://purl.org/dc/terms/ 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
4 -# imports: http://spinrdf.org/spin 4 +# imports: http://purl.org/dc/elements/1.1/
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 5 +# imports: http://spinrdf.org/spin
6 - 6 +# imports: http://purl.org/dc/terms/
7 -@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . 7 +
8 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 8 +@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
9 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
10 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11 -@prefix sp: <http://spinrdf.org/sp#> . 11 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12 -@prefix spin: <http://spinrdf.org/spin#> . 12 +@prefix sp: <http://spinrdf.org/sp#> .
13 -@prefix spl: <http://spinrdf.org/spl#> . 13 +@prefix spin: <http://spinrdf.org/spin#> .
14 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 14 +@prefix spl: <http://spinrdf.org/spl#> .
15 - 15 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16 -<http://www.reportinghub.no/ep/schema/1.0/facility> 16 +
17 - rdf:type owl:Ontology ; 17 +<http://www.reportinghub.no/ep/schema/1.0/facility>
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/> ; 18 + rdf:type owl:Ontology ;
19 - owl:versionInfo "0.1.0"^^xsd:string . 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> ;
20 - 20 + owl:versionInfo "0.1.0"^^xsd:string .
21 -ep-fac:Facility 21 +
22 - rdf:type owl:Class ; 22 +ep-fac:AllOrPartOfTheLifeOfARig
23 - rdfs:label "facility"^^xsd:string ; 23 + rdf:type owl:Class ;
24 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 24 + rdfs:label "all or part of the life of a rig"^^xsd:string ;
25 - 25 + rdfs:subClassOf ep-fac:Facility .
26 -ep-fac:FixedFacility 26 +
27 - rdf:type owl:DeprecatedClass ; 27 +ep-fac:Facility
28 - rdfs:subClassOf ep-fac:Facility . 28 + rdf:type owl:Class ;
29 - 29 + rdfs:label "facility"^^xsd:string ;
30 -ep-fac:MoveableFacility 30 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
31 - rdf:type owl:Class ; 31 +
32 - rdfs:subClassOf ep-fac:Facility . 32 +ep-fac:FixedFacility
33 - 33 + rdf:type owl:DeprecatedClass ;
34 -ep-fac:Rig 34 + rdfs:subClassOf ep-fac:Facility .
35 - rdf:type owl:Class ; 35 +
36 - rdfs:subClassOf ep-fac:Facility . 36 +ep-fac:MoveableFacility
37 - 37 + rdf:type owl:Class ;
38 -ep-fac:SubSurfaceFixedFacility 38 + rdfs:subClassOf ep-fac:Facility .
39 - rdf:type owl:Class ; 39 +
40 - rdfs:subClassOf ep-fac:FixedFacility . 40 +ep-fac:Rig
41 - 41 + rdf:type owl:Class ;
42 -ep-fac:SurfaceFixedFacility 42 + rdfs:label "rig"^^xsd:string ;
43 - rdf:type owl:Class ; 43 + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
44 - rdfs:subClassOf ep-fac:FixedFacility . 44 +
45 +ep-fac:SubSurfaceFixedFacility
46 + rdf:type owl:Class ;
47 + rdfs:subClassOf ep-fac:FixedFacility .
48 +
49 +ep-fac:SurfaceFixedFacility
50 + rdf:type owl:Class ;
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 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr 1 +# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
2 -# imports: http://spinrdf.org/spin 2 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
3 -# imports: http://topbraid.org/sxml 3 +# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 5 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr 6 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment 7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/report 8 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/well 9 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
10 - 10 +# imports: http://spinrdf.org/spin
11 -@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> . 11 +# imports: http://topbraid.org/sxml
12 -@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . 12 +
13 -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 13 +@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
14 -@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> . 14 +@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
15 -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . 15 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
16 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 16 +@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
17 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 17 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
18 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 18 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
19 -@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . 19 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
20 -@prefix sp: <http://spinrdf.org/sp#> . 20 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
21 -@prefix spif: <http://spinrdf.org/spif#> . 21 +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
22 -@prefix spin: <http://spinrdf.org/spin#> . 22 +@prefix sp: <http://spinrdf.org/sp#> .
23 -@prefix sxml: <http://topbraid.org/sxml#> . 23 +@prefix spif: <http://spinrdf.org/spif#> .
24 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 24 +@prefix spin: <http://spinrdf.org/spin#> .
25 - 25 +@prefix sxml: <http://topbraid.org/sxml#> .
26 -ddr:Cs_activity 26 +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
27 - spin:rule 27 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
28 - [ rdf:type sp:Construct ; 28 +
29 - rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ; 29 +ddr:Cs_activity
30 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ; 30 + spin:rule
31 - sp:predicate rdf:type ; 31 + [ rdf:type sp:Construct ;
32 - sp:subject spin:_this 32 + rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
33 - ]) ; 33 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
34 - sp:where () 34 + sp:predicate rdf:type ;
35 - ] ; 35 + sp:subject spin:_this
36 - sxml:element "witsml:activity"^^xsd:string . 36 + ]) ;
37 - 37 + sp:where ()
38 -ddr:Cs_alias 38 + ] ;
39 - sxml:element "witsml:rigAlias"^^xsd:string , "witsml:alias" . 39 + sxml:element "witsml:activity"^^xsd:string .
40 - 40 +
41 -ddr:Cs_bitRecord 41 +ddr:Cs_alias
42 - sxml:element "witsml:bitRecord" . 42 + sxml:element "witsml:alias" , "witsml:rigAlias"^^xsd:string .
43 - 43 +
44 -ddr:Cs_documentAudit 44 +ddr:Cs_bitRecord
45 - sxml:element "witsml:documentAudit" . 45 + sxml:element "witsml:bitRecord" .
46 - 46 +
47 -ddr:Cs_documentEvent 47 +ddr:Cs_documentAudit
48 - sxml:element "witsml:documentEvent" . 48 + sxml:element "witsml:documentAudit" .
49 - 49 +
50 -ddr:Cs_documentFileCreation 50 +ddr:Cs_documentEvent
51 - sxml:element "witsml:documentFileCreation" . 51 + sxml:element "witsml:documentEvent" .
52 - 52 +
53 -ddr:Cs_documentInfo 53 +ddr:Cs_documentFileCreation
54 - sxml:element "witsml:documentInfo" . 54 + sxml:element "witsml:documentFileCreation" .
55 - 55 +
56 -ddr:Cs_documentSecurityInfo 56 +ddr:Cs_documentInfo
57 - sxml:element "witsml:documentSecurityInfo" . 57 + sxml:element "witsml:documentInfo" .
58 - 58 +
59 -ddr:Cs_drillReportControlIncidentInfo 59 +ddr:Cs_documentSecurityInfo
60 - sxml:element "witsml:drillReportControlIncidentInfo" . 60 + sxml:element "witsml:documentSecurityInfo" .
61 - 61 +
62 -ddr:Cs_drillReportCoreInfo 62 +ddr:Cs_drillReportControlIncidentInfo
63 - sxml:element "witsml:drillReportCoreInfo" . 63 + sxml:element "witsml:drillReportControlIncidentInfo" .
64 - 64 +
65 -ddr:Cs_drillReportEquipFailureInfo 65 +ddr:Cs_drillReportCoreInfo
66 - sxml:element "witsml:drillReportEquipFailureInfo" . 66 + sxml:element "witsml:drillReportCoreInfo" .
67 - 67 +
68 -ddr:Cs_drillReportFormTestInfo 68 +ddr:Cs_drillReportEquipFailureInfo
69 - sxml:element "witsml:drillReportFormTestInfo" . 69 + sxml:element "witsml:drillReportEquipFailureInfo" .
70 - 70 +
71 -ddr:Cs_drillReportGasReadingInfo 71 +ddr:Cs_drillReportFormTestInfo
72 - sxml:element "witsml:drillReportGasReadingInfo" . 72 + sxml:element "witsml:drillReportFormTestInfo" .
73 - 73 +
74 -ddr:Cs_drillReportLithShowInfo 74 +ddr:Cs_drillReportGasReadingInfo
75 - sxml:element "witsml:drillReportLithShowInfo" . 75 + sxml:element "witsml:drillReportGasReadingInfo" .
76 - 76 +
77 -ddr:Cs_drillReportLogInfo 77 +ddr:Cs_drillReportLithShowInfo
78 - sxml:element "witsml:drillReportLogInfo" . 78 + sxml:element "witsml:drillReportLithShowInfo" .
79 - 79 +
80 -ddr:Cs_drillReportPerfInfo 80 +ddr:Cs_drillReportLogInfo
81 - sxml:element "witsml:drillReportPerfInfo" . 81 + sxml:element "witsml:drillReportLogInfo" .
82 - 82 +
83 -ddr:Cs_drillReportPorePressure 83 +ddr:Cs_drillReportPerfInfo
84 - sxml:element "witsml:drillReportPorePressure" . 84 + sxml:element "witsml:drillReportPerfInfo" .
85 - 85 +
86 -ddr:Cs_drillReportStatusInfo 86 +ddr:Cs_drillReportPorePressure
87 - sxml:element "witsml:statusInfo"^^xsd:string , "witsml:drillReportStatusInfo" . 87 + sxml:element "witsml:drillReportPorePressure" .
88 - 88 +
89 -ddr:Cs_drillReportStratInfo 89 +ddr:Cs_drillReportStatusInfo
90 - sxml:element "witsml:drillReportStratInfo" . 90 + sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
91 - 91 +
92 -ddr:Cs_drillReportSurveyStation 92 +ddr:Cs_drillReportStratInfo
93 - sxml:element "witsml:drillReportSurveyStation" . 93 + sxml:element "witsml:drillReportStratInfo" .
94 - 94 +
95 -ddr:Cs_drillReportWellTestInfo 95 +ddr:Cs_drillReportSurveyStation
96 - sxml:element "witsml:drillReportWellTestInfo" . 96 + sxml:element "witsml:drillReportSurveyStation" .
97 - 97 +
98 -ddr:Cs_drillReportWellboreInfo 98 +ddr:Cs_drillReportWellTestInfo
99 - sxml:element "witsml:wellboreInfo"^^xsd:string . 99 + sxml:element "witsml:drillReportWellTestInfo" .
100 - 100 +
101 -ddr:Cs_fluid 101 +ddr:Cs_drillReportWellboreInfo
102 - sxml:element "witsml:fluid" . 102 + sxml:element "witsml:wellboreInfo"^^xsd:string .
103 - 103 +
104 -ddr:Cs_geodeticModel 104 +ddr:Cs_fluid
105 - sxml:element "witsml:geodeticModel" . 105 + sxml:element "witsml:fluid" .
106 - 106 +
107 -ddr:Cs_localCRS 107 +ddr:Cs_geodeticModel
108 - sxml:element "witsml:localCRS" . 108 + sxml:element "witsml:geodeticModel" .
109 - 109 +
110 -ddr:Cs_location 110 +ddr:Cs_localCRS
111 - sxml:element "witsml:location" . 111 + sxml:element "witsml:localCRS" .
112 - 112 +
113 -ddr:Cs_projectionx 113 +ddr:Cs_location
114 - sxml:element "witsml:projectionx" . 114 + sxml:element "witsml:location" .
115 - 115 +
116 -ddr:Cs_refWellWellbore 116 +ddr:Cs_projectionx
117 - sxml:element "witsml:refWellWellbore" . 117 + sxml:element "witsml:projectionx" .
118 - 118 +
119 -ddr:Cs_refWellWellboreRig 119 +ddr:Cs_refWellWellbore
120 - sxml:element "witsml:refWellWellboreRig" . 120 + sxml:element "witsml:refWellWellbore" .
121 - 121 +
122 -ddr:Cs_wellAlias 122 +ddr:Cs_refWellWellboreRig
123 - sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string . 123 + sxml:element "witsml:refWellWellboreRig" .
124 - 124 +
125 -ddr:Cs_wellCRS 125 +ddr:Cs_wellAlias
126 - sxml:element "witsml:wellCRS" . 126 + sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias" .
127 - 127 +
128 -ddr:Cs_wellDatum 128 +ddr:Cs_wellCRS
129 - sxml:element "witsml:wellDatum" . 129 + sxml:element "witsml:wellCRS" .
130 - 130 +
131 -ddr:DrillReports 131 +ddr:Cs_wellDatum
132 - sxml:element "witsml:drillReports"^^xsd:string . 132 + sxml:element "witsml:wellDatum" .
133 - 133 +
134 -ddr:Obj_drillReport 134 +ddr:DrillReports
135 - sxml:element "witsml:drillReport"^^xsd:string . 135 + sxml:element "witsml:drillReports"^^xsd:string .
136 - 136 +
137 -ddr:Thing 137 +ddr:Obj_drillReport
138 - spin:rule 138 + sxml:element "witsml:drillReport"^^xsd:string .
139 - [ rdf:type sp:Construct ; 139 +
140 - rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; 140 +ddr:Thing
141 - sp:templates ([ sp:object _:b1 ; 141 + spin:rule
142 - sp:predicate rdf:type ; 142 + [ rdf:type sp:Construct ;
143 - sp:subject _:b2 143 + rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
144 - ] [ sp:object _:b3 ; 144 + sp:templates ([ sp:object _:b1 ;
145 - sp:predicate ddr:uom ; 145 + sp:predicate _:b2 ;
146 - sp:subject _:b2 146 + sp:subject spin:_this
147 - ] [ sp:object _:b4 ; 147 + ] [ sp:object rdf:Statement ;
148 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 148 + sp:predicate rdf:type ;
149 - sp:subject _:b2 149 + sp:subject _:b3
150 - ] [ sp:object _:b2 ; 150 + ] [ sp:object spin:_this ;
151 - sp:predicate _:b5 ; 151 + sp:predicate rdf:subject ;
152 - sp:subject spin:_this 152 + sp:subject _:b3
153 - ] [ sp:object rdf:Statement ; 153 + ] [ sp:object _:b2 ;
154 - sp:predicate rdf:type ; 154 + sp:predicate rdf:predicate ;
155 - sp:subject _:b6 155 + sp:subject _:b3
156 - ] [ sp:object spin:_this ; 156 + ] [ sp:object _:b1 ;
157 - sp:predicate rdf:subject ; 157 + sp:predicate rdf:object ;
158 - sp:subject _:b6 158 + sp:subject _:b3
159 - ] [ sp:object _:b5 ; 159 + ] [ sp:object _:b3 ;
160 - sp:predicate rdf:predicate ; 160 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
161 - sp:subject _:b6 161 + sp:subject _:b4
162 - ] [ sp:object _:b4 ; 162 + ]) ;
163 - sp:predicate rdf:object ; 163 + sp:where ([ sp:object _:b4 ;
164 - sp:subject _:b6 164 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
165 - ] [ sp:object _:b6 ; 165 + sp:subject spin:_this
166 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 166 + ] [ sp:object _:b5 ;
167 - sp:subject _:b7 167 + sp:predicate rdf:type ;
168 - ]) ; 168 + sp:subject _:b4
169 - sp:where ([ sp:object _:b7 ; 169 + ] [ rdf:type sp:NotExists ;
170 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 170 + sp:elements ([ sp:object
171 - sp:subject spin:_this 171 + [ sp:varName "uom"^^xsd:string
172 - ] [ sp:object _:b8 ; 172 + ] ;
173 - sp:predicate rdf:type ; 173 + sp:predicate ddr:uom ;
174 - sp:subject _:b7 174 + sp:subject _:b4
175 - ] [ sp:object _:b3 ; 175 + ])
176 - sp:predicate ddr:uom ; 176 + ] [ rdf:type sp:Bind ;
177 - sp:subject _:b7 177 + sp:expression
178 - ] [ rdf:type sp:NotExists ; 178 + [ rdf:type afn:localname ;
179 - sp:elements ([ sp:object 179 + sp:arg1 _:b5
180 - [ sp:varName "aNode"^^xsd:string 180 + ] ;
181 - ] ; 181 + sp:variable _:b6
182 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 182 + ] [ rdf:type sp:Bind ;
183 - sp:subject _:b7 183 + sp:expression
184 - ]) 184 + [ rdf:type smf:buildURI ;
185 - ] [ rdf:type sp:Bind ; 185 + sp:arg1 [ rdf:type fn:concat ;
186 - sp:expression 186 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
187 - [ rdf:type afn:localname ; 187 + sp:arg2 _:b6
188 - sp:arg1 _:b8 188 + ]
189 - ] ; 189 + ] ;
190 - sp:variable _:b9 190 + sp:variable _:b2
191 - ] [ rdf:type sp:Bind ; 191 + ] [ sp:object owl:DatatypeProperty ;
192 - sp:expression 192 + sp:predicate rdf:type ;
193 - [ rdf:type smf:buildURI ; 193 + sp:subject _:b2
194 - sp:arg1 [ rdf:type fn:concat ; 194 + ] [ sp:object _:b2 ;
195 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 195 + sp:predicate owl:onProperty ;
196 - sp:arg2 _:b9 196 + sp:subject _:b7
197 - ] 197 + ] [ sp:object _:b8 ;
198 - ] ; 198 + sp:predicate owl:allValuesFrom ;
199 - sp:variable _:b5 199 + sp:subject _:b7
200 - ] [ sp:object owl:ObjectProperty ; 200 + ] [ rdf:type sp:TriplePath ;
201 - sp:predicate rdf:type ; 201 + sp:object xsd:string ;
202 - sp:subject _:b5 202 + sp:path [ rdf:type sp:ModPath ;
203 - ] [ sp:object _:b5 ; 203 + sp:modMax -2 ;
204 - sp:predicate owl:onProperty ; 204 + sp:modMin 0 ;
205 - sp:subject _:b10 205 + sp:subPath rdfs:subClassOf
206 - ] [ sp:object _:b1 ; 206 + ] ;
207 - sp:predicate owl:allValuesFrom ; 207 + sp:subject _:b8
208 - sp:subject _:b10 208 + ] [ sp:object _:b9 ;
209 - ] [ sp:object _:b11 ; 209 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
210 - sp:predicate rdf:type ; 210 + sp:subject _:b4
211 - sp:subject spin:_this 211 + ] [ sp:object sxml:TextNode ;
212 - ] [ rdf:type sp:TriplePath ; 212 + sp:predicate rdf:type ;
213 - sp:object _:b10 ; 213 + sp:subject _:b9
214 - sp:path [ rdf:type sp:ModPath ; 214 + ] [ sp:object _:b1 ;
215 - sp:modMax -2 ; 215 + sp:predicate sxml:text ;
216 - sp:modMin 0 ; 216 + sp:subject _:b9
217 - sp:subPath rdfs:subClassOf 217 + ] [ sp:object _:b10 ;
218 - ] ; 218 + sp:predicate rdf:type ;
219 - sp:subject _:b11 219 + sp:subject spin:_this
220 - ] [ sp:object _:b12 ; 220 + ] [ rdf:type sp:TriplePath ;
221 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 221 + sp:object _:b7 ;
222 - sp:subject _:b7 222 + sp:path [ rdf:type sp:ModPath ;
223 - ] [ sp:object sxml:TextNode ; 223 + sp:modMax -2 ;
224 - sp:predicate rdf:type ; 224 + sp:modMin 0 ;
225 - sp:subject _:b12 225 + sp:subPath rdfs:subClassOf
226 - ] [ sp:object _:b13 ; 226 + ] ;
227 - sp:predicate sxml:text ; 227 + sp:subject _:b10
228 - sp:subject _:b12 228 + ])
229 - ] [ rdf:type sp:Bind ; 229 + ] ;
230 - sp:expression 230 + spin:rule
231 - [ rdf:type xsd:double ; 231 + [ rdf:type sp:Construct ;
232 - sp:arg1 _:b13 232 + rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
233 - ] ; 233 + sp:templates ([ sp:object _:b11 ;
234 - sp:variable _:b4 234 + sp:predicate _:b12 ;
235 - ]) 235 + sp:subject spin:_this
236 - ] ; 236 + ] [ sp:object rdf:Statement ;
237 - spin:rule 237 + sp:predicate rdf:type ;
238 - [ rdf:type sp:Construct ; 238 + sp:subject _:b13
239 - rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; 239 + ] [ sp:object spin:_this ;
240 - sp:templates ([ sp:object _:b14 ; 240 + sp:predicate rdf:subject ;
241 - sp:predicate _:b15 ; 241 + sp:subject _:b13
242 - sp:subject spin:_this 242 + ] [ sp:object _:b12 ;
243 - ] [ sp:object rdf:Statement ; 243 + sp:predicate rdf:predicate ;
244 - sp:predicate rdf:type ; 244 + sp:subject _:b13
245 - sp:subject _:b16 245 + ] [ sp:object _:b11 ;
246 - ] [ sp:object spin:_this ; 246 + sp:predicate rdf:object ;
247 - sp:predicate rdf:subject ; 247 + sp:subject _:b13
248 - sp:subject _:b16 248 + ] [ sp:object _:b13 ;
249 - ] [ sp:object _:b15 ; 249 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
250 - sp:predicate rdf:predicate ; 250 + sp:subject _:b14
251 - sp:subject _:b16 251 + ]) ;
252 - ] [ sp:object _:b14 ; 252 + sp:where ([ sp:object _:b14 ;
253 - sp:predicate rdf:object ; 253 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
254 - sp:subject _:b16 254 + sp:subject spin:_this
255 - ] [ sp:object _:b16 ; 255 + ] [ sp:object _:b15 ;
256 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 256 + sp:predicate rdf:type ;
257 - sp:subject _:b17 257 + sp:subject _:b14
258 - ]) ; 258 + ] [ rdf:type sp:NotExists ;
259 - sp:where ([ sp:object _:b17 ; 259 + sp:elements ([ sp:object
260 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 260 + [ sp:varName "uom"^^xsd:string
261 - sp:subject spin:_this 261 + ] ;
262 - ] [ sp:object _:b18 ; 262 + sp:predicate ddr:uom ;
263 - sp:predicate rdf:type ; 263 + sp:subject _:b14
264 - sp:subject _:b17 264 + ])
265 - ] [ rdf:type sp:NotExists ; 265 + ] [ rdf:type sp:Bind ;
266 - sp:elements ([ sp:object 266 + sp:expression
267 - [ sp:varName "uom"^^xsd:string 267 + [ rdf:type afn:localname ;
268 - ] ; 268 + sp:arg1 _:b15
269 - sp:predicate ddr:uom ; 269 + ] ;
270 - sp:subject _:b17 270 + sp:variable _:b16
271 - ]) 271 + ] [ rdf:type sp:Bind ;
272 - ] [ rdf:type sp:Bind ; 272 + sp:expression
273 - sp:expression 273 + [ rdf:type smf:buildURI ;
274 - [ rdf:type smf:titleCase ; 274 + sp:arg1 [ rdf:type fn:concat ;
275 - sp:arg1 [ rdf:type afn:localname ; 275 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
276 - sp:arg1 _:b18 276 + sp:arg2 _:b16
277 - ] 277 + ]
278 - ] ; 278 + ] ;
279 - sp:variable _:b19 279 + sp:variable _:b12
280 - ] [ rdf:type sp:Bind ; 280 + ] [ sp:object owl:DatatypeProperty ;
281 - sp:expression 281 + sp:predicate rdf:type ;
282 - [ rdf:type smf:buildURI ; 282 + sp:subject _:b12
283 - sp:arg1 [ rdf:type fn:concat ; 283 + ] [ sp:object _:b12 ;
284 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ; 284 + sp:predicate owl:onProperty ;
285 - sp:arg2 _:b19 285 + sp:subject _:b17
286 - ] 286 + ] [ sp:object _:b18 ;
287 - ] ; 287 + sp:predicate owl:allValuesFrom ;
288 - sp:variable _:b15 288 + sp:subject _:b17
289 - ] [ sp:object owl:ObjectProperty ; 289 + ] [ rdf:type sp:TriplePath ;
290 - sp:predicate rdf:type ; 290 + sp:object xsd:dateTime ;
291 - sp:subject _:b15 291 + sp:path [ rdf:type sp:ModPath ;
292 - ] [ sp:object _:b15 ; 292 + sp:modMax -2 ;
293 - sp:predicate owl:onProperty ; 293 + sp:modMin 0 ;
294 - sp:subject _:b20 294 + sp:subPath rdfs:subClassOf
295 - ] [ sp:object _:b21 ; 295 + ] ;
296 - sp:predicate owl:allValuesFrom ; 296 + sp:subject _:b18
297 - sp:subject _:b20 297 + ] [ sp:object _:b19 ;
298 - ] [ sp:object _:b22 ; 298 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
299 - sp:predicate rdf:type ; 299 + sp:subject _:b14
300 - sp:subject spin:_this 300 + ] [ sp:object sxml:TextNode ;
301 - ] [ rdf:type sp:TriplePath ; 301 + sp:predicate rdf:type ;
302 - sp:object _:b20 ; 302 + sp:subject _:b19
303 - sp:path [ rdf:type sp:ModPath ; 303 + ] [ sp:object _:b20 ;
304 - sp:modMax -2 ; 304 + sp:predicate sxml:text ;
305 - sp:modMin 0 ; 305 + sp:subject _:b19
306 - sp:subPath rdfs:subClassOf 306 + ] [ sp:object _:b21 ;
307 - ] ; 307 + sp:predicate rdf:type ;
308 - sp:subject _:b22 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 ; 323 + ])
324 - sp:predicate sxml:text ; 324 + ] ;
325 - sp:subject _:b23 325 + spin:rule
326 - ] [ sp:object _:b21 ; 326 + [ rdf:type sp:Construct ;
327 - sp:predicate rdf:type ; 327 + rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
328 - sp:subject _:b14 328 + sp:templates ([ sp:object _:b22 ;
329 - ] [ sp:object _:b24 ; 329 + sp:predicate _:b23 ;
330 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 330 + sp:subject spin:_this
331 - sp:subject _:b14 331 + ] [ sp:object rdf:Statement ;
332 - ]) 332 + sp:predicate rdf:type ;
333 - ] ; 333 + sp:subject _:b24
334 - spin:rule 334 + ] [ sp:object spin:_this ;
335 - [ rdf:type sp:Construct ; 335 + sp:predicate rdf:subject ;
336 - rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; 336 + sp:subject _:b24
337 - sp:templates ([ sp:object _:b25 ; 337 + ] [ sp:object _:b23 ;
338 - sp:predicate _:b26 ; 338 + sp:predicate rdf:predicate ;
339 - sp:subject spin:_this 339 + sp:subject _:b24
340 - ] [ sp:object rdf:Statement ; 340 + ] [ sp:object _:b22 ;
341 - sp:predicate rdf:type ; 341 + sp:predicate rdf:object ;
342 - sp:subject _:b27 342 + sp:subject _:b24
343 - ] [ sp:object spin:_this ; 343 + ] [ sp:object _:b24 ;
344 - sp:predicate rdf:subject ; 344 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
345 - sp:subject _:b27 345 + sp:subject _:b22
346 - ] [ sp:object _:b26 ; 346 + ]) ;
347 - sp:predicate rdf:predicate ; 347 + sp:where ([ sp:object _:b25 ;
348 - sp:subject _:b27 348 + sp:predicate owl:allValuesFrom ;
349 - ] [ sp:object _:b25 ; 349 + sp:subject _:b26
350 - sp:predicate rdf:object ; 350 + ] [ sp:object _:b23 ;
351 - sp:subject _:b27 351 + sp:predicate owl:onProperty ;
352 - ] [ sp:object _:b27 ; 352 + sp:subject _:b26
353 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 353 + ] [ sp:object _:b25 ;
354 - sp:subject _:b25 354 + sp:predicate rdf:type ;
355 - ]) ; 355 + sp:subject _:b22
356 - sp:where ([ sp:object _:b28 ; 356 + ] [ sp:object _:b22 ;
357 - sp:predicate owl:allValuesFrom ; 357 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
358 - sp:subject _:b29 358 + sp:subject spin:_this
359 - ] [ sp:object _:b26 ; 359 + ] [ sp:object _:b27 ;
360 - sp:predicate owl:onProperty ; 360 + sp:predicate rdf:type ;
361 - sp:subject _:b29 361 + sp:subject spin:_this
362 - ] [ sp:object _:b28 ; 362 + ] [ rdf:type sp:TriplePath ;
363 - sp:predicate rdf:type ; 363 + sp:object _:b26 ;
364 - sp:subject _:b25 364 + sp:path [ rdf:type sp:ModPath ;
365 - ] [ sp:object _:b25 ; 365 + sp:modMax -2 ;
366 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 366 + sp:modMin 0 ;
367 - sp:subject spin:_this 367 + sp:subPath rdfs:subClassOf
368 - ] [ sp:object _:b30 ; 368 + ] ;
369 - sp:predicate rdf:type ; 369 + sp:subject _:b27
370 - sp:subject spin:_this 370 + ])
371 - ] [ rdf:type sp:TriplePath ; 371 + ] ;
372 - sp:object _:b29 ; 372 + spin:rule
373 - sp:path [ rdf:type sp:ModPath ; 373 + [ rdf:type sp:Construct ;
374 - sp:modMax -2 ; 374 + rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
375 - sp:modMin 0 ; 375 + sp:templates ([ sp:object _:b28 ;
376 - sp:subPath rdfs:subClassOf 376 + sp:predicate _:b29 ;
377 - ] ; 377 + sp:subject spin:_this
378 - sp:subject _:b30 378 + ] [ sp:object rdf:Statement ;
379 - ]) 379 + sp:predicate rdf:type ;
380 - ] ; 380 + sp:subject _:b30
381 - spin:rule 381 + ] [ sp:object spin:_this ;
382 - [ rdf:type sp:Construct ; 382 + sp:predicate rdf:subject ;
383 - rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; 383 + sp:subject _:b30
384 - sp:templates ([ sp:object _:b31 ; 384 + ] [ sp:object _:b29 ;
385 - sp:predicate _:b32 ; 385 + sp:predicate rdf:predicate ;
386 - sp:subject spin:_this 386 + sp:subject _:b30
387 - ] [ sp:object rdf:Statement ; 387 + ] [ sp:object _:b28 ;
388 - sp:predicate rdf:type ; 388 + sp:predicate rdf:object ;
389 - sp:subject _:b33 389 + sp:subject _:b30
390 - ] [ sp:object spin:_this ; 390 + ] [ sp:object _:b30 ;
391 - sp:predicate rdf:subject ; 391 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
392 - sp:subject _:b33 392 + sp:subject _:b31
393 - ] [ sp:object _:b32 ; 393 + ]) ;
394 - sp:predicate rdf:predicate ; 394 + sp:where ([ sp:object _:b31 ;
395 - sp:subject _:b33 395 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
396 - ] [ sp:object _:b31 ; 396 + sp:subject spin:_this
397 - sp:predicate rdf:object ; 397 + ] [ sp:object _:b32 ;
398 - sp:subject _:b33 398 + sp:predicate rdf:type ;
399 - ] [ sp:object _:b33 ; 399 + sp:subject _:b31
400 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 400 + ] [ rdf:type sp:NotExists ;
401 - sp:subject _:b34 401 + sp:elements ([ sp:object
402 - ]) ; 402 + [ sp:varName "uom"^^xsd:string
403 - sp:where ([ sp:object _:b34 ; 403 + ] ;
404 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 404 + sp:predicate ddr:uom ;
405 - sp:subject spin:_this 405 + sp:subject _:b31
406 - ] [ sp:object _:b35 ; 406 + ])
407 - sp:predicate rdf:type ; 407 + ] [ rdf:type sp:Bind ;
408 - sp:subject _:b34 408 + sp:expression
409 - ] [ rdf:type sp:NotExists ; 409 + [ rdf:type smf:titleCase ;
410 - sp:elements ([ sp:object 410 + sp:arg1 [ rdf:type afn:localname ;
411 - [ sp:varName "uom"^^xsd:string 411 + sp:arg1 _:b32
412 - ] ; 412 + ]
413 - sp:predicate ddr:uom ; 413 + ] ;
414 - sp:subject _:b34 414 + sp:variable _:b33
415 - ]) 415 + ] [ rdf:type sp:Bind ;
416 - ] [ rdf:type sp:Bind ; 416 + sp:expression
417 - sp:expression 417 + [ rdf:type smf:buildURI ;
418 - [ rdf:type afn:localname ; 418 + sp:arg1 [ rdf:type fn:concat ;
419 - sp:arg1 _:b35 419 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
420 - ] ; 420 + sp:arg2 _:b33
421 - sp:variable _:b36 421 + ]
422 - ] [ rdf:type sp:Bind ; 422 + ] ;
423 - sp:expression 423 + sp:variable _:b29
424 - [ rdf:type smf:buildURI ; 424 + ] [ sp:object owl:ObjectProperty ;
425 - sp:arg1 [ rdf:type fn:concat ; 425 + sp:predicate rdf:type ;
426 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 426 + sp:subject _:b29
427 - sp:arg2 _:b36 427 + ] [ sp:object _:b29 ;
428 - ] 428 + sp:predicate owl:onProperty ;
429 - ] ; 429 + sp:subject _:b34
430 - sp:variable _:b32 430 + ] [ sp:object _:b35 ;
431 - ] [ sp:object owl:DatatypeProperty ; 431 + sp:predicate owl:allValuesFrom ;
432 - sp:predicate rdf:type ; 432 + sp:subject _:b34
433 - sp:subject _:b32 433 + ] [ sp:object _:b36 ;
434 - ] [ sp:object _:b32 ; 434 + sp:predicate rdf:type ;
435 - sp:predicate owl:onProperty ; 435 + sp:subject spin:_this
436 - sp:subject _:b37 436 + ] [ rdf:type sp:TriplePath ;
437 - ] [ sp:object _:b38 ; 437 + sp:object _:b34 ;
438 - sp:predicate owl:allValuesFrom ; 438 + sp:path [ rdf:type sp:ModPath ;
439 - sp:subject _:b37 439 + sp:modMax -2 ;
440 - ] [ rdf:type sp:TriplePath ; 440 + sp:modMin 0 ;
441 - sp:object xsd:dateTime ; 441 + sp:subPath rdfs:subClassOf
442 - sp:path [ rdf:type sp:ModPath ; 442 + ] ;
443 - sp:modMax -2 ; 443 + sp:subject _:b36
444 - sp:modMin 0 ; 444 + ] [ rdf:type sp:TriplePath ;
445 - sp:subPath rdfs:subClassOf 445 + sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
446 - ] ; 446 + sp:path [ rdf:type sp:ModPath ;
447 - sp:subject _:b38 447 + sp:modMax -2 ;
448 - ] [ sp:object _:b39 ; 448 + sp:modMin 0 ;
449 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 449 + sp:subPath rdfs:subClassOf
450 - sp:subject _:b34 450 + ] ;
451 - ] [ sp:object sxml:TextNode ; 451 + sp:subject _:b35
452 - sp:predicate rdf:type ; 452 + ] [ sp:object _:b37 ;
453 - sp:subject _:b39 453 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
454 - ] [ sp:object _:b40 ; 454 + sp:subject _:b31
455 - sp:predicate sxml:text ; 455 + ] [ sp:object sxml:TextNode ;
456 - sp:subject _:b39 456 + sp:predicate rdf:type ;
457 - ] [ sp:object _:b41 ; 457 + sp:subject _:b37
458 - sp:predicate rdf:type ; 458 + ] [ sp:object _:b38 ;
459 - sp:subject spin:_this 459 + sp:predicate sxml:text ;
460 - ] [ rdf:type sp:TriplePath ; 460 + sp:subject _:b37
461 - sp:object _:b37 ; 461 + ] [ sp:object _:b35 ;
462 - sp:path [ rdf:type sp:ModPath ; 462 + sp:predicate rdf:type ;
463 - sp:modMax -2 ; 463 + sp:subject _:b28
464 - sp:modMin 0 ; 464 + ] [ sp:object _:b38 ;
465 - sp:subPath rdfs:subClassOf 465 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
466 - ] ; 466 + sp:subject _:b28
467 - sp:subject _:b41 467 + ])
468 - ] [ rdf:type sp:Bind ; 468 + ] ;
469 - sp:expression 469 + spin:rule
470 - [ rdf:type xsd:dateTime ; 470 + [ rdf:type sp:Construct ;
471 - sp:arg1 _:b40 471 + rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
472 - ] ; 472 + sp:templates ([ sp:object _:b39 ;
473 - sp:variable _:b31 473 + sp:predicate rdf:type ;
474 - ]) 474 + sp:subject _:b40
475 - ] ; 475 + ] [ sp:object _:b41 ;
476 - spin:rule 476 + sp:predicate ddr:uom ;
477 - [ rdf:type sp:Construct ; 477 + sp:subject _:b40
478 - rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; 478 + ] [ sp:object _:b42 ;
479 - sp:templates ([ sp:object _:b42 ; 479 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
480 - sp:predicate _:b43 ; 480 + sp:subject _:b40
481 - sp:subject spin:_this 481 + ] [ sp:object _:b40 ;
482 - ] [ sp:object rdf:Statement ; 482 + sp:predicate _:b43 ;
483 - sp:predicate rdf:type ; 483 + sp:subject spin:_this
484 - sp:subject _:b44 484 + ] [ sp:object rdf:Statement ;
485 - ] [ sp:object spin:_this ; 485 + sp:predicate rdf:type ;
486 - sp:predicate rdf:subject ; 486 + sp:subject _:b44
487 - sp:subject _:b44 487 + ] [ sp:object spin:_this ;
488 - ] [ sp:object _:b43 ; 488 + sp:predicate rdf:subject ;
489 - sp:predicate rdf:predicate ; 489 + sp:subject _:b44
490 - sp:subject _:b44 490 + ] [ sp:object _:b43 ;
491 - ] [ sp:object _:b42 ; 491 + sp:predicate rdf:predicate ;
492 - sp:predicate rdf:object ; 492 + sp:subject _:b44
493 - sp:subject _:b44 493 + ] [ sp:object _:b42 ;
494 - ] [ sp:object _:b44 ; 494 + sp:predicate rdf:object ;
495 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 495 + sp:subject _:b44
496 - sp:subject _:b45 496 + ] [ sp:object _:b44 ;
497 - ]) ; 497 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
498 - sp:where ([ sp:object _:b45 ; 498 + sp:subject _:b45
499 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 499 + ]) ;
500 - sp:subject spin:_this 500 + sp:where ([ sp:object _:b45 ;
501 - ] [ sp:object _:b46 ; 501 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
502 - sp:predicate rdf:type ; 502 + sp:subject spin:_this
503 - sp:subject _:b45 503 + ] [ sp:object _:b46 ;
504 - ] [ rdf:type sp:NotExists ; 504 + sp:predicate rdf:type ;
505 - sp:elements ([ sp:object 505 + sp:subject _:b45
506 - [ sp:varName "uom"^^xsd:string 506 + ] [ sp:object _:b41 ;
507 - ] ; 507 + sp:predicate ddr:uom ;
508 - sp:predicate ddr:uom ; 508 + sp:subject _:b45
509 - sp:subject _:b45 509 + ] [ rdf:type sp:NotExists ;
510 - ]) 510 + sp:elements ([ sp:object
511 - ] [ rdf:type sp:Bind ; 511 + [ sp:varName "aNode"^^xsd:string
512 - sp:expression 512 + ] ;
513 - [ rdf:type afn:localname ; 513 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
514 - sp:arg1 _:b46 514 + sp:subject _:b45
515 - ] ; 515 + ])
516 - sp:variable _:b47 516 + ] [ rdf:type sp:Bind ;
517 - ] [ rdf:type sp:Bind ; 517 + sp:expression
518 - sp:expression 518 + [ rdf:type afn:localname ;
519 - [ rdf:type smf:buildURI ; 519 + sp:arg1 _:b46
520 - sp:arg1 [ rdf:type fn:concat ; 520 + ] ;
521 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 521 + sp:variable _:b47
522 - sp:arg2 _:b47 522 + ] [ rdf:type sp:Bind ;
523 - ] 523 + sp:expression
524 - ] ; 524 + [ rdf:type smf:buildURI ;
525 - sp:variable _:b43 525 + sp:arg1 [ rdf:type fn:concat ;
526 - ] [ sp:object owl:DatatypeProperty ; 526 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
527 - sp:predicate rdf:type ; 527 + sp:arg2 _:b47
528 - sp:subject _:b43 528 + ]
529 - ] [ sp:object _:b43 ; 529 + ] ;
530 - sp:predicate owl:onProperty ; 530 + sp:variable _:b43
531 - sp:subject _:b48 531 + ] [ sp:object owl:ObjectProperty ;
532 - ] [ sp:object _:b49 ; 532 + sp:predicate rdf:type ;
533 - sp:predicate owl:allValuesFrom ; 533 + sp:subject _:b43
534 - sp:subject _:b48 534 + ] [ sp:object _:b43 ;
535 - ] [ rdf:type sp:TriplePath ; 535 + sp:predicate owl:onProperty ;
536 - sp:object xsd:string ; 536 + sp:subject _:b48
537 - sp:path [ rdf:type sp:ModPath ; 537 + ] [ sp:object _:b39 ;
538 - sp:modMax -2 ; 538 + sp:predicate owl:allValuesFrom ;
539 - sp:modMin 0 ; 539 + sp:subject _:b48
540 - sp:subPath rdfs:subClassOf 540 + ] [ sp:object _:b49 ;
541 - ] ; 541 + sp:predicate rdf:type ;
542 - sp:subject _:b49 542 + sp:subject spin:_this
543 - ] [ sp:object _:b50 ; 543 + ] [ rdf:type sp:TriplePath ;
544 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 544 + sp:object _:b48 ;
545 - sp:subject _:b45 545 + sp:path [ rdf:type sp:ModPath ;
546 - ] [ sp:object sxml:TextNode ; 546 + sp:modMax -2 ;
547 - sp:predicate rdf:type ; 547 + sp:modMin 0 ;
548 - sp:subject _:b50 548 + sp:subPath rdfs:subClassOf
549 - ] [ sp:object _:b42 ; 549 + ] ;
550 - sp:predicate sxml:text ; 550 + sp:subject _:b49
551 - sp:subject _:b50 551 + ] [ sp:object _:b50 ;
552 - ] [ sp:object _:b51 ; 552 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
553 - sp:predicate rdf:type ; 553 + sp:subject _:b45
554 - sp:subject spin:_this 554 + ] [ sp:object sxml:TextNode ;
555 - ] [ rdf:type sp:TriplePath ; 555 + sp:predicate rdf:type ;
556 - sp:object _:b48 ; 556 + sp:subject _:b50
557 - sp:path [ rdf:type sp:ModPath ; 557 + ] [ sp:object _:b51 ;
558 - sp:modMax -2 ; 558 + sp:predicate sxml:text ;
559 - sp:modMin 0 ; 559 + sp:subject _:b50
560 - sp:subPath rdfs:subClassOf 560 + ] [ rdf:type sp:Bind ;
561 - ] ; 561 + sp:expression
562 - sp:subject _:b51 562 + [ rdf:type xsd:double ;
563 - ]) 563 + sp:arg1 _:b51
564 - ] . 564 + ] ;
565 - 565 + sp:variable _:b42
566 -ddr:schemaLocation 566 + ])
567 - rdfs:domain ddr:Obj_drillReports ; 567 + ] .
568 - sxml:attribute "xsi:schemaLocation"^^xsd:string . 568 +
569 - 569 +ddr:schemaLocation
570 -ddr:uom 570 + rdfs:domain ddr:Obj_drillReports ;
571 - sxml:attribute "uom"^^xsd:string . 571 + sxml:attribute "xsi:schemaLocation"^^xsd:string .
572 - 572 +
573 -ddr:version 573 +ddr:uom
574 - rdfs:domain ddr:DrillReports ; 574 + sxml:attribute "uom"^^xsd:string .
575 - sxml:attribute "version"^^xsd:string . 575 +
576 - 576 +ddr:version
577 -<http://www.reportinghub.no/ep/transform/1.1/ddr> 577 + rdfs:domain ddr:DrillReports ;
578 - rdf:type owl:Ontology ; 578 + sxml:attribute "version"^^xsd:string .
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> ; 579 +
580 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 580 +<http://www.reportinghub.no/ep/transform/1.1/ddr>
581 - 581 + rdf:type owl:Ontology ;
582 -owl:Thing 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> ;
583 - spin:query 583 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
584 - [ rdf:type sp:Select ; 584 +
585 - sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ; 585 +owl:Thing
586 - sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; 586 + spin:query
587 - sp:predicate rdf:type ; 587 + [ rdf:type sp:Select ;
588 - sp:subject _:b56 588 + sp:where ([ sp:object
589 - ] [ rdf:type sp:TriplePath ; 589 + [ sp:varName "p"^^xsd:string
590 - sp:object _:b57 ; 590 + ] ;
591 - sp:path [ rdf:type sp:ModPath ; 591 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
592 - sp:modMax -2 ; 592 + sp:subject _:b52
593 - sp:modMin 0 ; 593 + ] [ rdf:type sp:NotExists ;
594 - sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> 594 + sp:elements ([ sp:object
595 - ] ; 595 + [ sp:varName "b"^^xsd:string
596 - sp:subject _:b56 596 + ] ;
597 - ] [ sp:object _:b58 ; 597 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
598 - sp:predicate <http://topbraid.org/sxsd#name> ; 598 + sp:subject _:b52
599 - sp:subject _:b56 599 + ])
600 - ] [ sp:object _:b55 ; 600 + ])
601 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; 601 + ] ;
602 - sp:subject _:b57 602 + spin:query
603 - ] [ sp:object _:b59 ; 603 + [ rdf:type sp:Select ;
604 - sp:predicate <http://topbraid.org/sxsd#name> ; 604 + sp:resultVariables (_:b53 _:b54 _:b55 _:b56) ;
605 - sp:subject _:b57 605 + sp:where ([ sp:object _:b56 ;
606 - ] [ rdf:type sp:Bind ; 606 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
607 - sp:expression 607 + sp:subject _:b55
608 - [ rdf:type spif:titleCase ; 608 + ] [ sp:object _:b55 ;
609 - sp:arg1 _:b59 609 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
610 - ] ; 610 + sp:subject _:b54
611 - sp:variable _:b60 611 + ] [ rdf:type sp:Union ;
612 - ] [ rdf:type sp:Bind ; 612 + sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
613 - sp:expression 613 + sp:predicate rdf:type ;
614 - [ rdf:type smf:buildURI ; 614 + sp:subject _:b54
615 - sp:arg1 [ rdf:type fn:concat ; 615 + ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
616 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 616 + sp:predicate rdf:type ;
617 - sp:arg2 _:b60 617 + sp:subject _:b54
618 - ] 618 + ]))
619 - ] ; 619 + ] [ sp:object _:b54 ;
620 - sp:variable _:b54 620 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
621 - ] [ rdf:type sp:Bind ; 621 + sp:subject _:b53
622 - sp:expression 622 + ])
623 - [ rdf:type spif:titleCase ; 623 + ] ;
624 - sp:arg1 _:b58 ; 624 + spin:query
625 - sp:arg2 "[a-z]s" 625 + [ rdf:type sp:Select ;
626 - ] ; 626 + sp:resultVariables (_:b57 _:b58 _:b59 _:b60) ;
627 - sp:variable _:b61 627 + sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
628 - ] [ rdf:type sp:Bind ; 628 + sp:predicate rdf:type ;
629 - sp:expression 629 + sp:subject _:b61
630 - [ rdf:type smf:buildURI ; 630 + ] [ rdf:type sp:TriplePath ;
631 - sp:arg1 [ rdf:type fn:concat ; 631 + sp:object _:b62 ;
632 - sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 632 + sp:path [ rdf:type sp:ModPath ;
633 - sp:arg2 _:b61 633 + sp:modMax -2 ;
634 - ] 634 + sp:modMin 0 ;
635 - ] ; 635 + sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
636 - sp:variable _:b53 636 + ] ;
637 - ] [ rdf:type sp:Bind ; 637 + sp:subject _:b61
638 - sp:expression 638 + ] [ sp:object _:b63 ;
639 - [ rdf:type smf:buildURI ; 639 + sp:predicate <http://topbraid.org/sxsd#name> ;
640 - sp:arg1 [ rdf:type fn:concat ; 640 + sp:subject _:b61
641 - sp:arg1 "http://www.reportinghub.no/map/ddr#" ; 641 + ] [ sp:object _:b60 ;
642 - sp:arg2 _:b61 ; 642 + sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
643 - sp:arg3 "-has" ; 643 + sp:subject _:b62
644 - sp:arg4 _:b60 644 + ] [ sp:object _:b64 ;
645 - ] 645 + sp:predicate <http://topbraid.org/sxsd#name> ;
646 - ] ; 646 + sp:subject _:b62
647 - sp:variable _:b52 647 + ] [ rdf:type sp:Bind ;
648 - ]) 648 + sp:expression
649 - ] ; 649 + [ rdf:type spif:titleCase ;
650 - spin:query 650 + sp:arg1 _:b64
651 - [ rdf:type sp:Select ; 651 + ] ;
652 - sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ; 652 + sp:variable _:b65
653 - sp:where ([ sp:object _:b65 ; 653 + ] [ rdf:type sp:Bind ;
654 - sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; 654 + sp:expression
655 - sp:subject _:b64 655 + [ rdf:type smf:buildURI ;
656 - ] [ sp:object _:b64 ; 656 + sp:arg1 [ rdf:type fn:concat ;
657 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 657 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
658 - sp:subject _:b63 658 + sp:arg2 _:b65
659 - ] [ rdf:type sp:Union ; 659 + ]
660 - sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; 660 + ] ;
661 - sp:predicate rdf:type ; 661 + sp:variable _:b59
662 - sp:subject _:b63 662 + ] [ rdf:type sp:Bind ;
663 - ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; 663 + sp:expression
664 - sp:predicate rdf:type ; 664 + [ rdf:type spif:titleCase ;
665 - sp:subject _:b63 665 + sp:arg1 _:b63 ;
666 - ])) 666 + sp:arg2 "[a-z]s"
667 - ] [ sp:object _:b63 ; 667 + ] ;
668 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 668 + sp:variable _:b66
669 - sp:subject _:b62 669 + ] [ rdf:type sp:Bind ;
670 - ]) 670 + sp:expression
671 - ] ; 671 + [ rdf:type smf:buildURI ;
672 - spin:query 672 + sp:arg1 [ rdf:type fn:concat ;
673 - [ rdf:type sp:Select ; 673 + sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
674 - sp:where ([ sp:object 674 + sp:arg2 _:b66
675 - [ sp:varName "p"^^xsd:string 675 + ]
676 - ] ; 676 + ] ;
677 - sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 677 + sp:variable _:b58
678 - sp:subject _:b66 678 + ] [ rdf:type sp:Bind ;
679 - ] [ rdf:type sp:NotExists ; 679 + sp:expression
680 - sp:elements ([ sp:object 680 + [ rdf:type smf:buildURI ;
681 - [ sp:varName "b"^^xsd:string 681 + sp:arg1 [ rdf:type fn:concat ;
682 - ] ; 682 + sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
683 - sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 683 + sp:arg2 _:b66 ;
684 - sp:subject _:b66 684 + sp:arg3 "-has" ;
685 - ]) 685 + sp:arg4 _:b65
686 - ]) 686 + ]
687 - ] ; 687 + ] ;
688 - spin:update 688 + sp:variable _:b57
689 - [ rdf:type sp:Modify ; 689 + ])
690 - sp:deletePattern ([ sp:object _:b67 ; 690 + ] ;
691 - sp:predicate rdfs:label ; 691 + spin:update
692 - sp:subject _:b68 692 + [ rdf:type sp:Modify ;
693 - ]) ; 693 + sp:deletePattern ([ sp:object _:b67 ;
694 - sp:insertPattern ([ sp:object _:b69 ; 694 + sp:predicate rdfs:label ;
695 - sp:predicate rdfs:label ; 695 + sp:subject _:b68
696 - sp:subject _:b68 696 + ]) ;
697 - ]) ; 697 + sp:insertPattern ([ sp:object _:b69 ;
698 - sp:where ([ sp:object _:b68 ; 698 + sp:predicate rdfs:label ;
699 - sp:predicate owl:onProperty ; 699 + sp:subject _:b68
700 - sp:subject 700 + ]) ;
701 - [ sp:varName "r"^^xsd:string 701 + sp:where ([ sp:object _:b68 ;
702 - ] 702 + sp:predicate owl:onProperty ;
703 - ] [ sp:object _:b67 ; 703 + sp:subject
704 - sp:predicate rdfs:label ; 704 + [ sp:varName "r"^^xsd:string
705 - sp:subject _:b68 705 + ]
706 - ] [ rdf:type sp:Filter ; 706 + ] [ sp:object _:b67 ;
707 - sp:expression 707 + sp:predicate rdfs:label ;
708 - [ rdf:type fn:starts-with ; 708 + sp:subject _:b68
709 - sp:arg1 _:b67 ; 709 + ] [ rdf:type sp:Filter ;
710 - sp:arg2 "has" 710 + sp:expression
711 - ] 711 + [ rdf:type fn:starts-with ;
712 - ] [ rdf:type sp:Bind ; 712 + sp:arg1 _:b67 ;
713 - sp:expression 713 + sp:arg2 "has"
714 - [ rdf:type smf:trim ; 714 + ]
715 - sp:arg1 [ rdf:type smf:regex ; 715 + ] [ rdf:type sp:Bind ;
716 - sp:arg1 _:b67 ; 716 + sp:expression
717 - sp:arg2 "has(.*)" ; 717 + [ rdf:type smf:trim ;
718 - sp:arg3 "$1" 718 + sp:arg1 [ rdf:type smf:regex ;
719 - ] 719 + sp:arg1 _:b67 ;
720 - ] ; 720 + sp:arg2 "has(.*)" ;
721 - sp:variable _:b69 721 + sp:arg3 "$1"
722 - ]) 722 + ]
723 - ] . 723 + ] ;
724 - 724 + sp:variable _:b69
725 -_:b42 725 + ])
726 - sp:varName "text"^^xsd:string . 726 + ] .
727 - 727 +
728 -_:b43 728 +_:b69
729 - sp:varName "dtpnameU"^^xsd:string . 729 + sp:varName "newLabel"^^xsd:string .
730 - 730 +
731 -_:b45 731 +_:b68
732 - sp:varName "child"^^xsd:string . 732 + sp:varName "p"^^xsd:string .
733 - 733 +
734 -_:b46 734 +_:b67
735 - sp:varName "childType"^^xsd:string . 735 + sp:varName "oldLabel"^^xsd:string .
736 - 736 +
737 -_:b47 737 +_:b52
738 - sp:varName "childLocalName"^^xsd:string . 738 + sp:varName "c"^^xsd:string .
739 - 739 +
740 -_:b48 740 +_:b56
741 - sp:varName "valuesRestriction"^^xsd:string . 741 + sp:varName "e"^^xsd:string .
742 - 742 +
743 -_:b49 743 +_:b55
744 - sp:varName "rangeType"^^xsd:string . 744 + sp:varName "s"^^xsd:string .
745 - 745 +
746 -_:b50 746 +_:b54
747 - sp:varName "textNode"^^xsd:string . 747 + sp:varName "p"^^xsd:string .
748 - 748 +
749 -_:b51 749 +_:b53
750 - sp:varName "instType"^^xsd:string . 750 + sp:varName "pp"^^xsd:string .
751 - 751 +
752 -_:b31 752 +_:b66
753 - sp:varName "dateTime"^^xsd:string . 753 + sp:varName "tcname"^^xsd:string .
754 - 754 +
755 -_:b32 755 +_:b65
756 - sp:varName "dtpnameU"^^xsd:string . 756 + sp:varName "tcpname"^^xsd:string .
757 - 757 +
758 -_:b34 758 +_:b64
759 - sp:varName "child"^^xsd:string . 759 + sp:varName "pname"^^xsd:string .
760 - 760 +
761 -_:b35 761 +_:b63
762 - sp:varName "childType"^^xsd:string . 762 + sp:varName "name"^^xsd:string .
763 - 763 +
764 -_:b36 764 +_:b62
765 - sp:varName "childLocalName"^^xsd:string . 765 + sp:varName "c"^^xsd:string .
766 - 766 +
767 -_:b37 767 +_:b61
768 - sp:varName "valuesRestriction"^^xsd:string . 768 + sp:varName "s"^^xsd:string .
769 - 769 +
770 -_:b38 770 +_:b60
771 - sp:varName "rangeType"^^xsd:string . 771 + sp:varName "mre"^^xsd:string .
772 - 772 +
773 -_:b39 773 +_:b59
774 - sp:varName "textNode"^^xsd:string . 774 + sp:varName "ddrPU"^^xsd:string .
775 - 775 +
776 -_:b40 776 +_:b58
777 - sp:varName "text"^^xsd:string . 777 + sp:varName "ddrCU"^^xsd:string .
778 - 778 +
779 -_:b41 779 +_:b57
780 - sp:varName "instType"^^xsd:string . 780 + sp:varName "ddrCPU"^^xsd:string .
781 - 781 +
782 -_:b25 782 +_:b10
783 - sp:varName "child"^^xsd:string . 783 + sp:varName "instType"^^xsd:string .
784 - 784 +
785 -_:b26 785 +_:b9 sp:varName "textNode"^^xsd:string .
786 - sp:varName "formalProperty"^^xsd:string . 786 +
787 - 787 +_:b8 sp:varName "rangeType"^^xsd:string .
788 -_:b28 788 +
789 - sp:varName "childType"^^xsd:string . 789 +_:b7 sp:varName "valuesRestriction"^^xsd:string .
790 - 790 +
791 -_:b29 791 +_:b6 sp:varName "childLocalName"^^xsd:string .
792 - sp:varName "valuesRestriction"^^xsd:string . 792 +
793 - 793 +_:b5 sp:varName "childType"^^xsd:string .
794 -_:b30 794 +
795 - sp:varName "instType"^^xsd:string . 795 +_:b4 sp:varName "child"^^xsd:string .
796 - 796 +
797 -_:b14 797 +_:b2 sp:varName "dtpnameU"^^xsd:string .
798 - sp:varName "enumeratedValue"^^xsd:string . 798 +
799 - 799 +_:b1 sp:varName "text"^^xsd:string .
800 -_:b15 800 +
801 - sp:varName "opnameU"^^xsd:string . 801 +_:b21
802 - 802 + sp:varName "instType"^^xsd:string .
803 -_:b17 803 +
804 - sp:varName "child"^^xsd:string . 804 +_:b20
805 - 805 + sp:varName "text"^^xsd:string .
806 -_:b18 806 +
807 - sp:varName "childType"^^xsd:string . 807 +_:b19
808 - 808 + sp:varName "textNode"^^xsd:string .
809 -_:b19 809 +
810 - sp:varName "childLocalName"^^xsd:string . 810 +_:b18
811 - 811 + sp:varName "rangeType"^^xsd:string .
812 -_:b20 812 +
813 - sp:varName "valuesRestriction"^^xsd:string . 813 +_:b17
814 - 814 + sp:varName "valuesRestriction"^^xsd:string .
815 -_:b21 815 +
816 - sp:varName "rangeU"^^xsd:string . 816 +_:b16
817 - 817 + sp:varName "childLocalName"^^xsd:string .
818 -_:b22 818 +
819 - sp:varName "instType"^^xsd:string . 819 +_:b15
820 - 820 + sp:varName "childType"^^xsd:string .
821 -_:b23 821 +
822 - sp:varName "textNode"^^xsd:string . 822 +_:b14
823 - 823 + sp:varName "child"^^xsd:string .
824 -_:b24 824 +
825 - sp:varName "text"^^xsd:string . 825 +_:b12
826 - 826 + sp:varName "dtpnameU"^^xsd:string .
827 -_:b1 sp:varName "rangeU"^^xsd:string . 827 +
828 - 828 +_:b11
829 -_:b3 sp:varName "uom"^^xsd:string . 829 + sp:varName "dateTime"^^xsd:string .
830 - 830 +
831 -_:b4 sp:varName "value"^^xsd:string . 831 +_:b27
832 - 832 + sp:varName "instType"^^xsd:string .
833 -_:b5 sp:varName "opnameU"^^xsd:string . 833 +
834 - 834 +_:b26
835 -_:b7 sp:varName "child"^^xsd:string . 835 + sp:varName "valuesRestriction"^^xsd:string .
836 - 836 +
837 -_:b8 sp:varName "childType"^^xsd:string . 837 +_:b25
838 - 838 + sp:varName "childType"^^xsd:string .
839 -_:b9 sp:varName "childLocalName"^^xsd:string . 839 +
840 - 840 +_:b23
841 -_:b10 841 + sp:varName "formalProperty"^^xsd:string .
842 - sp:varName "allValuesRestriction"^^xsd:string . 842 +
843 - 843 +_:b22
844 -_:b11 844 + sp:varName "child"^^xsd:string .
845 - sp:varName "instType"^^xsd:string . 845 +
846 - 846 +_:b38
847 -_:b12 847 + sp:varName "text"^^xsd:string .
848 - sp:varName "textNode"^^xsd:string . 848 +
849 - 849 +_:b37
850 -_:b13 850 + sp:varName "textNode"^^xsd:string .
851 - sp:varName "text"^^xsd:string . 851 +
852 - 852 +_:b36
853 -_:b66 853 + sp:varName "instType"^^xsd:string .
854 - sp:varName "c"^^xsd:string . 854 +
855 - 855 +_:b35
856 -_:b62 856 + sp:varName "rangeU"^^xsd:string .
857 - sp:varName "pp"^^xsd:string . 857 +
858 - 858 +_:b34
859 -_:b63 859 + sp:varName "valuesRestriction"^^xsd:string .
860 - sp:varName "p"^^xsd:string . 860 +
861 - 861 +_:b33
862 -_:b64 862 + sp:varName "childLocalName"^^xsd:string .
863 - sp:varName "s"^^xsd:string . 863 +
864 - 864 +_:b32
865 -_:b65 865 + sp:varName "childType"^^xsd:string .
866 - sp:varName "e"^^xsd:string . 866 +
867 - 867 +_:b31
868 -_:b52 868 + sp:varName "child"^^xsd:string .
869 - sp:varName "ddrCPU"^^xsd:string . 869 +
870 - 870 +_:b29
871 -_:b53 871 + sp:varName "opnameU"^^xsd:string .
872 - sp:varName "ddrCU"^^xsd:string . 872 +
873 - 873 +_:b28
874 -_:b54 874 + sp:varName "enumeratedValue"^^xsd:string .
875 - sp:varName "ddrPU"^^xsd:string . 875 +
876 - 876 +_:b51
877 -_:b55 877 + sp:varName "text"^^xsd:string .
878 - sp:varName "mre"^^xsd:string . 878 +
879 - 879 +_:b50
880 -_:b56 880 + sp:varName "textNode"^^xsd:string .
881 - sp:varName "s"^^xsd:string . 881 +
882 - 882 +_:b49
883 -_:b57 883 + sp:varName "instType"^^xsd:string .
884 - sp:varName "c"^^xsd:string . 884 +
885 - 885 +_:b48
886 -_:b58 886 + sp:varName "allValuesRestriction"^^xsd:string .
887 - sp:varName "name"^^xsd:string . 887 +
888 - 888 +_:b47
889 -_:b59 889 + sp:varName "childLocalName"^^xsd:string .
890 - sp:varName "pname"^^xsd:string . 890 +
891 - 891 +_:b46
892 -_:b60 892 + sp:varName "childType"^^xsd:string .
893 - sp:varName "tcpname"^^xsd:string . 893 +
894 - 894 +_:b45
895 -_:b61 895 + sp:varName "child"^^xsd:string .
896 - sp:varName "tcname"^^xsd:string . 896 +
897 - 897 +_:b43
898 -_:b67 898 + sp:varName "opnameU"^^xsd:string .
899 - sp:varName "oldLabel"^^xsd:string . 899 +
900 - 900 +_:b42
901 -_:b68 901 + sp:varName "value"^^xsd:string .
902 - sp:varName "p"^^xsd:string . 902 +
903 - 903 +_:b41
904 -_:b69 904 + sp:varName "uom"^^xsd:string .
905 - sp:varName "newLabel"^^xsd:string . 905 +
906 +_:b39
907 + sp:varName "rangeU"^^xsd:string .
......
1 -# baseURI: null 1 +# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
2 - 2 +# baseURI: null
3 -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 3 +
4 -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . 4 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
5 -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . 5 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
6 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 6 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
7 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 -@prefix visual: <http://topbraid.org/visual#> . 9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 10 +@prefix visual: <http://topbraid.org/visual#> .
11 - 11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 -[] rdf:type inference:Configuration ; 12 +
13 - composite:child 13 +[] rdf:type inference:Configuration ;
14 - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 14 + composite:child
15 - <http://spinrdf.org/spin#topSPINOptions> 15 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
16 - "singlePass" ; 16 + <http://spinrdf.org/spin#topSPINOptions>
17 - composite:index "0"^^xsd:int 17 + "singlePass" ;
18 - ] ; 18 + composite:index "0"^^xsd:int
19 - inference:completeMode 19 + ] ;
20 - "true"^^xsd:boolean . 20 + inference:completeMode
21 + "true"^^xsd:boolean .
......
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, ???) }" />
......