David Leal

Use of temporal parts of a WellBore

1 -# Saved by TopBraid on Tue Aug 02 12:39:11 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 09:28:03 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/schema/1.1/activity 2 # baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
3 # imports: http://www.linkedmodel.org/1.2/schema/vaem 3 # imports: http://www.linkedmodel.org/1.2/schema/vaem
4 # imports: http://www.reportinghub.no/ep/schema/1.1/well 4 # imports: http://www.reportinghub.no/ep/schema/1.1/well
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 15
16 <http://www.reportinghub.no/ep/schema/1.1/activity> 16 <http://www.reportinghub.no/ep/schema/1.1/activity>
17 rdf:type owl:Ontology ; 17 rdf:type owl:Ontology ;
18 - owl:imports <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/core> ; 18 + owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.linkedmodel.org/1.1/schema/ordered> ;
19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
20 20
21 ep-activity:Activity 21 ep-activity:Activity
...@@ -24,33 +24,33 @@ ep-activity:Activity ...@@ -24,33 +24,33 @@ ep-activity:Activity
24 rdfs:subClassOf owl:Thing ; 24 rdfs:subClassOf owl:Thing ;
25 rdfs:subClassOf 25 rdfs:subClassOf
26 [ rdf:type owl:Restriction ; 26 [ rdf:type owl:Restriction ;
27 - owl:allValuesFrom ep-activity:Activity ; 27 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
28 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#during> 28 + owl:onProperty ep-activity:startedAt
29 ] ; 29 ] ;
30 rdfs:subClassOf 30 rdfs:subClassOf
31 [ rdf:type owl:Restriction ; 31 [ rdf:type owl:Restriction ;
32 - owl:allValuesFrom ep-activity:Activity ; 32 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
33 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps> 33 + owl:onProperty ep-activity:finishedAt
34 ] ; 34 ] ;
35 rdfs:subClassOf 35 rdfs:subClassOf
36 [ rdf:type owl:Restriction ; 36 [ rdf:type owl:Restriction ;
37 owl:allValuesFrom ep-activity:Activity ; 37 owl:allValuesFrom ep-activity:Activity ;
38 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#before> 38 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
39 ] ; 39 ] ;
40 rdfs:subClassOf 40 rdfs:subClassOf
41 [ rdf:type owl:Restriction ; 41 [ rdf:type owl:Restriction ;
42 owl:allValuesFrom ep-activity:Activity ; 42 owl:allValuesFrom ep-activity:Activity ;
43 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#after> 43 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
44 ] ; 44 ] ;
45 rdfs:subClassOf 45 rdfs:subClassOf
46 [ rdf:type owl:Restriction ; 46 [ rdf:type owl:Restriction ;
47 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 47 + owl:allValuesFrom ep-activity:Activity ;
48 - owl:onProperty ep-activity:finishedAt 48 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
49 ] ; 49 ] ;
50 rdfs:subClassOf 50 rdfs:subClassOf
51 [ rdf:type owl:Restriction ; 51 [ rdf:type owl:Restriction ;
52 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 52 + owl:allValuesFrom ep-activity:Activity ;
53 - owl:onProperty ep-activity:startedAt 53 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
54 ] . 54 ] .
55 55
56 ep-activity:DailyDrillingActivity 56 ep-activity:DailyDrillingActivity
...@@ -59,13 +59,13 @@ ep-activity:DailyDrillingActivity ...@@ -59,13 +59,13 @@ ep-activity:DailyDrillingActivity
59 rdfs:subClassOf ep-activity:OffshoreWellActivity ; 59 rdfs:subClassOf ep-activity:OffshoreWellActivity ;
60 rdfs:subClassOf 60 rdfs:subClassOf
61 [ rdf:type owl:Restriction ; 61 [ rdf:type owl:Restriction ;
62 - owl:allValuesFrom ep-activity:DrillingActivity ; 62 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
63 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#last> 63 + owl:onProperty ep-activity:onWellBore
64 ] ; 64 ] ;
65 rdfs:subClassOf 65 rdfs:subClassOf
66 [ rdf:type owl:Restriction ; 66 [ rdf:type owl:Restriction ;
67 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 67 + owl:allValuesFrom ep-activity:DrillingActivity ;
68 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first> 68 + owl:onProperty ep-activity:hasSubActivity
69 ] ; 69 ] ;
70 rdfs:subClassOf 70 rdfs:subClassOf
71 [ rdf:type owl:Restriction ; 71 [ rdf:type owl:Restriction ;
...@@ -74,13 +74,13 @@ ep-activity:DailyDrillingActivity ...@@ -74,13 +74,13 @@ ep-activity:DailyDrillingActivity
74 ] ; 74 ] ;
75 rdfs:subClassOf 75 rdfs:subClassOf
76 [ rdf:type owl:Restriction ; 76 [ rdf:type owl:Restriction ;
77 - owl:allValuesFrom ep-activity:DrillingActivity ; 77 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
78 - owl:onProperty ep-activity:hasSubActivity 78 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
79 ] ; 79 ] ;
80 rdfs:subClassOf 80 rdfs:subClassOf
81 [ rdf:type owl:Restriction ; 81 [ rdf:type owl:Restriction ;
82 - owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#WellBore> ; 82 + owl:allValuesFrom ep-activity:DrillingActivity ;
83 - owl:onProperty ep-activity:onWellBore 83 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
84 ] . 84 ] .
85 85
86 ep-activity:DailyDrillingReport 86 ep-activity:DailyDrillingReport
...@@ -147,22 +147,22 @@ ep-activity:OffshoreWellActivity ...@@ -147,22 +147,22 @@ ep-activity:OffshoreWellActivity
147 rdfs:subClassOf ep-activity:OffshoreActivity ; 147 rdfs:subClassOf ep-activity:OffshoreActivity ;
148 rdfs:subClassOf 148 rdfs:subClassOf
149 [ rdf:type owl:Restriction ; 149 [ rdf:type owl:Restriction ;
150 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 150 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
151 owl:onProperty ep-activity:onWell 151 owl:onProperty ep-activity:onWell
152 ] ; 152 ] ;
153 rdfs:subClassOf 153 rdfs:subClassOf
154 [ rdf:type owl:Restriction ; 154 [ rdf:type owl:Restriction ;
155 - owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ; 155 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
156 owl:onProperty ep-activity:onRig 156 owl:onProperty ep-activity:onRig
157 ] ; 157 ] ;
158 rdfs:subClassOf 158 rdfs:subClassOf
159 [ rdf:type owl:Restriction ; 159 [ rdf:type owl:Restriction ;
160 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 160 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ;
161 owl:onProperty ep-activity:onRig 161 owl:onProperty ep-activity:onRig
162 ] ; 162 ] ;
163 rdfs:subClassOf 163 rdfs:subClassOf
164 [ rdf:type owl:Restriction ; 164 [ rdf:type owl:Restriction ;
165 - owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ; 165 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
166 owl:onProperty ep-activity:onWell 166 owl:onProperty ep-activity:onWell
167 ] . 167 ] .
168 168
...@@ -206,7 +206,7 @@ ep-activity:WeeklyProductionActivity ...@@ -206,7 +206,7 @@ ep-activity:WeeklyProductionActivity
206 ] . 206 ] .
207 207
208 ep-activity:createdAt 208 ep-activity:createdAt
209 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 209 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
210 rdfs:label "created at"^^xsd:string ; 210 rdfs:label "created at"^^xsd:string ;
211 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> . 211 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
212 212
...@@ -228,7 +228,7 @@ ep-activity:onWell ...@@ -228,7 +228,7 @@ ep-activity:onWell
228 rdfs:label "on well"^^xsd:string . 228 rdfs:label "on well"^^xsd:string .
229 229
230 ep-activity:onWellBore 230 ep-activity:onWellBore
231 - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; 231 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
232 rdfs:label "on WellBore"^^xsd:string . 232 rdfs:label "on WellBore"^^xsd:string .
233 233
234 ep-activity:reportOn 234 ep-activity:reportOn
......
1 -# Saved by TopBraid on Mon Aug 01 13:33:39 PDT 2011 1 +# Saved by TopBraid on Thu Aug 04 10:01:25 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/schema/1.1/well 2 # baseURI: http://www.reportinghub.no/ep/schema/1.1/well
3 # imports: http://www.reportinghub.no/ep/schema/1.1/core 3 # imports: http://www.reportinghub.no/ep/schema/1.1/core
4 4
...@@ -14,25 +14,34 @@ ...@@ -14,25 +14,34 @@
14 owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ; 14 owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
15 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 15 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
16 16
17 +ep-well:AllOrPartOfTheLifeOfAWellBore
18 + rdf:type owl:Class ;
19 + rdfs:label "all or part of the life of a well bore"^^xsd:string .
20 +
21 +ep-well:TemporalPartOfAWellBore
22 + rdf:type owl:Class ;
23 + rdfs:label "temporal part of a well bore"^^xsd:string ;
24 + rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore .
25 +
17 ep-well:Well 26 ep-well:Well
18 rdf:type owl:Class ; 27 rdf:type owl:Class ;
19 rdfs:label "Well"^^xsd:string ; 28 rdfs:label "Well"^^xsd:string ;
20 rdfs:subClassOf owl:Thing ; 29 rdfs:subClassOf owl:Thing ;
21 rdfs:subClassOf 30 rdfs:subClassOf
22 [ rdf:type owl:Restriction ; 31 [ rdf:type owl:Restriction ;
23 - owl:allValuesFrom ep-well:WellBore ; 32 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
24 - owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart> 33 + owl:onProperty <http://www.reportinghub.no/ep/schema/core#name>
25 ] ; 34 ] ;
26 rdfs:subClassOf 35 rdfs:subClassOf
27 [ rdf:type owl:Restriction ; 36 [ rdf:type owl:Restriction ;
28 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 37 + owl:allValuesFrom ep-well:WellBore ;
29 - owl:onProperty <http://www.reportinghub.no/ep/schema/core#name> 38 + owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
30 ] . 39 ] .
31 40
32 ep-well:WellBore 41 ep-well:WellBore
33 rdf:type owl:Class ; 42 rdf:type owl:Class ;
34 - rdfs:label "Well bore"^^xsd:string ; 43 + rdfs:label "well bore"^^xsd:string ;
35 - rdfs:subClassOf owl:Thing ; 44 + rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore ;
36 rdfs:subClassOf 45 rdfs:subClassOf
37 [ rdf:type owl:Restriction ; 46 [ rdf:type owl:Restriction ;
38 owl:cardinality "1"^^xsd:nonNegativeInteger ; 47 owl:cardinality "1"^^xsd:nonNegativeInteger ;
......
1 -# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 09:22:54 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://spinrdf.org/spin 3 # imports: http://spinrdf.org/spin
4 4
...@@ -66,13 +66,34 @@ ep-spin-lib:buildDailyDrillingReportURI ...@@ -66,13 +66,34 @@ ep-spin-lib:buildDailyDrillingReportURI
66 ]) 66 ])
67 ] . 67 ] .
68 68
69 +ep-spin-lib:buildTemporalPartOfAWellBoreURI
70 + rdf:type spin:Function ;
71 + rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ;
72 + rdfs:subClassOf ep-spin-lib:Function ;
73 + spin:body
74 + [ rdf:type sp:Select ;
75 + sp:resultVariables (_:b3) ;
76 + sp:where ([ rdf:type sp:Bind ;
77 + sp:expression
78 + [ rdf:type ep-spin-lib:buildURI ;
79 + sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
80 + sp:arg2 [ rdf:type fn:concat ;
81 + sp:arg1 spin:_arg1 ;
82 + sp:arg2 "$" ;
83 + sp:arg3 spin:_arg2
84 + ]
85 + ] ;
86 + sp:variable _:b3
87 + ])
88 + ] .
89 +
69 ep-spin-lib:buildURI 90 ep-spin-lib:buildURI
70 rdf:type spin:Function ; 91 rdf:type spin:Function ;
71 rdfs:label "build URI"^^xsd:string ; 92 rdfs:label "build URI"^^xsd:string ;
72 rdfs:subClassOf ep-spin-lib:Function ; 93 rdfs:subClassOf ep-spin-lib:Function ;
73 spin:body 94 spin:body
74 [ rdf:type sp:Select ; 95 [ rdf:type sp:Select ;
75 - sp:resultVariables (_:b3) ; 96 + sp:resultVariables (_:b4) ;
76 sp:where ([ rdf:type sp:Bind ; 97 sp:where ([ rdf:type sp:Bind ;
77 sp:expression 98 sp:expression
78 [ rdf:type smf:resource ; 99 [ rdf:type smf:resource ;
...@@ -81,17 +102,17 @@ ep-spin-lib:buildURI ...@@ -81,17 +102,17 @@ ep-spin-lib:buildURI
81 sp:arg2 spin:_arg2 102 sp:arg2 spin:_arg2
82 ] 103 ]
83 ] ; 104 ] ;
84 - sp:variable _:b3 105 + sp:variable _:b4
85 ]) 106 ])
86 ] ; 107 ] ;
87 spin:constraint 108 spin:constraint
88 [ rdf:type spl:Argument ; 109 [ rdf:type spl:Argument ;
89 - spl:predicate sp:arg1 ; 110 + spl:predicate sp:arg2 ;
90 spl:valueType xsd:string 111 spl:valueType xsd:string
91 ] ; 112 ] ;
92 spin:constraint 113 spin:constraint
93 [ rdf:type spl:Argument ; 114 [ rdf:type spl:Argument ;
94 - spl:predicate sp:arg2 ; 115 + spl:predicate sp:arg1 ;
95 spl:valueType xsd:string 116 spl:valueType xsd:string
96 ] . 117 ] .
97 118
...@@ -101,14 +122,14 @@ ep-spin-lib:buildWellBoreURI ...@@ -101,14 +122,14 @@ ep-spin-lib:buildWellBoreURI
101 rdfs:subClassOf ep-spin-lib:Function ; 122 rdfs:subClassOf ep-spin-lib:Function ;
102 spin:body 123 spin:body
103 [ rdf:type sp:Select ; 124 [ rdf:type sp:Select ;
104 - sp:resultVariables (_:b4) ; 125 + sp:resultVariables (_:b5) ;
105 sp:where ([ rdf:type sp:Bind ; 126 sp:where ([ rdf:type sp:Bind ;
106 sp:expression 127 sp:expression
107 [ rdf:type ep-spin-lib:buildURI ; 128 [ rdf:type ep-spin-lib:buildURI ;
108 sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ; 129 sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
109 sp:arg2 spin:_arg1 130 sp:arg2 spin:_arg1
110 ] ; 131 ] ;
111 - sp:variable _:b4 132 + sp:variable _:b5
112 ]) 133 ])
113 ] . 134 ] .
114 135
...@@ -118,14 +139,14 @@ ep-spin-lib:buildWellURI ...@@ -118,14 +139,14 @@ ep-spin-lib:buildWellURI
118 rdfs:subClassOf ep-spin-lib:Function ; 139 rdfs:subClassOf ep-spin-lib:Function ;
119 spin:body 140 spin:body
120 [ rdf:type sp:Select ; 141 [ rdf:type sp:Select ;
121 - sp:resultVariables (_:b5) ; 142 + sp:resultVariables (_:b6) ;
122 sp:where ([ rdf:type sp:Bind ; 143 sp:where ([ rdf:type sp:Bind ;
123 sp:expression 144 sp:expression
124 [ rdf:type ep-spin-lib:buildURI ; 145 [ rdf:type ep-spin-lib:buildURI ;
125 sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ; 146 sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ;
126 sp:arg2 spin:_arg1 147 sp:arg2 spin:_arg1
127 ] ; 148 ] ;
128 - sp:variable _:b5 149 + sp:variable _:b6
129 ]) 150 ])
130 ] . 151 ] .
131 152
...@@ -135,7 +156,7 @@ ep-spin-lib:normalizeString ...@@ -135,7 +156,7 @@ ep-spin-lib:normalizeString
135 rdfs:subClassOf ep-spin-lib:Function ; 156 rdfs:subClassOf ep-spin-lib:Function ;
136 spin:body 157 spin:body
137 [ rdf:type sp:Select ; 158 [ rdf:type sp:Select ;
138 - sp:resultVariables (_:b6) ; 159 + sp:resultVariables (_:b7) ;
139 sp:where ([ rdf:type sp:Bind ; 160 sp:where ([ rdf:type sp:Bind ;
140 sp:expression 161 sp:expression
141 [ rdf:type smf:regex ; 162 [ rdf:type smf:regex ;
...@@ -143,67 +164,67 @@ ep-spin-lib:normalizeString ...@@ -143,67 +164,67 @@ ep-spin-lib:normalizeString
143 sp:arg2 "\\((.*)\\)" ; 164 sp:arg2 "\\((.*)\\)" ;
144 sp:arg3 "" 165 sp:arg3 ""
145 ] ; 166 ] ;
146 - sp:variable _:b7 167 + sp:variable _:b8
147 ] [ rdf:type sp:Bind ; 168 ] [ rdf:type sp:Bind ;
148 sp:expression 169 sp:expression
149 [ rdf:type smf:trim ; 170 [ rdf:type smf:trim ;
150 - sp:arg1 _:b7 171 + sp:arg1 _:b8
151 ] ; 172 ] ;
152 - sp:variable _:b8 173 + sp:variable _:b9
153 ] [ rdf:type sp:Bind ; 174 ] [ rdf:type sp:Bind ;
154 sp:expression 175 sp:expression
155 [ rdf:type smf:encodeURL ; 176 [ rdf:type smf:encodeURL ;
156 - sp:arg1 _:b8 177 + sp:arg1 _:b9
157 ] ; 178 ] ;
158 - sp:variable _:b9 179 + sp:variable _:b10
159 ] [ rdf:type sp:Bind ; 180 ] [ rdf:type sp:Bind ;
160 sp:expression 181 sp:expression
161 [ rdf:type smf:regex ; 182 [ rdf:type smf:regex ;
162 - sp:arg1 _:b9 ; 183 + sp:arg1 _:b10 ;
163 sp:arg2 "%2F" ; 184 sp:arg2 "%2F" ;
164 sp:arg3 "_" 185 sp:arg3 "_"
165 ] ; 186 ] ;
166 - sp:variable _:b10 187 + sp:variable _:b11
167 ] [ rdf:type sp:Bind ; 188 ] [ rdf:type sp:Bind ;
168 sp:expression 189 sp:expression
169 [ rdf:type smf:regex ; 190 [ rdf:type smf:regex ;
170 - sp:arg1 _:b10 ; 191 + sp:arg1 _:b11 ;
171 sp:arg2 "%[0-9A-F][0-9A-F]" ; 192 sp:arg2 "%[0-9A-F][0-9A-F]" ;
172 sp:arg3 "" 193 sp:arg3 ""
173 ] ; 194 ] ;
174 - sp:variable _:b11 195 + sp:variable _:b12
175 ] [ rdf:type sp:Bind ; 196 ] [ rdf:type sp:Bind ;
176 sp:expression 197 sp:expression
177 [ rdf:type smf:regex ; 198 [ rdf:type smf:regex ;
178 - sp:arg1 _:b11 ; 199 + sp:arg1 _:b12 ;
179 sp:arg2 "\\+" ; 200 sp:arg2 "\\+" ;
180 sp:arg3 "_" 201 sp:arg3 "_"
181 ] ; 202 ] ;
182 - sp:variable _:b12 203 + sp:variable _:b13
183 ] [ rdf:type sp:Bind ; 204 ] [ rdf:type sp:Bind ;
184 sp:expression 205 sp:expression
185 [ rdf:type smf:regex ; 206 [ rdf:type smf:regex ;
186 - sp:arg1 _:b12 ; 207 + sp:arg1 _:b13 ;
187 sp:arg2 "_+" ; 208 sp:arg2 "_+" ;
188 sp:arg3 "_" 209 sp:arg3 "_"
189 ] ; 210 ] ;
190 - sp:variable _:b13 211 + sp:variable _:b14
191 ] [ rdf:type sp:Bind ; 212 ] [ rdf:type sp:Bind ;
192 sp:expression 213 sp:expression
193 [ rdf:type smf:regex ; 214 [ rdf:type smf:regex ;
194 - sp:arg1 _:b13 ; 215 + sp:arg1 _:b14 ;
195 sp:arg2 "\\*" ; 216 sp:arg2 "\\*" ;
196 sp:arg3 "" 217 sp:arg3 ""
197 ] ; 218 ] ;
198 - sp:variable _:b14 219 + sp:variable _:b15
199 ] [ rdf:type sp:Bind ; 220 ] [ rdf:type sp:Bind ;
200 sp:expression 221 sp:expression
201 [ rdf:type xsd:string ; 222 [ rdf:type xsd:string ;
202 sp:arg1 [ rdf:type smf:upperCase ; 223 sp:arg1 [ rdf:type smf:upperCase ;
203 - sp:arg1 _:b14 224 + sp:arg1 _:b15
204 ] 225 ]
205 ] ; 226 ] ;
206 - sp:variable _:b6 227 + sp:variable _:b7
207 ]) 228 ])
208 ] ; 229 ] ;
209 spin:constraint 230 spin:constraint
...@@ -212,34 +233,37 @@ ep-spin-lib:normalizeString ...@@ -212,34 +233,37 @@ ep-spin-lib:normalizeString
212 spl:valueType xsd:string 233 spl:valueType xsd:string
213 ] . 234 ] .
214 235
215 -_:b4 sp:varName "uri"^^xsd:string . 236 +_:b3 sp:varName "uri"^^xsd:string .
216 237
217 -_:b5 sp:varName "uri"^^xsd:string . 238 +_:b15
239 + sp:varName "t4"^^xsd:string .
218 240
219 _:b14 241 _:b14
220 - sp:varName "t4"^^xsd:string . 242 + sp:varName "t3"^^xsd:string .
221 243
222 _:b13 244 _:b13
223 - sp:varName "t3"^^xsd:string . 245 + sp:varName "t2"^^xsd:string .
224 246
225 _:b12 247 _:b12
226 - sp:varName "t2"^^xsd:string . 248 + sp:varName "t1"^^xsd:string .
227 249
228 _:b11 250 _:b11
229 - sp:varName "t1"^^xsd:string . 251 + sp:varName "t0b"^^xsd:string .
230 252
231 _:b10 253 _:b10
232 - sp:varName "t0b"^^xsd:string . 254 + sp:varName "t0a"^^xsd:string .
233 255
234 -_:b9 sp:varName "t0a"^^xsd:string . 256 +_:b9 sp:varName "s2"^^xsd:string .
235 257
236 -_:b8 sp:varName "s2"^^xsd:string . 258 +_:b8 sp:varName "s1"^^xsd:string .
237 259
238 -_:b7 sp:varName "s1"^^xsd:string . 260 +_:b7 sp:varName "normalizedStr"^^xsd:string .
239 261
240 -_:b6 sp:varName "normalizedStr"^^xsd:string . 262 +_:b6 sp:varName "uri"^^xsd:string .
241 263
242 -_:b3 sp:varName "uri"^^xsd:string . 264 +_:b5 sp:varName "uri"^^xsd:string .
265 +
266 +_:b4 sp:varName "uri"^^xsd:string .
243 267
244 _:b2 sp:varName "uri"^^xsd:string . 268 _:b2 sp:varName "uri"^^xsd:string .
245 269
......
1 -# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 09:22:54 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 03 12:31:51 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 10:29:52 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
5 +# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
5 # imports: http://spinrdf.org/spin 6 # imports: http://spinrdf.org/spin
6 7
7 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . 8 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
9 +@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
8 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> . 10 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
9 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> . 11 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
10 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 12 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
13 +@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
11 @prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> . 14 @prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
12 @prefix owl: <http://www.w3.org/2002/07/owl#> . 15 @prefix owl: <http://www.w3.org/2002/07/owl#> .
16 +@prefix p1: <http://example.org/file1#> .
13 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 17 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 18 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 @prefix sp: <http://spinrdf.org/sp#> . 19 @prefix sp: <http://spinrdf.org/sp#> .
...@@ -51,580 +55,326 @@ ...@@ -51,580 +55,326 @@
51 ] ; 55 ] ;
52 spin:rule 56 spin:rule
53 [ rdf:type sp:Construct ; 57 [ rdf:type sp:Construct ;
54 - rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ; 58 + rdfs:comment """STEP 103a
55 - sp:templates ([ sp:object _:b6 ; 59 +Classify a DailyDrillingReport as normal"""^^xsd:string ;
56 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ; 60 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
57 - sp:subject _:b7 61 + sp:predicate rdf:type ;
58 - ]) ; 62 + sp:subject _:b6
59 - sp:where ([ sp:object _:b8 ;
60 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
61 - sp:subject spin:_this
62 - ] [ sp:object _:b9 ;
63 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
64 - sp:subject spin:_this
65 - ] [ sp:object _:b10 ;
66 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
67 - sp:subject spin:_this
68 - ] [ sp:object _:b6 ;
69 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
70 - sp:subject _:b10
71 - ] [ rdf:type sp:Bind ;
72 - sp:expression
73 - [ rdf:type ep-spin-lib:normalizeString ;
74 - sp:arg1 _:b8
75 - ] ;
76 - sp:variable _:b11
77 - ] [ rdf:type sp:Bind ;
78 - sp:expression
79 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
80 - sp:arg1 _:b11 ;
81 - sp:arg2 _:b9
82 - ] ;
83 - sp:variable _:b7
84 - ])
85 - ] ;
86 - spin:rule
87 - [ rdf:type sp:Construct ;
88 - rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
89 - sp:templates ([ sp:object _:b12 ;
90 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
91 - sp:subject _:b13
92 ]) ; 63 ]) ;
93 - sp:where ([ sp:object _:b14 ; 64 + sp:where ([ sp:object _:b7 ;
94 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 65 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
95 sp:subject spin:_this 66 sp:subject spin:_this
96 - ] [ sp:object _:b15 ; 67 + ] [ sp:object _:b8 ;
97 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 68 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
98 sp:subject spin:_this 69 sp:subject spin:_this
99 - ] [ sp:object _:b16 ; 70 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
100 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 71 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
101 sp:subject spin:_this 72 sp:subject spin:_this
102 - ] [ sp:object _:b12 ;
103 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
104 - sp:subject _:b16
105 ] [ rdf:type sp:Bind ; 73 ] [ rdf:type sp:Bind ;
106 sp:expression 74 sp:expression
107 [ rdf:type ep-spin-lib:normalizeString ; 75 [ rdf:type ep-spin-lib:normalizeString ;
108 - sp:arg1 _:b14 76 + sp:arg1 _:b7
109 ] ; 77 ] ;
110 - sp:variable _:b17 78 + sp:variable _:b9
111 ] [ rdf:type sp:Bind ; 79 ] [ rdf:type sp:Bind ;
112 sp:expression 80 sp:expression
113 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 81 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
114 - sp:arg1 _:b17 ; 82 + sp:arg1 _:b9 ;
115 - sp:arg2 _:b15 83 + sp:arg2 _:b8
116 ] ; 84 ] ;
117 - sp:variable _:b13 85 + sp:variable _:b6
118 ]) 86 ])
119 ] ; 87 ] ;
120 spin:rule 88 spin:rule
121 [ rdf:type sp:Construct ; 89 [ rdf:type sp:Construct ;
122 - rdfs:comment "STEP 104 Create Well"^^xsd:string ; 90 + rdfs:comment """STEP 103b
123 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 91 +Classify a DailyDrillingReport as preliminary"""^^xsd:string ;
92 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ;
124 sp:predicate rdf:type ; 93 sp:predicate rdf:type ;
125 - sp:subject _:b18 94 + sp:subject _:b10
126 - ] [ sp:object _:b19 ;
127 - sp:predicate rdfs:label ;
128 - sp:subject _:b18
129 - ] [ sp:object _:b18 ;
130 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
131 - sp:subject _:b20
132 - ] [ sp:object _:b21 ;
133 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
134 - sp:subject _:b18
135 ]) ; 95 ]) ;
136 - sp:where ([ sp:object _:b22 ; 96 + sp:where ([ sp:object _:b11 ;
137 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 97 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
138 sp:subject spin:_this 98 sp:subject spin:_this
139 - ] [ sp:object _:b19 ; 99 + ] [ sp:object _:b12 ;
140 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ; 100 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
141 sp:subject spin:_this 101 sp:subject spin:_this
142 - ] [ sp:object _:b23 ; 102 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ;
143 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 103 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
144 sp:subject spin:_this 104 sp:subject spin:_this
145 - ] [ sp:object _:b21 ;
146 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
147 - sp:subject _:b20
148 ] [ rdf:type sp:Bind ; 105 ] [ rdf:type sp:Bind ;
149 sp:expression 106 sp:expression
150 [ rdf:type ep-spin-lib:normalizeString ; 107 [ rdf:type ep-spin-lib:normalizeString ;
151 - sp:arg1 _:b22 108 + sp:arg1 _:b11
152 ] ; 109 ] ;
153 - sp:variable _:b24 110 + sp:variable _:b13
154 - ] [ rdf:type sp:Bind ;
155 - sp:expression
156 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
157 - sp:arg1 _:b24 ;
158 - sp:arg2 _:b23
159 - ] ;
160 - sp:variable _:b20
161 - ] [ rdf:type sp:Bind ;
162 - sp:expression
163 - [ rdf:type ep-spin-lib:normalizeString ;
164 - sp:arg1 _:b19
165 - ] ;
166 - sp:variable _:b25
167 ] [ rdf:type sp:Bind ; 111 ] [ rdf:type sp:Bind ;
168 sp:expression 112 sp:expression
169 - [ rdf:type ep-spin-lib:buildWellURI ; 113 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
170 - sp:arg1 _:b25 114 + sp:arg1 _:b13 ;
115 + sp:arg2 _:b12
171 ] ; 116 ] ;
172 - sp:variable _:b18 117 + sp:variable _:b10
173 ]) 118 ])
174 ] ; 119 ] ;
175 spin:rule 120 spin:rule
176 [ rdf:type sp:Construct ; 121 [ rdf:type sp:Construct ;
177 - rdfs:comment """STEP 103b 122 + rdfs:comment """STEP 103c
178 -Classify a DailyDrillingReport as preliminary"""^^xsd:string ; 123 +Classify a DailyDrillingReport as final"""^^xsd:string ;
179 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ; 124 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
180 sp:predicate rdf:type ; 125 sp:predicate rdf:type ;
181 - sp:subject _:b26 126 + sp:subject _:b14
182 ]) ; 127 ]) ;
183 - sp:where ([ sp:object _:b27 ; 128 + sp:where ([ sp:object _:b15 ;
184 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 129 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
185 sp:subject spin:_this 130 sp:subject spin:_this
186 - ] [ sp:object _:b28 ; 131 + ] [ sp:object _:b16 ;
187 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 132 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
188 sp:subject spin:_this 133 sp:subject spin:_this
189 - ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ; 134 + ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
190 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ; 135 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
191 sp:subject spin:_this 136 sp:subject spin:_this
192 ] [ rdf:type sp:Bind ; 137 ] [ rdf:type sp:Bind ;
193 sp:expression 138 sp:expression
194 [ rdf:type ep-spin-lib:normalizeString ; 139 [ rdf:type ep-spin-lib:normalizeString ;
195 - sp:arg1 _:b27 140 + sp:arg1 _:b15
196 ] ; 141 ] ;
197 - sp:variable _:b29 142 + sp:variable _:b17
198 ] [ rdf:type sp:Bind ; 143 ] [ rdf:type sp:Bind ;
199 sp:expression 144 sp:expression
200 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 145 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
201 - sp:arg1 _:b29 ; 146 + sp:arg1 _:b17 ;
202 - sp:arg2 _:b28 147 + sp:arg2 _:b16
203 ] ; 148 ] ;
204 - sp:variable _:b26 149 + sp:variable _:b14
205 ]) 150 ])
206 ] ; 151 ] ;
207 spin:rule 152 spin:rule
208 [ rdf:type sp:Construct ; 153 [ rdf:type sp:Construct ;
209 - rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity and WellBore 154 + rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
210 -Minimum data - createDate, dTimStart, nameWellBore 155 +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
211 -Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses (is this useful?)"""^^xsd:string ;
212 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ; 156 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
213 sp:predicate rdf:type ; 157 sp:predicate rdf:type ;
214 - sp:subject _:b30 158 + sp:subject _:b18
215 ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; 159 ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
216 sp:predicate rdf:type ; 160 sp:predicate rdf:type ;
217 - sp:subject _:b31 161 + sp:subject _:b19
218 - ] [ sp:object _:b31 ; 162 + ] [ sp:object _:b19 ;
219 sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; 163 sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
220 - sp:subject _:b30 164 + sp:subject _:b18
221 - ] [ sp:object _:b32 ; 165 + ] [ sp:object _:b20 ;
222 sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ; 166 sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
223 - sp:subject _:b30 167 + sp:subject _:b18
224 - ] [ sp:object _:b33 ; 168 + ] [ sp:object _:b21 ;
225 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 169 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
226 - sp:subject _:b31 170 + sp:subject _:b19
171 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
172 + sp:predicate rdf:type ;
173 + sp:subject _:b22
227 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 174 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
228 sp:predicate rdf:type ; 175 sp:predicate rdf:type ;
229 - sp:subject _:b34 176 + sp:subject _:b23
230 - ] [ sp:object _:b34 ; 177 + ] [ sp:object _:b23 ;
231 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 178 + sp:predicate iso15926:temporalPartOf ;
232 - sp:subject _:b31 179 + sp:subject _:b22
233 - ] [ sp:object _:b35 ; 180 + ] [ sp:object _:b24 ;
234 sp:predicate rdfs:label ; 181 sp:predicate rdfs:label ;
235 - sp:subject _:b34 182 + sp:subject _:b23
236 - ] [ sp:object spin:_this ; 183 + ] [ sp:object _:b22 ;
237 - sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ; 184 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
238 - sp:subject _:b30 185 + sp:subject _:b19
239 ]) ; 186 ]) ;
240 - sp:where ([ sp:object _:b35 ; 187 + sp:where ([ sp:object _:b24 ;
241 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 188 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
242 sp:subject spin:_this 189 sp:subject spin:_this
243 - ] [ sp:object _:b33 ; 190 + ] [ sp:object _:b21 ;
244 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 191 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
245 sp:subject spin:_this 192 sp:subject spin:_this
246 - ] [ sp:object _:b32 ; 193 + ] [ sp:object _:b20 ;
247 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 194 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
248 sp:subject spin:_this 195 sp:subject spin:_this
249 ] [ rdf:type sp:Bind ; 196 ] [ rdf:type sp:Bind ;
250 sp:expression 197 sp:expression
251 [ rdf:type ep-spin-lib:normalizeString ; 198 [ rdf:type ep-spin-lib:normalizeString ;
252 - sp:arg1 _:b35 199 + sp:arg1 _:b24
253 ] ; 200 ] ;
254 - sp:variable _:b36 201 + sp:variable _:b25
255 ] [ rdf:type sp:Bind ; 202 ] [ rdf:type sp:Bind ;
256 sp:expression 203 sp:expression
257 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 204 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
258 - sp:arg1 _:b36 ; 205 + sp:arg1 _:b25 ;
259 - sp:arg2 _:b32 206 + sp:arg2 _:b20
260 ] ; 207 ] ;
261 - sp:variable _:b30 208 + sp:variable _:b18
262 ] [ rdf:type sp:Bind ; 209 ] [ rdf:type sp:Bind ;
263 sp:expression 210 sp:expression
264 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 211 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
265 - sp:arg1 _:b36 ; 212 + sp:arg1 _:b25 ;
266 - sp:arg2 _:b33 213 + sp:arg2 _:b21
267 ] ; 214 ] ;
268 - sp:variable _:b31 215 + sp:variable _:b19
269 ] [ rdf:type sp:Bind ; 216 ] [ rdf:type sp:Bind ;
270 sp:expression 217 sp:expression
271 - [ rdf:type ep-spin-lib:buildWellBoreURI ; 218 + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
272 - sp:arg1 _:b36 219 + sp:arg1 _:b25 ;
220 + sp:arg2 _:b21
273 ] ; 221 ] ;
274 - sp:variable _:b34 222 + sp:variable _:b22
275 - ])
276 - ] ;
277 - spin:rule
278 - [ rdf:type sp:Construct ;
279 - rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
280 - sp:templates ([ sp:object _:b37 ;
281 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
282 - sp:subject _:b38
283 - ]) ;
284 - sp:where ([ sp:object _:b39 ;
285 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
286 - sp:subject spin:_this
287 - ] [ sp:object _:b40 ;
288 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
289 - sp:subject spin:_this
290 - ] [ sp:object _:b41 ;
291 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
292 - sp:subject spin:_this
293 - ] [ sp:object _:b37 ;
294 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
295 - sp:subject _:b41
296 - ] [ rdf:type sp:Bind ;
297 - sp:expression
298 - [ rdf:type ep-spin-lib:normalizeString ;
299 - sp:arg1 _:b39
300 - ] ;
301 - sp:variable _:b42
302 ] [ rdf:type sp:Bind ; 223 ] [ rdf:type sp:Bind ;
303 sp:expression 224 sp:expression
304 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 225 + [ rdf:type ep-spin-lib:buildWellBoreURI ;
305 - sp:arg1 _:b42 ; 226 + sp:arg1 _:b25
306 - sp:arg2 _:b40
307 ] ; 227 ] ;
308 - sp:variable _:b38 228 + sp:variable _:b23
309 ]) 229 ])
310 ] ; 230 ] ;
311 spin:rule 231 spin:rule
312 [ rdf:type sp:Construct ; 232 [ rdf:type sp:Construct ;
313 - rdfs:comment "STEP 109 Transfer md"^^xsd:string ; 233 + rdfs:comment "STEP 104 Create Well"^^xsd:string ;
314 - sp:templates ([ sp:object _:b43 ; 234 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
315 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ; 235 + sp:predicate rdf:type ;
316 - sp:subject _:b44 236 + sp:subject _:b26
237 + ] [ sp:object _:b27 ;
238 + sp:predicate rdfs:label ;
239 + sp:subject _:b26
240 + ] [ sp:object _:b26 ;
241 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
242 + sp:subject _:b28
243 + ] [ sp:object _:b29 ;
244 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
245 + sp:subject _:b26
317 ]) ; 246 ]) ;
318 - sp:where ([ sp:object _:b45 ; 247 + sp:where ([ sp:object _:b30 ;
319 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 248 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
320 sp:subject spin:_this 249 sp:subject spin:_this
321 - ] [ sp:object _:b46 ; 250 + ] [ sp:object _:b27 ;
322 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 251 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
323 sp:subject spin:_this 252 sp:subject spin:_this
324 - ] [ sp:object _:b47 ; 253 + ] [ sp:object _:b31 ;
325 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ; 254 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
326 sp:subject spin:_this 255 sp:subject spin:_this
327 - ] [ sp:object _:b44 ; 256 + ] [ sp:object _:b29 ;
328 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 257 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
329 - sp:subject _:b48 258 + sp:subject _:b28
330 - ] [ sp:object _:b43 ;
331 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
332 - sp:subject _:b47
333 ] [ rdf:type sp:Bind ; 259 ] [ rdf:type sp:Bind ;
334 sp:expression 260 sp:expression
335 [ rdf:type ep-spin-lib:normalizeString ; 261 [ rdf:type ep-spin-lib:normalizeString ;
336 - sp:arg1 _:b45 262 + sp:arg1 _:b30
337 ] ; 263 ] ;
338 - sp:variable _:b49 264 + sp:variable _:b32
339 ] [ rdf:type sp:Bind ; 265 ] [ rdf:type sp:Bind ;
340 sp:expression 266 sp:expression
341 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 267 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
342 - sp:arg1 _:b49 ; 268 + sp:arg1 _:b32 ;
343 - sp:arg2 _:b46 269 + sp:arg2 _:b31
344 - ] ;
345 - sp:variable _:b48
346 - ])
347 - ] ;
348 - spin:rule
349 - [ rdf:type sp:Construct ;
350 - rdfs:comment """STEP 103c
351 -Classify a DailyDrillingReport as final"""^^xsd:string ;
352 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
353 - sp:predicate rdf:type ;
354 - sp:subject _:b50
355 - ]) ;
356 - sp:where ([ sp:object _:b51 ;
357 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
358 - sp:subject spin:_this
359 - ] [ sp:object _:b52 ;
360 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
361 - sp:subject spin:_this
362 - ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
363 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
364 - sp:subject spin:_this
365 - ] [ rdf:type sp:Bind ;
366 - sp:expression
367 - [ rdf:type ep-spin-lib:normalizeString ;
368 - sp:arg1 _:b51
369 - ] ;
370 - sp:variable _:b53
371 - ] [ rdf:type sp:Bind ;
372 - sp:expression
373 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
374 - sp:arg1 _:b53 ;
375 - sp:arg2 _:b52
376 - ] ;
377 - sp:variable _:b50
378 - ])
379 - ] ;
380 - spin:rule
381 - [ rdf:type sp:Construct ;
382 - rdfs:comment """STEP 103a
383 -Classify a DailyDrillingReport as normal"""^^xsd:string ;
384 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
385 - sp:predicate rdf:type ;
386 - sp:subject _:b54
387 - ]) ;
388 - sp:where ([ sp:object _:b55 ;
389 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
390 - sp:subject spin:_this
391 - ] [ sp:object _:b56 ;
392 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
393 - sp:subject spin:_this
394 - ] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
395 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
396 - sp:subject spin:_this
397 - ] [ rdf:type sp:Bind ;
398 - sp:expression
399 - [ rdf:type ep-spin-lib:normalizeString ;
400 - sp:arg1 _:b55
401 - ] ;
402 - sp:variable _:b57
403 - ] [ rdf:type sp:Bind ;
404 - sp:expression
405 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
406 - sp:arg1 _:b57 ;
407 - sp:arg2 _:b56
408 ] ; 270 ] ;
409 - sp:variable _:b54 271 + sp:variable _:b28
410 - ])
411 - ] ;
412 - spin:rule
413 - [ rdf:type sp:Construct ;
414 - rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
415 - sp:templates ([ sp:object _:b58 ;
416 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
417 - sp:subject _:b59
418 - ]) ;
419 - sp:where ([ sp:object _:b60 ;
420 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
421 - sp:subject spin:_this
422 - ] [ sp:object _:b61 ;
423 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
424 - sp:subject spin:_this
425 - ] [ sp:object _:b62 ;
426 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
427 - sp:subject spin:_this
428 - ] [ sp:object _:b58 ;
429 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
430 - sp:subject _:b62
431 ] [ rdf:type sp:Bind ; 272 ] [ rdf:type sp:Bind ;
432 sp:expression 273 sp:expression
433 [ rdf:type ep-spin-lib:normalizeString ; 274 [ rdf:type ep-spin-lib:normalizeString ;
434 - sp:arg1 _:b60 275 + sp:arg1 _:b27
435 ] ; 276 ] ;
436 - sp:variable _:b63 277 + sp:variable _:b33
437 ] [ rdf:type sp:Bind ; 278 ] [ rdf:type sp:Bind ;
438 sp:expression 279 sp:expression
439 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 280 + [ rdf:type ep-spin-lib:buildWellURI ;
440 - sp:arg1 _:b63 ; 281 + sp:arg1 _:b33
441 - sp:arg2 _:b61
442 ] ; 282 ] ;
443 - sp:variable _:b59 283 + sp:variable _:b26
444 ]) 284 ])
445 ] . 285 ] .
446 286
447 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 287 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
448 rdf:type owl:Ontology ; 288 rdf:type owl:Ontology ;
449 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; 289 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> ;
450 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 290 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
451 291
452 -_:b50 292 +_:b33
453 - sp:varName "dailyDrillingReport"^^xsd:string . 293 + sp:varName "normalizedWellName"^^xsd:string .
454 294
455 -_:b53 295 +_:b32
456 sp:varName "normalizedWellBoreName"^^xsd:string . 296 sp:varName "normalizedWellBoreName"^^xsd:string .
457 297
458 -_:b52 298 +_:b31
459 - sp:varName "createDate"^^xsd:string . 299 + sp:varName "dTimStart"^^xsd:string .
460 300
461 -_:b51 301 +_:b30
462 sp:varName "nameWellBore"^^xsd:string . 302 sp:varName "nameWellBore"^^xsd:string .
463 303
464 -_:b26
465 - sp:varName "dailyDrillingReport"^^xsd:string .
466 -
467 _:b29 304 _:b29
468 - sp:varName "normalizedWellBoreName"^^xsd:string . 305 + sp:varName "wellBore"^^xsd:string .
469 306
470 _:b28 307 _:b28
471 - sp:varName "createDate"^^xsd:string .
472 -
473 -_:b27
474 - sp:varName "nameWellBore"^^xsd:string .
475 -
476 -_:b54
477 - sp:varName "dailyDrillingReport"^^xsd:string .
478 -
479 -_:b57
480 - sp:varName "normalizedWellBoreName"^^xsd:string .
481 -
482 -_:b56
483 - sp:varName "createDate"^^xsd:string .
484 -
485 -_:b55
486 - sp:varName "nameWellBore"^^xsd:string .
487 -
488 -_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
489 -
490 -_:b4 sp:varName "dTimStart"^^xsd:string .
491 -
492 -_:b3 sp:varName "nameWellBore"^^xsd:string .
493 -
494 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
495 -
496 -_:b1 sp:varName "dTimEnd"^^xsd:string .
497 -
498 -_:b42
499 - sp:varName "normalizedWellBoreName"^^xsd:string .
500 -
501 -_:b41
502 - sp:varName "statusInfo"^^xsd:string .
503 -
504 -_:b40
505 - sp:varName "dTimStart"^^xsd:string .
506 -
507 -_:b39
508 - sp:varName "nameWellBore"^^xsd:string .
509 -
510 -_:b38
511 sp:varName "dailyDrillingActivity"^^xsd:string . 308 sp:varName "dailyDrillingActivity"^^xsd:string .
512 309
513 -_:b37 310 +_:b27
514 - sp:varName "forecast24Hr"^^xsd:string . 311 + sp:varName "nameWell"^^xsd:string .
515 -
516 -_:b63
517 - sp:varName "normalizedWellBoreName"^^xsd:string .
518 -
519 -_:b62
520 - sp:varName "statusInfo"^^xsd:string .
521 -
522 -_:b61
523 - sp:varName "dTimStart"^^xsd:string .
524 -
525 -_:b60
526 - sp:varName "nameWellBore"^^xsd:string .
527 -
528 -_:b59
529 - sp:varName "dailyDrillingActivity"^^xsd:string .
530 -
531 -_:b58
532 - sp:varName "ropCurrentValue"^^xsd:string .
533 -
534 -_:b11
535 - sp:varName "normalizedWellBoreName"^^xsd:string .
536 -
537 -_:b10
538 - sp:varName "statusInfo"^^xsd:string .
539 -
540 -_:b9 sp:varName "dTimStart"^^xsd:string .
541 -
542 -_:b8 sp:varName "nameWellBore"^^xsd:string .
543 -
544 -_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
545 312
546 -_:b6 sp:varName "sum24Hr"^^xsd:string . 313 +_:b26
314 + sp:varName "well"^^xsd:string .
547 315
548 _:b25 316 _:b25
549 - sp:varName "normalizedWellName"^^xsd:string . 317 + sp:varName "normalizedWellBoreName"^^xsd:string .
550 318
551 _:b24 319 _:b24
552 - sp:varName "normalizedWellBoreName"^^xsd:string . 320 + sp:varName "nameWellBore"^^xsd:string .
553 321
554 _:b23 322 _:b23
555 - sp:varName "dTimStart"^^xsd:string . 323 + sp:varName "wellBore"^^xsd:string .
556 324
557 _:b22 325 _:b22
558 - sp:varName "nameWellBore"^^xsd:string . 326 + sp:varName "temporalPartOfAWellBore"^^xsd:string .
559 327
560 _:b21 328 _:b21
561 - sp:varName "wellBore"^^xsd:string . 329 + sp:varName "dTimStart"^^xsd:string .
562 330
563 _:b20 331 _:b20
564 - sp:varName "dailyDrillingActivity"^^xsd:string . 332 + sp:varName "createDate"^^xsd:string .
565 333
566 _:b19 334 _:b19
567 - sp:varName "nameWell"^^xsd:string . 335 + sp:varName "dailyDrillingActivity"^^xsd:string .
568 336
569 _:b18 337 _:b18
570 - sp:varName "well"^^xsd:string . 338 + sp:varName "dailyDrillingReport"^^xsd:string .
571 339
572 -_:b49 340 +_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
573 - sp:varName "normalizedWellBoreName"^^xsd:string .
574 341
575 -_:b48 342 +_:b8 sp:varName "createDate"^^xsd:string .
576 - sp:varName "dailyDrillingActivity"^^xsd:string .
577 343
578 -_:b47 344 +_:b7 sp:varName "nameWellBore"^^xsd:string .
579 - sp:varName "statusInfo"^^xsd:string .
580 345
581 -_:b46 346 +_:b6 sp:varName "dailyDrillingReport"^^xsd:string .
582 - sp:varName "dTimStart"^^xsd:string .
583 347
584 -_:b45 348 +_:b13
585 - sp:varName "nameWellBore"^^xsd:string . 349 + sp:varName "normalizedWellBoreName"^^xsd:string .
586 350
587 -_:b44 351 +_:b12
588 - sp:varName "wellBore"^^xsd:string . 352 + sp:varName "createDate"^^xsd:string .
589 353
590 -_:b43 354 +_:b11
591 - sp:varName "md"^^xsd:string . 355 + sp:varName "nameWellBore"^^xsd:string .
356 +
357 +_:b10
358 + sp:varName "dailyDrillingReport"^^xsd:string .
592 359
593 _:b17 360 _:b17
594 sp:varName "normalizedWellBoreName"^^xsd:string . 361 sp:varName "normalizedWellBoreName"^^xsd:string .
595 362
596 _:b16 363 _:b16
597 - sp:varName "statusInfo"^^xsd:string . 364 + sp:varName "createDate"^^xsd:string .
598 365
599 _:b15 366 _:b15
600 - sp:varName "dTimStart"^^xsd:string .
601 -
602 -_:b14
603 sp:varName "nameWellBore"^^xsd:string . 367 sp:varName "nameWellBore"^^xsd:string .
604 368
605 -_:b13 369 +_:b14
606 - sp:varName "dailyDrillingActivity"^^xsd:string . 370 + sp:varName "dailyDrillingReport"^^xsd:string .
607 -
608 -_:b12
609 - sp:varName "distDrill"^^xsd:string .
610 -
611 -_:b36
612 - sp:varName "normalizedWellBoreName"^^xsd:string .
613 -
614 -_:b35
615 - sp:varName "nameWellBore"^^xsd:string .
616 371
617 -_:b34 372 +_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
618 - sp:varName "wellBore"^^xsd:string .
619 373
620 -_:b33 374 +_:b4 sp:varName "dTimStart"^^xsd:string .
621 - sp:varName "dTimStart"^^xsd:string .
622 375
623 -_:b32 376 +_:b3 sp:varName "nameWellBore"^^xsd:string .
624 - sp:varName "createDate"^^xsd:string .
625 377
626 -_:b31 378 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
627 - sp:varName "dailyDrillingActivity"^^xsd:string .
628 379
629 -_:b30 380 +_:b1 sp:varName "dTimEnd"^^xsd:string .
630 - sp:varName "dailyDrillingReport"^^xsd:string .
......
1 -# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 10:29:52 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 03 07:44:47 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 10:31:12 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: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
3 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
5 +# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
4 # imports: http://spinrdf.org/spin 6 # imports: http://spinrdf.org/spin
5 7
6 @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> . 8 @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
...@@ -14,5 +16,5 @@ ...@@ -14,5 +16,5 @@
14 16
15 <http://www.reportinghub.no/ep/transform/1.1/normalization> 17 <http://www.reportinghub.no/ep/transform/1.1/normalization>
16 rdf:type owl:Ontology ; 18 rdf:type owl:Ontology ;
17 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> ; 19 + owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
18 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 20 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011 1 +# Saved by TopBraid on Thu Aug 04 10:31:12 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#> .
...@@ -13,5 +13,7 @@ ...@@ -13,5 +13,7 @@
13 [] rdf:type inference:Configuration ; 13 [] rdf:type inference:Configuration ;
14 composite:child 14 composite:child
15 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; 15 [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
16 + <http://spinrdf.org/spin#topSPINOptions>
17 + "singlePass" ;
16 composite:index "0"^^xsd:int 18 composite:index "0"^^xsd:int
17 ] . 19 ] .
......