David Leal

Initial work on transfering properties from the XML derived classes

drillReport and statusInfo to the semantic objects DailyDrillingReport,
DailyDrillingActivity and WellBore.
1 -# Saved by TopBraid on Wed Jul 27 19:44:43 PDT 2011 1 +# Saved by TopBraid on Tue Aug 02 12:39:11 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
...@@ -76,6 +76,11 @@ ep-activity:DailyDrillingActivity ...@@ -76,6 +76,11 @@ ep-activity:DailyDrillingActivity
76 [ rdf:type owl:Restriction ; 76 [ rdf:type owl:Restriction ;
77 owl:allValuesFrom ep-activity:DrillingActivity ; 77 owl:allValuesFrom ep-activity:DrillingActivity ;
78 owl:onProperty ep-activity:hasSubActivity 78 owl:onProperty ep-activity:hasSubActivity
79 + ] ;
80 + rdfs:subClassOf
81 + [ rdf:type owl:Restriction ;
82 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#WellBore> ;
83 + owl:onProperty ep-activity:onWellBore
79 ] . 84 ] .
80 85
81 ep-activity:DailyDrillingReport 86 ep-activity:DailyDrillingReport
...@@ -103,6 +108,10 @@ ep-activity:DrillingActivity ...@@ -103,6 +108,10 @@ ep-activity:DrillingActivity
103 rdfs:label "Drilling activity"^^xsd:string ; 108 rdfs:label "Drilling activity"^^xsd:string ;
104 rdfs:subClassOf ep-activity:OffshoreWellActivity . 109 rdfs:subClassOf ep-activity:OffshoreWellActivity .
105 110
111 +ep-activity:FinalDailyDrillingReport
112 + rdf:type owl:Class ;
113 + rdfs:subClassOf ep-activity:DailyDrillingReport .
114 +
106 ep-activity:MonthlyDrillingActivity 115 ep-activity:MonthlyDrillingActivity
107 rdf:type owl:Class ; 116 rdf:type owl:Class ;
108 rdfs:label "Weekly drilling activity"^^xsd:string ; 117 rdfs:label "Weekly drilling activity"^^xsd:string ;
...@@ -123,6 +132,10 @@ ep-activity:MonthlyProductionActivity ...@@ -123,6 +132,10 @@ ep-activity:MonthlyProductionActivity
123 owl:onProperty ep-activity:hasSubActivity 132 owl:onProperty ep-activity:hasSubActivity
124 ] . 133 ] .
125 134
135 +ep-activity:NormalDailyDrillingReport
136 + rdf:type owl:Class ;
137 + rdfs:subClassOf ep-activity:DailyDrillingReport .
138 +
126 ep-activity:OffshoreActivity 139 ep-activity:OffshoreActivity
127 rdf:type owl:Class ; 140 rdf:type owl:Class ;
128 rdfs:label "Offshore activity"^^xsd:string ; 141 rdfs:label "Offshore activity"^^xsd:string ;
...@@ -153,6 +166,10 @@ ep-activity:OffshoreWellActivity ...@@ -153,6 +166,10 @@ ep-activity:OffshoreWellActivity
153 owl:onProperty ep-activity:onWell 166 owl:onProperty ep-activity:onWell
154 ] . 167 ] .
155 168
169 +ep-activity:PreliminaryDailyDrillingReport
170 + rdf:type owl:Class ;
171 + rdfs:subClassOf ep-activity:DailyDrillingReport .
172 +
156 ep-activity:ProductionActivity 173 ep-activity:ProductionActivity
157 rdf:type owl:Class ; 174 rdf:type owl:Class ;
158 rdfs:label "Production activity"^^xsd:string ; 175 rdfs:label "Production activity"^^xsd:string ;
...@@ -188,6 +205,11 @@ ep-activity:WeeklyProductionActivity ...@@ -188,6 +205,11 @@ ep-activity:WeeklyProductionActivity
188 owl:onProperty ep-activity:hasSubActivity 205 owl:onProperty ep-activity:hasSubActivity
189 ] . 206 ] .
190 207
208 +ep-activity:createdAt
209 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
210 + rdfs:label "created at"^^xsd:string ;
211 + rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
212 +
191 ep-activity:finishedAt 213 ep-activity:finishedAt
192 rdf:type owl:DatatypeProperty ; 214 rdf:type owl:DatatypeProperty ;
193 rdfs:label "finished at"^^xsd:string ; 215 rdfs:label "finished at"^^xsd:string ;
...@@ -205,6 +227,10 @@ ep-activity:onWell ...@@ -205,6 +227,10 @@ ep-activity:onWell
205 rdf:type owl:ObjectProperty ; 227 rdf:type owl:ObjectProperty ;
206 rdfs:label "on well"^^xsd:string . 228 rdfs:label "on well"^^xsd:string .
207 229
230 +ep-activity:onWellBore
231 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
232 + rdfs:label "on WellBore"^^xsd:string .
233 +
208 ep-activity:reportOn 234 ep-activity:reportOn
209 rdf:type owl:ObjectProperty ; 235 rdf:type owl:ObjectProperty ;
210 rdfs:label "report on"^^xsd:string . 236 rdfs:label "report on"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011 1 +# Saved by TopBraid on Tue Aug 02 12:26:59 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
...@@ -24,13 +24,55 @@ ep-spin-lib:Function ...@@ -24,13 +24,55 @@ ep-spin-lib:Function
24 rdfs:label "Function"^^xsd:string ; 24 rdfs:label "Function"^^xsd:string ;
25 rdfs:subClassOf spin:Functions . 25 rdfs:subClassOf spin:Functions .
26 26
27 +ep-spin-lib:buildDailyDrillingActivityURI
28 + rdf:type spin:Function ;
29 + rdfs:label "build DailyDrillingActivity URI"^^xsd:string ;
30 + rdfs:subClassOf ep-spin-lib:Function ;
31 + spin:body
32 + [ rdf:type sp:Select ;
33 + sp:resultVariables (_:b1) ;
34 + sp:where ([ rdf:type sp:Bind ;
35 + sp:expression
36 + [ rdf:type ep-spin-lib:buildURI ;
37 + sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingActivity#" ;
38 + sp:arg2 [ rdf:type fn:concat ;
39 + sp:arg1 spin:_arg1 ;
40 + sp:arg2 "$" ;
41 + sp:arg3 spin:_arg2
42 + ]
43 + ] ;
44 + sp:variable _:b1
45 + ])
46 + ] .
47 +
48 +ep-spin-lib:buildDailyDrillingReportURI
49 + rdf:type spin:Function ;
50 + rdfs:label "build DailyDrillingReport URI"^^xsd:string ;
51 + rdfs:subClassOf ep-spin-lib:Function ;
52 + spin:body
53 + [ rdf:type sp:Select ;
54 + sp:resultVariables (_:b2) ;
55 + sp:where ([ rdf:type sp:Bind ;
56 + sp:expression
57 + [ rdf:type ep-spin-lib:buildURI ;
58 + sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport#" ;
59 + sp:arg2 [ rdf:type fn:concat ;
60 + sp:arg1 spin:_arg1 ;
61 + sp:arg2 "$" ;
62 + sp:arg3 spin:_arg2
63 + ]
64 + ] ;
65 + sp:variable _:b2
66 + ])
67 + ] .
68 +
27 ep-spin-lib:buildURI 69 ep-spin-lib:buildURI
28 rdf:type spin:Function ; 70 rdf:type spin:Function ;
29 rdfs:label "build URI"^^xsd:string ; 71 rdfs:label "build URI"^^xsd:string ;
30 rdfs:subClassOf ep-spin-lib:Function ; 72 rdfs:subClassOf ep-spin-lib:Function ;
31 spin:body 73 spin:body
32 [ rdf:type sp:Select ; 74 [ rdf:type sp:Select ;
33 - sp:resultVariables (_:b1) ; 75 + sp:resultVariables (_:b3) ;
34 sp:where ([ rdf:type sp:Bind ; 76 sp:where ([ rdf:type sp:Bind ;
35 sp:expression 77 sp:expression
36 [ rdf:type smf:resource ; 78 [ rdf:type smf:resource ;
...@@ -39,17 +81,17 @@ ep-spin-lib:buildURI ...@@ -39,17 +81,17 @@ ep-spin-lib:buildURI
39 sp:arg2 spin:_arg2 81 sp:arg2 spin:_arg2
40 ] 82 ]
41 ] ; 83 ] ;
42 - sp:variable _:b1 84 + sp:variable _:b3
43 ]) 85 ])
44 ] ; 86 ] ;
45 spin:constraint 87 spin:constraint
46 [ rdf:type spl:Argument ; 88 [ rdf:type spl:Argument ;
47 - spl:predicate sp:arg1 ; 89 + spl:predicate sp:arg2 ;
48 spl:valueType xsd:string 90 spl:valueType xsd:string
49 ] ; 91 ] ;
50 spin:constraint 92 spin:constraint
51 [ rdf:type spl:Argument ; 93 [ rdf:type spl:Argument ;
52 - spl:predicate sp:arg2 ; 94 + spl:predicate sp:arg1 ;
53 spl:valueType xsd:string 95 spl:valueType xsd:string
54 ] . 96 ] .
55 97
...@@ -59,14 +101,14 @@ ep-spin-lib:buildWellBoreURI ...@@ -59,14 +101,14 @@ ep-spin-lib:buildWellBoreURI
59 rdfs:subClassOf ep-spin-lib:Function ; 101 rdfs:subClassOf ep-spin-lib:Function ;
60 spin:body 102 spin:body
61 [ rdf:type sp:Select ; 103 [ rdf:type sp:Select ;
62 - sp:resultVariables (_:b2) ; 104 + sp:resultVariables (_:b4) ;
63 sp:where ([ rdf:type sp:Bind ; 105 sp:where ([ rdf:type sp:Bind ;
64 sp:expression 106 sp:expression
65 [ rdf:type ep-spin-lib:buildURI ; 107 [ rdf:type ep-spin-lib:buildURI ;
66 sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ; 108 sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ;
67 sp:arg2 spin:_arg1 109 sp:arg2 spin:_arg1
68 ] ; 110 ] ;
69 - sp:variable _:b2 111 + sp:variable _:b4
70 ]) 112 ])
71 ] . 113 ] .
72 114
...@@ -76,14 +118,14 @@ ep-spin-lib:buildWellURI ...@@ -76,14 +118,14 @@ ep-spin-lib:buildWellURI
76 rdfs:subClassOf ep-spin-lib:Function ; 118 rdfs:subClassOf ep-spin-lib:Function ;
77 spin:body 119 spin:body
78 [ rdf:type sp:Select ; 120 [ rdf:type sp:Select ;
79 - sp:resultVariables (_:b3) ; 121 + sp:resultVariables (_:b5) ;
80 sp:where ([ rdf:type sp:Bind ; 122 sp:where ([ rdf:type sp:Bind ;
81 sp:expression 123 sp:expression
82 [ rdf:type ep-spin-lib:buildURI ; 124 [ rdf:type ep-spin-lib:buildURI ;
83 sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ; 125 sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ;
84 sp:arg2 spin:_arg1 126 sp:arg2 spin:_arg1
85 ] ; 127 ] ;
86 - sp:variable _:b3 128 + sp:variable _:b5
87 ]) 129 ])
88 ] . 130 ] .
89 131
...@@ -93,7 +135,7 @@ ep-spin-lib:normalizeString ...@@ -93,7 +135,7 @@ ep-spin-lib:normalizeString
93 rdfs:subClassOf ep-spin-lib:Function ; 135 rdfs:subClassOf ep-spin-lib:Function ;
94 spin:body 136 spin:body
95 [ rdf:type sp:Select ; 137 [ rdf:type sp:Select ;
96 - sp:resultVariables (_:b4) ; 138 + sp:resultVariables (_:b6) ;
97 sp:where ([ rdf:type sp:Bind ; 139 sp:where ([ rdf:type sp:Bind ;
98 sp:expression 140 sp:expression
99 [ rdf:type smf:regex ; 141 [ rdf:type smf:regex ;
...@@ -101,67 +143,67 @@ ep-spin-lib:normalizeString ...@@ -101,67 +143,67 @@ ep-spin-lib:normalizeString
101 sp:arg2 "\\((.*)\\)" ; 143 sp:arg2 "\\((.*)\\)" ;
102 sp:arg3 "" 144 sp:arg3 ""
103 ] ; 145 ] ;
104 - sp:variable _:b5 146 + sp:variable _:b7
105 ] [ rdf:type sp:Bind ; 147 ] [ rdf:type sp:Bind ;
106 sp:expression 148 sp:expression
107 [ rdf:type smf:trim ; 149 [ rdf:type smf:trim ;
108 - sp:arg1 _:b5 150 + sp:arg1 _:b7
109 ] ; 151 ] ;
110 - sp:variable _:b6 152 + sp:variable _:b8
111 ] [ rdf:type sp:Bind ; 153 ] [ rdf:type sp:Bind ;
112 sp:expression 154 sp:expression
113 [ rdf:type smf:encodeURL ; 155 [ rdf:type smf:encodeURL ;
114 - sp:arg1 _:b6 156 + sp:arg1 _:b8
115 ] ; 157 ] ;
116 - sp:variable _:b7 158 + sp:variable _:b9
117 ] [ rdf:type sp:Bind ; 159 ] [ rdf:type sp:Bind ;
118 sp:expression 160 sp:expression
119 [ rdf:type smf:regex ; 161 [ rdf:type smf:regex ;
120 - sp:arg1 _:b7 ; 162 + sp:arg1 _:b9 ;
121 sp:arg2 "%2F" ; 163 sp:arg2 "%2F" ;
122 sp:arg3 "_" 164 sp:arg3 "_"
123 ] ; 165 ] ;
124 - sp:variable _:b8 166 + sp:variable _:b10
125 ] [ rdf:type sp:Bind ; 167 ] [ rdf:type sp:Bind ;
126 sp:expression 168 sp:expression
127 [ rdf:type smf:regex ; 169 [ rdf:type smf:regex ;
128 - sp:arg1 _:b8 ; 170 + sp:arg1 _:b10 ;
129 sp:arg2 "%[0-9A-F][0-9A-F]" ; 171 sp:arg2 "%[0-9A-F][0-9A-F]" ;
130 sp:arg3 "" 172 sp:arg3 ""
131 ] ; 173 ] ;
132 - sp:variable _:b9 174 + sp:variable _:b11
133 ] [ rdf:type sp:Bind ; 175 ] [ rdf:type sp:Bind ;
134 sp:expression 176 sp:expression
135 [ rdf:type smf:regex ; 177 [ rdf:type smf:regex ;
136 - sp:arg1 _:b9 ; 178 + sp:arg1 _:b11 ;
137 sp:arg2 "\\+" ; 179 sp:arg2 "\\+" ;
138 sp:arg3 "_" 180 sp:arg3 "_"
139 ] ; 181 ] ;
140 - sp:variable _:b10 182 + sp:variable _:b12
141 ] [ rdf:type sp:Bind ; 183 ] [ rdf:type sp:Bind ;
142 sp:expression 184 sp:expression
143 [ rdf:type smf:regex ; 185 [ rdf:type smf:regex ;
144 - sp:arg1 _:b10 ; 186 + sp:arg1 _:b12 ;
145 sp:arg2 "_+" ; 187 sp:arg2 "_+" ;
146 sp:arg3 "_" 188 sp:arg3 "_"
147 ] ; 189 ] ;
148 - sp:variable _:b11 190 + sp:variable _:b13
149 ] [ rdf:type sp:Bind ; 191 ] [ rdf:type sp:Bind ;
150 sp:expression 192 sp:expression
151 [ rdf:type smf:regex ; 193 [ rdf:type smf:regex ;
152 - sp:arg1 _:b11 ; 194 + sp:arg1 _:b13 ;
153 sp:arg2 "\\*" ; 195 sp:arg2 "\\*" ;
154 sp:arg3 "" 196 sp:arg3 ""
155 ] ; 197 ] ;
156 - sp:variable _:b12 198 + sp:variable _:b14
157 ] [ rdf:type sp:Bind ; 199 ] [ rdf:type sp:Bind ;
158 sp:expression 200 sp:expression
159 [ rdf:type xsd:string ; 201 [ rdf:type xsd:string ;
160 sp:arg1 [ rdf:type smf:upperCase ; 202 sp:arg1 [ rdf:type smf:upperCase ;
161 - sp:arg1 _:b12 203 + sp:arg1 _:b14
162 ] 204 ]
163 ] ; 205 ] ;
164 - sp:variable _:b4 206 + sp:variable _:b6
165 ]) 207 ])
166 ] ; 208 ] ;
167 spin:constraint 209 spin:constraint
...@@ -172,27 +214,33 @@ ep-spin-lib:normalizeString ...@@ -172,27 +214,33 @@ ep-spin-lib:normalizeString
172 214
173 _:b2 sp:varName "uri"^^xsd:string . 215 _:b2 sp:varName "uri"^^xsd:string .
174 216
175 -_:b3 sp:varName "uri"^^xsd:string .
176 -
177 _:b1 sp:varName "uri"^^xsd:string . 217 _:b1 sp:varName "uri"^^xsd:string .
178 218
179 -_:b5 sp:varName "s1"^^xsd:string . 219 +_:b14
180 - 220 + sp:varName "t4"^^xsd:string .
181 -_:b6 sp:varName "s2"^^xsd:string .
182 221
183 -_:b7 sp:varName "t0a"^^xsd:string . 222 +_:b13
223 + sp:varName "t3"^^xsd:string .
184 224
185 -_:b8 sp:varName "t0b"^^xsd:string . 225 +_:b12
226 + sp:varName "t2"^^xsd:string .
186 227
187 -_:b9 sp:varName "t1"^^xsd:string . 228 +_:b11
229 + sp:varName "t1"^^xsd:string .
188 230
189 _:b10 231 _:b10
190 - sp:varName "t2"^^xsd:string . 232 + sp:varName "t0b"^^xsd:string .
191 233
192 -_:b11 234 +_:b9 sp:varName "t0a"^^xsd:string .
193 - sp:varName "t3"^^xsd:string .
194 235
195 -_:b12 236 +_:b8 sp:varName "s2"^^xsd:string .
196 - sp:varName "t4"^^xsd:string .
197 237
198 -_:b4 sp:varName "normalizedStr"^^xsd:string . 238 +_:b7 sp:varName "s1"^^xsd:string .
239 +
240 +_:b6 sp:varName "normalizedStr"^^xsd:string .
241 +
242 +_:b5 sp:varName "uri"^^xsd:string .
243 +
244 +_:b4 sp:varName "uri"^^xsd:string .
245 +
246 +_:b3 sp:varName "uri"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011 1 +# Saved by TopBraid on Tue Aug 02 12:26:59 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 Mon Aug 01 14:29:25 PDT 2011 1 +# Saved by TopBraid on Tue Aug 02 17:04:28 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
3 +# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 5 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
5 # imports: http://spinrdf.org/spin 6 # imports: http://spinrdf.org/spin
6 7
8 +@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
7 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> . 9 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
8 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> . 10 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
9 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 11 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
...@@ -19,69 +21,395 @@ ...@@ -19,69 +21,395 @@
19 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> 21 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
20 spin:rule 22 spin:rule
21 [ rdf:type sp:Construct ; 23 [ rdf:type sp:Construct ;
22 - rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ; 24 + rdfs:comment "STEP 106 Transfer md"^^xsd:string ;
23 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 25 + sp:templates ([ sp:object _:b1 ;
24 - sp:predicate rdf:type ; 26 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
25 - sp:subject _:b1 27 + sp:subject _:b2
28 + ]) ;
29 + sp:where ([ sp:object _:b3 ;
30 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
31 + sp:subject spin:_this
32 + ] [ sp:object _:b4 ;
33 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
34 + sp:subject spin:_this
35 + ] [ sp:object _:b5 ;
36 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
37 + sp:subject spin:_this
26 ] [ sp:object _:b2 ; 38 ] [ sp:object _:b2 ;
39 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
40 + sp:subject _:b6
41 + ] [ sp:object _:b1 ;
42 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
43 + sp:subject _:b5
44 + ] [ rdf:type sp:Bind ;
45 + sp:expression
46 + [ rdf:type ep-spin-lib:normalizeString ;
47 + sp:arg1 _:b3
48 + ] ;
49 + sp:variable _:b7
50 + ] [ rdf:type sp:Bind ;
51 + sp:expression
52 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
53 + sp:arg1 _:b7 ;
54 + sp:arg2 _:b4
55 + ] ;
56 + sp:variable _:b6
57 + ])
58 + ] ;
59 + spin:rule
60 + [ rdf:type sp:Construct ;
61 + rdfs:comment "STEP 105 Transfer forecast24Hr"^^xsd:string ;
62 + sp:templates ([ sp:object _:b8 ;
63 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
64 + sp:subject _:b9
65 + ]) ;
66 + sp:where ([ sp:object _:b10 ;
67 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
68 + sp:subject spin:_this
69 + ] [ sp:object _:b11 ;
70 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
71 + sp:subject spin:_this
72 + ] [ sp:object _:b12 ;
73 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
74 + sp:subject spin:_this
75 + ] [ sp:object _:b8 ;
76 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
77 + sp:subject _:b12
78 + ] [ rdf:type sp:Bind ;
79 + sp:expression
80 + [ rdf:type ep-spin-lib:normalizeString ;
81 + sp:arg1 _:b10
82 + ] ;
83 + sp:variable _:b13
84 + ] [ rdf:type sp:Bind ;
85 + sp:expression
86 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
87 + sp:arg1 _:b13 ;
88 + sp:arg2 _:b11
89 + ] ;
90 + sp:variable _:b9
91 + ])
92 + ] ;
93 + spin:rule
94 + [ rdf:type sp:Construct ;
95 + rdfs:comment """STEP 101 Make DailyDrillingReport, DailyDrillingActivity, Well and WellBore instances
96 +Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses"""^^xsd:string ;
97 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
98 + sp:predicate rdf:type ;
99 + sp:subject _:b14
100 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
101 + sp:predicate rdf:type ;
102 + sp:subject _:b15
103 + ] [ sp:object _:b15 ;
104 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
105 + sp:subject _:b14
106 + ] [ sp:object _:b16 ;
107 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
108 + sp:subject _:b14
109 + ] [ sp:object _:b17 ;
110 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
111 + sp:subject _:b15
112 + ] [ sp:object _:b18 ;
113 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
114 + sp:subject _:b15
115 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
116 + sp:predicate rdf:type ;
117 + sp:subject _:b19
118 + ] [ sp:object _:b19 ;
119 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
120 + sp:subject _:b15
121 + ] [ sp:object _:b20 ;
27 sp:predicate rdfs:label ; 122 sp:predicate rdfs:label ;
28 - sp:subject _:b1 123 + sp:subject _:b19
29 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 124 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
30 sp:predicate rdf:type ; 125 sp:predicate rdf:type ;
31 - sp:subject _:b3 126 + sp:subject _:b21
32 - ] [ sp:object _:b4 ; 127 + ] [ sp:object _:b22 ;
33 sp:predicate rdfs:label ; 128 sp:predicate rdfs:label ;
34 - sp:subject _:b3 129 + sp:subject _:b21
35 - ] [ sp:object _:b1 ; 130 + ] [ sp:object _:b19 ;
36 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 131 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
37 - sp:subject _:b3 132 + sp:subject _:b21
133 + ] [ sp:object spin:_this ;
134 + sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
135 + sp:subject _:b14
38 ]) ; 136 ]) ;
39 - sp:where ([ sp:object _:b2 ; 137 + sp:where ([ sp:object _:b20 ;
40 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 138 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
41 sp:subject spin:_this 139 sp:subject spin:_this
42 - ] [ sp:object _:b4 ; 140 + ] [ sp:object _:b22 ;
43 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ; 141 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
44 sp:subject spin:_this 142 sp:subject spin:_this
143 + ] [ sp:object _:b17 ;
144 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
145 + sp:subject spin:_this
146 + ] [ sp:object _:b18 ;
147 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
148 + sp:subject spin:_this
149 + ] [ sp:object _:b16 ;
150 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
151 + sp:subject spin:_this
152 + ] [ rdf:type sp:Bind ;
153 + sp:expression
154 + [ rdf:type ep-spin-lib:normalizeString ;
155 + sp:arg1 _:b20
156 + ] ;
157 + sp:variable _:b23
158 + ] [ rdf:type sp:Bind ;
159 + sp:expression
160 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
161 + sp:arg1 _:b23 ;
162 + sp:arg2 _:b16
163 + ] ;
164 + sp:variable _:b14
165 + ] [ rdf:type sp:Bind ;
166 + sp:expression
167 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
168 + sp:arg1 _:b23 ;
169 + sp:arg2 _:b17
170 + ] ;
171 + sp:variable _:b15
172 + ] [ rdf:type sp:Bind ;
173 + sp:expression
174 + [ rdf:type ep-spin-lib:buildWellBoreURI ;
175 + sp:arg1 _:b23
176 + ] ;
177 + sp:variable _:b19
45 ] [ rdf:type sp:Bind ; 178 ] [ rdf:type sp:Bind ;
46 sp:expression 179 sp:expression
47 [ rdf:type ep-spin-lib:normalizeString ; 180 [ rdf:type ep-spin-lib:normalizeString ;
48 - sp:arg1 _:b4 181 + sp:arg1 _:b22
49 ] ; 182 ] ;
50 - sp:variable _:b5 183 + sp:variable _:b24
51 ] [ rdf:type sp:Bind ; 184 ] [ rdf:type sp:Bind ;
52 sp:expression 185 sp:expression
53 [ rdf:type ep-spin-lib:buildWellURI ; 186 [ rdf:type ep-spin-lib:buildWellURI ;
54 - sp:arg1 _:b5 187 + sp:arg1 _:b24
188 + ] ;
189 + sp:variable _:b21
190 + ])
55 ] ; 191 ] ;
56 - sp:variable _:b3 192 + spin:rule
193 + [ rdf:type sp:Construct ;
194 + rdfs:comment "STEP 103 Transfer distDrill"^^xsd:string ;
195 + sp:templates ([ sp:object _:b25 ;
196 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
197 + sp:subject _:b26
198 + ]) ;
199 + sp:where ([ sp:object _:b27 ;
200 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
201 + sp:subject spin:_this
202 + ] [ sp:object _:b28 ;
203 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
204 + sp:subject spin:_this
205 + ] [ sp:object _:b29 ;
206 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
207 + sp:subject spin:_this
208 + ] [ sp:object _:b25 ;
209 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
210 + sp:subject _:b29
57 ] [ rdf:type sp:Bind ; 211 ] [ rdf:type sp:Bind ;
58 sp:expression 212 sp:expression
59 [ rdf:type ep-spin-lib:normalizeString ; 213 [ rdf:type ep-spin-lib:normalizeString ;
60 - sp:arg1 _:b2 214 + sp:arg1 _:b27
61 ] ; 215 ] ;
62 - sp:variable _:b6 216 + sp:variable _:b30
63 ] [ rdf:type sp:Bind ; 217 ] [ rdf:type sp:Bind ;
64 sp:expression 218 sp:expression
65 - [ rdf:type ep-spin-lib:buildWellBoreURI ; 219 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
66 - sp:arg1 _:b6 220 + sp:arg1 _:b30 ;
221 + sp:arg2 _:b28
222 + ] ;
223 + sp:variable _:b26
224 + ])
225 + ] ;
226 + spin:rule
227 + [ rdf:type sp:Construct ;
228 + rdfs:comment "STEP 102 Transfer ropCurrent"^^xsd:string ;
229 + sp:templates ([ sp:object _:b31 ;
230 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
231 + sp:subject _:b32
232 + ]) ;
233 + sp:where ([ sp:object _:b33 ;
234 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
235 + sp:subject spin:_this
236 + ] [ sp:object _:b34 ;
237 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
238 + sp:subject spin:_this
239 + ] [ sp:object _:b35 ;
240 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
241 + sp:subject spin:_this
242 + ] [ sp:object _:b31 ;
243 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
244 + sp:subject _:b35
245 + ] [ rdf:type sp:Bind ;
246 + sp:expression
247 + [ rdf:type ep-spin-lib:normalizeString ;
248 + sp:arg1 _:b33
67 ] ; 249 ] ;
68 - sp:variable _:b1 250 + sp:variable _:b36
251 + ] [ rdf:type sp:Bind ;
252 + sp:expression
253 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
254 + sp:arg1 _:b36 ;
255 + sp:arg2 _:b34
256 + ] ;
257 + sp:variable _:b32
258 + ])
259 + ] ;
260 + spin:rule
261 + [ rdf:type sp:Construct ;
262 + rdfs:comment "STEP 104 Transfer sum24Hr"^^xsd:string ;
263 + sp:templates ([ sp:object _:b37 ;
264 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
265 + sp:subject _:b38
266 + ]) ;
267 + sp:where ([ sp:object _:b39 ;
268 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
269 + sp:subject spin:_this
270 + ] [ sp:object _:b40 ;
271 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
272 + sp:subject spin:_this
273 + ] [ sp:object _:b41 ;
274 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
275 + sp:subject spin:_this
276 + ] [ sp:object _:b37 ;
277 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
278 + sp:subject _:b41
279 + ] [ rdf:type sp:Bind ;
280 + sp:expression
281 + [ rdf:type ep-spin-lib:normalizeString ;
282 + sp:arg1 _:b39
283 + ] ;
284 + sp:variable _:b42
285 + ] [ rdf:type sp:Bind ;
286 + sp:expression
287 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
288 + sp:arg1 _:b42 ;
289 + sp:arg2 _:b40
290 + ] ;
291 + sp:variable _:b38
69 ]) 292 ])
70 ] . 293 ] .
71 294
72 <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization> 295 <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
73 rdf:type owl:Ontology ; 296 rdf:type owl:Ontology ;
74 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ; 297 + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> ;
75 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 298 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
76 299
77 -_:b2 sp:varName "nameWellBore"^^xsd:string . 300 +_:b33
301 + sp:varName "nameWellBore"^^xsd:string .
302 +
303 +_:b34
304 + sp:varName "dTimStart"^^xsd:string .
305 +
306 +_:b35
307 + sp:varName "statusInfo"^^xsd:string .
308 +
309 +_:b31
310 + sp:varName "ropCurrentValue"^^xsd:string .
311 +
312 +_:b36
313 + sp:varName "normalizedWellBoreName"^^xsd:string .
314 +
315 +_:b32
316 + sp:varName "dailyDrillingActivityURI"^^xsd:string .
317 +
318 +_:b39
319 + sp:varName "nameWellBore"^^xsd:string .
320 +
321 +_:b40
322 + sp:varName "dTimStart"^^xsd:string .
323 +
324 +_:b41
325 + sp:varName "statusInfo"^^xsd:string .
326 +
327 +_:b37
328 + sp:varName "sum24Hr"^^xsd:string .
329 +
330 +_:b42
331 + sp:varName "normalizedWellBoreName"^^xsd:string .
332 +
333 +_:b38
334 + sp:varName "dailyDrillingActivityURI"^^xsd:string .
335 +
336 +_:b27
337 + sp:varName "nameWellBore"^^xsd:string .
338 +
339 +_:b28
340 + sp:varName "dTimStart"^^xsd:string .
341 +
342 +_:b29
343 + sp:varName "statusInfo"^^xsd:string .
344 +
345 +_:b25
346 + sp:varName "distDrill"^^xsd:string .
347 +
348 +_:b30
349 + sp:varName "normalizedWellBoreName"^^xsd:string .
350 +
351 +_:b26
352 + sp:varName "dailyDrillingActivityURI"^^xsd:string .
353 +
354 +_:b10
355 + sp:varName "nameWellBore"^^xsd:string .
356 +
357 +_:b11
358 + sp:varName "dTimStart"^^xsd:string .
359 +
360 +_:b12
361 + sp:varName "statusInfo"^^xsd:string .
362 +
363 +_:b8 sp:varName "forecast24Hr"^^xsd:string .
364 +
365 +_:b13
366 + sp:varName "normalizedWellBoreName"^^xsd:string .
367 +
368 +_:b9 sp:varName "dailyDrillingActivityURI"^^xsd:string .
369 +
370 +_:b20
371 + sp:varName "nameWellBore"^^xsd:string .
372 +
373 +_:b22
374 + sp:varName "nameWell"^^xsd:string .
375 +
376 +_:b17
377 + sp:varName "dTimStart"^^xsd:string .
378 +
379 +_:b18
380 + sp:varName "dTimEnd"^^xsd:string .
381 +
382 +_:b16
383 + sp:varName "createDate"^^xsd:string .
384 +
385 +_:b23
386 + sp:varName "normalizedWellBoreName"^^xsd:string .
387 +
388 +_:b14
389 + sp:varName "dailyDrillingReportURI"^^xsd:string .
390 +
391 +_:b15
392 + sp:varName "dailyDrillingActivityURI"^^xsd:string .
393 +
394 +_:b19
395 + sp:varName "normalizedWellBoreNameU"^^xsd:string .
396 +
397 +_:b24
398 + sp:varName "normalizedWellName"^^xsd:string .
399 +
400 +_:b21
401 + sp:varName "normalizedWellNameU"^^xsd:string .
402 +
403 +_:b3 sp:varName "nameWellBore"^^xsd:string .
404 +
405 +_:b4 sp:varName "dTimStart"^^xsd:string .
78 406
79 -_:b4 sp:varName "nameWell"^^xsd:string . 407 +_:b5 sp:varName "statusInfo"^^xsd:string .
80 408
81 -_:b5 sp:varName "normalizedWellName"^^xsd:string . 409 +_:b6 sp:varName "dailyDrillingActivityURI"^^xsd:string .
82 410
83 -_:b3 sp:varName "normalizedWellNameU"^^xsd:string . 411 +_:b2 sp:varName "normalizedWellBoreNameU"^^xsd:string .
84 412
85 -_:b6 sp:varName "normalizedWellBoreName"^^xsd:string . 413 +_:b1 sp:varName "md"^^xsd:string .
86 414
87 -_:b1 sp:varName "normalizedWellBoreNameU"^^xsd:string . 415 +_:b7 sp:varName "normalizedWellBoreName"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011 1 +# Saved by TopBraid on Tue Aug 02 17:04:28 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#> .
......