David Price

Merge branch 'npd-dups'

1 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
2 -# imports: http://spinrdf.org/spin 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.energistics.org/schemas/abstract 3 +# imports: http://www.energistics.org/schemas/abstract
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 5 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 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/report
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/well 9 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
10 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 10 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
11 -# imports: http://www.witsml.org/schemas/1series 11 +# imports: http://www.witsml.org/schemas/1series
12 - 12 +
13 -@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . 13 +@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> .
14 -@prefix arg: <http://spinrdf.org/arg#> . 14 +@prefix arg: <http://spinrdf.org/arg#> .
15 -@prefix ddr: <http://www.witsml.org/schemas/1series#> . 15 +@prefix ddr: <http://www.witsml.org/schemas/1series#> .
16 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 16 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
17 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 17 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
18 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 18 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
19 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 19 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
20 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 20 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
21 -@prefix sp: <http://spinrdf.org/sp#> . 21 +@prefix sp: <http://spinrdf.org/sp#> .
22 -@prefix spin: <http://spinrdf.org/spin#> . 22 +@prefix spin: <http://spinrdf.org/spin#> .
23 -@prefix spl: <http://spinrdf.org/spl#> . 23 +@prefix spl: <http://spinrdf.org/spl#> .
24 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 24 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
25 - 25 +
26 -<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 26 +<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
27 - rdf:type owl:Ontology ; 27 + rdf:type owl:Ontology ;
28 - owl:imports <http://spinrdf.org/spin> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 28 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
29 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 29 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
30 - 30 +
31 -ddr:Obj_drillReport 31 +ddr:Obj_drillReport
32 - spin:rule 32 + spin:rule
33 - [ rdf:type sp:Construct ; 33 + [ rdf:type sp:Construct ;
34 - rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore 34 + rdfs:comment "STEP 106 Create Well Part"^^xsd:string ;
35 -Minimum data - createDate, dTimStart, dTimEnd, nameWellBore 35 + sp:templates ([ sp:object _:b1 ;
36 -Optional data - extendedReport 36 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
37 -replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; 37 + sp:subject
38 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; 38 + [ sp:varName "dailyDrillingActivity"^^xsd:string
39 - sp:predicate rdf:type ; 39 + ]
40 - sp:subject 40 + ] [ sp:object
41 - [ sp:varName "dailyDrillingReport"^^xsd:string 41 + [ sp:varName "well"^^xsd:string
42 - ] 42 + ] ;
43 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; 43 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
44 - sp:predicate rdf:type ; 44 + sp:subject _:b1
45 - sp:subject 45 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
46 - [ sp:varName "dailyDrillingActivity"^^xsd:string 46 + sp:predicate rdf:type ;
47 - ] 47 + sp:subject _:b1
48 - ] [ sp:object 48 + ] [ sp:object
49 - [ sp:varName "dailyDrillingActivity"^^xsd:string 49 + [ sp:varName "wellBore"^^xsd:string
50 - ] ; 50 + ] ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 51 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
52 - sp:subject 52 + sp:subject
53 - [ sp:varName "dailyDrillingReport"^^xsd:string 53 + [ sp:varName "well"^^xsd:string
54 - ] 54 + ]
55 - ] [ sp:object 55 + ]) ;
56 - [ sp:varName "createDate"^^xsd:string 56 + sp:where ([ sp:object
57 - ] ; 57 + [ sp:varName "nameWellBore"^^xsd:string
58 - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 58 + ] ;
59 - sp:subject 59 + sp:predicate ep-spin-lib:nameWellbore ;
60 - [ sp:varName "dailyDrillingReport"^^xsd:string 60 + sp:subject spin:_this
61 - ] 61 + ] [ sp:object
62 - ] [ sp:object 62 + [ sp:varName "nameWell"^^xsd:string
63 - [ sp:varName "dTimStart"^^xsd:string 63 + ] ;
64 - ] ; 64 + sp:predicate ep-spin-lib:nameWell ;
65 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 65 + sp:subject spin:_this
66 - sp:subject 66 + ] [ sp:object
67 - [ sp:varName "dailyDrillingActivity"^^xsd:string 67 + [ sp:varName "dTimStart"^^xsd:string
68 - ] 68 + ] ;
69 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; 69 + sp:predicate ddr:dTimStart ;
70 - sp:predicate rdf:type ; 70 + sp:subject spin:_this
71 - sp:subject 71 + ] [ sp:object
72 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 72 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
73 - ] 73 + ] ;
74 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 74 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
75 - sp:predicate rdf:type ; 75 + sp:subject
76 - sp:subject 76 + [ sp:varName "dailyDrillingActivity"^^xsd:string
77 - [ sp:varName "wellBore"^^xsd:string 77 + ]
78 - ] 78 + ] [ sp:object
79 - ] [ sp:object 79 + [ sp:varName "wellBore"^^xsd:string
80 - [ sp:varName "wellBore"^^xsd:string 80 + ] ;
81 - ] ; 81 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
82 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 82 + sp:subject
83 - sp:subject 83 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
84 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 84 + ]
85 - ] 85 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
86 - ] [ sp:object 86 + sp:predicate rdf:type ;
87 - [ sp:varName "nameWellBore"^^xsd:string 87 + sp:subject
88 - ] ; 88 + [ sp:varName "wellBore"^^xsd:string
89 - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; 89 + ]
90 - sp:subject 90 + ] [ sp:object
91 - [ sp:varName "wellBore"^^xsd:string 91 + [ sp:varName "well"^^xsd:string
92 - ] 92 + ] ;
93 - ] [ sp:object 93 + sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
94 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 94 + sp:subject
95 - ] ; 95 + [ sp:varName "wellBore"^^xsd:string
96 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 96 + ]
97 - sp:subject 97 + ] [ rdf:type sp:Bind ;
98 - [ sp:varName "dailyDrillingActivity"^^xsd:string 98 + sp:expression
99 - ] 99 + [ rdf:type ep-spin-lib:normalizeString ;
100 - ] [ sp:object _:b1 ; 100 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
101 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; 101 + ]
102 - sp:subject 102 + ] ;
103 - [ sp:varName "dailyDrillingActivity"^^xsd:string 103 + sp:variable
104 - ] 104 + [ sp:varName "normalizedWellBoreName"^^xsd:string
105 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; 105 + ]
106 - sp:predicate rdf:type ; 106 + ] [ rdf:type sp:Bind ;
107 - sp:subject _:b1 107 + sp:expression
108 - ] [ sp:object 108 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
109 - [ sp:varName "extendedReportContent"^^xsd:string 109 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
110 - ] ; 110 + ] ;
111 - sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; 111 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
112 - sp:subject _:b1 112 + ]
113 - ] [ sp:object 113 + ] ;
114 - [ sp:varName "dTimExtendedReport"^^xsd:string 114 + sp:variable
115 - ] ; 115 + [ sp:varName "dailyDrillingActivity"^^xsd:string
116 - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 116 + ]
117 - sp:subject _:b1 117 + ])
118 - ]) ; 118 + ] ;
119 - sp:where ([ sp:object 119 + spin:rule
120 - [ sp:varName "nameWellBore"^^xsd:string 120 + [ rdf:type sp:Construct ;
121 - ] ;
122 - sp:predicate ep-spin-lib:nameWellbore ;
123 - sp:subject spin:_this
124 - ] [ sp:object
125 - [ sp:varName "dTimStart"^^xsd:string
126 - ] ;
127 - sp:predicate ddr:dTimStart ;
128 - sp:subject spin:_this
129 - ] [ sp:object
130 - [ sp:varName "dTimEnd"^^xsd:string
131 - ] ;
132 - sp:predicate ddr:dTimEnd ;
133 - sp:subject spin:_this
134 - ] [ sp:object
135 - [ sp:varName "createDate"^^xsd:string
136 - ] ;
137 - sp:predicate ddr:createDate ;
138 - sp:subject spin:_this
139 - ] [ rdf:type sp:Optional ;
140 - sp:elements ([ sp:object
141 - [ sp:varName "extendedReport"^^xsd:string
142 - ] ;
143 - sp:predicate ddr:extendedReportRef ;
144 - sp:subject spin:_this
145 - ] [ sp:object
146 - [ sp:varName "extendedReportContent"^^xsd:string
147 - ] ;
148 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
149 - sp:subject
150 - [ sp:varName "extendedReport"^^xsd:string
151 - ]
152 - ] [ rdf:type sp:Optional ;
153 - sp:elements ([ sp:object
154 - [ sp:varName "dTimExtendedReport"^^xsd:string
155 - ] ;
156 - sp:predicate ddr:dTim ;
157 - sp:subject
158 - [ sp:varName "extendedReport"^^xsd:string
159 - ]
160 - ])
161 - ])
162 - ] [ rdf:type sp:Bind ;
163 - sp:expression
164 - [ rdf:type ep-spin-lib:normalizeString ;
165 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
166 - ]
167 - ] ;
168 - sp:variable
169 - [ sp:varName "normalizedWellBoreName"^^xsd:string
170 - ]
171 - ] [ rdf:type sp:Bind ;
172 - sp:expression
173 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
174 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
175 - ] ;
176 - sp:arg2 [ sp:varName "createDate"^^xsd:string
177 - ]
178 - ] ;
179 - sp:variable
180 - [ sp:varName "dailyDrillingReport"^^xsd:string
181 - ]
182 - ] [ rdf:type sp:Bind ;
183 - sp:expression
184 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
185 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
186 - ] ;
187 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
188 - ]
189 - ] ;
190 - sp:variable
191 - [ sp:varName "dailyDrillingActivity"^^xsd:string
192 - ]
193 - ] [ rdf:type sp:Bind ;
194 - sp:expression
195 - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
196 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
197 - ] ;
198 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
199 - ] ;
200 - sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
201 - ]
202 - ] ;
203 - sp:variable
204 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
205 - ]
206 - ] [ rdf:type sp:Bind ;
207 - sp:expression
208 - [ rdf:type rhspin:wellBoreByName ;
209 - arg:wellBoreName
210 - [ rdf:type xsd:string ;
211 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
212 - ]
213 - ]
214 - ] ;
215 - sp:variable
216 - [ sp:varName "wellBore"^^xsd:string
217 - ]
218 - ])
219 - ] ;
220 - spin:rule
221 - [ rdf:type sp:Construct ;
222 rdfs:comment """STEP 103a Set name of DailyDrillingReport as label 121 rdfs:comment """STEP 103a Set name of DailyDrillingReport as label
223 -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; 122 +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
224 - sp:templates ([ sp:object 123 + sp:templates ([ sp:object
225 - [ sp:varName "nameDailyDrillingReport"^^xsd:string 124 + [ sp:varName "nameDailyDrillingReport"^^xsd:string
226 - ] ; 125 + ] ;
227 - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; 126 + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
228 - sp:subject 127 + sp:subject
229 - [ sp:varName "dailyDrillingReport"^^xsd:string 128 + [ sp:varName "dailyDrillingReport"^^xsd:string
230 - ] 129 + ]
231 - ]) ; 130 + ]) ;
232 - sp:where ([ sp:object 131 + sp:where ([ sp:object
233 - [ sp:varName "nameWellBore"^^xsd:string 132 + [ sp:varName "nameWellBore"^^xsd:string
234 - ] ; 133 + ] ;
235 - sp:predicate ep-spin-lib:nameWellbore ; 134 + sp:predicate ep-spin-lib:nameWellbore ;
236 - sp:subject spin:_this 135 + sp:subject spin:_this
237 - ] [ sp:object 136 + ] [ sp:object
238 - [ sp:varName "nameDailyDrillingReport"^^xsd:string 137 + [ sp:varName "nameDailyDrillingReport"^^xsd:string
239 - ] ; 138 + ] ;
240 - sp:predicate ddr:name ; 139 + sp:predicate ddr:name ;
241 - sp:subject spin:_this 140 + sp:subject spin:_this
242 - ] [ sp:object 141 + ] [ sp:object
243 - [ sp:varName "createDate"^^xsd:string 142 + [ sp:varName "createDate"^^xsd:string
244 - ] ; 143 + ] ;
245 - sp:predicate ddr:createDate ; 144 + sp:predicate ddr:createDate ;
246 - sp:subject spin:_this 145 + sp:subject spin:_this
247 - ] [ rdf:type sp:Bind ; 146 + ] [ rdf:type sp:Bind ;
248 - sp:expression 147 + sp:expression
249 - [ rdf:type ep-spin-lib:normalizeString ; 148 + [ rdf:type ep-spin-lib:normalizeString ;
250 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 149 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
251 - ] 150 + ]
252 - ] ; 151 + ] ;
253 - sp:variable 152 + sp:variable
254 - [ sp:varName "normalizedWellBoreName"^^xsd:string 153 + [ sp:varName "normalizedWellBoreName"^^xsd:string
255 - ] 154 + ]
256 - ] [ rdf:type sp:Bind ; 155 + ] [ rdf:type sp:Bind ;
257 - sp:expression 156 + sp:expression
258 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 157 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
259 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 158 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
260 - ] ; 159 + ] ;
261 - sp:arg2 [ sp:varName "createDate"^^xsd:string 160 + sp:arg2 [ sp:varName "createDate"^^xsd:string
262 - ] 161 + ]
263 - ] ; 162 + ] ;
264 - sp:variable 163 + sp:variable
265 - [ sp:varName "dailyDrillingReport"^^xsd:string 164 + [ sp:varName "dailyDrillingReport"^^xsd:string
266 - ] 165 + ]
267 - ]) 166 + ])
268 - ] ; 167 + ] ;
269 - spin:rule 168 + spin:rule
270 - [ rdf:type sp:Construct ; 169 + [ rdf:type sp:Construct ;
271 - rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; 170 + rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ;
272 - sp:templates ([ sp:object 171 + sp:templates ([ sp:object
273 - [ sp:varName "dTimEnd"^^xsd:string 172 + [ sp:varName "dTimEnd"^^xsd:string
274 - ] ; 173 + ] ;
275 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 174 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
276 - sp:subject 175 + sp:subject
277 - [ sp:varName "dailyDrillingActivity"^^xsd:string 176 + [ sp:varName "dailyDrillingActivity"^^xsd:string
278 - ] 177 + ]
279 - ]) ; 178 + ]) ;
280 - sp:where ([ sp:object 179 + sp:where ([ sp:object
281 - [ sp:varName "nameWellBore"^^xsd:string 180 + [ sp:varName "nameWellBore"^^xsd:string
282 - ] ; 181 + ] ;
283 - sp:predicate ep-spin-lib:nameWellbore ; 182 + sp:predicate ep-spin-lib:nameWellbore ;
284 - sp:subject spin:_this 183 + sp:subject spin:_this
285 - ] [ sp:object 184 + ] [ sp:object
286 - [ sp:varName "dTimStart"^^xsd:string 185 + [ sp:varName "dTimStart"^^xsd:string
287 - ] ; 186 + ] ;
288 - sp:predicate ddr:dTimStart ; 187 + sp:predicate ddr:dTimStart ;
289 - sp:subject spin:_this 188 + sp:subject spin:_this
290 - ] [ sp:object 189 + ] [ sp:object
291 - [ sp:varName "dTimEnd"^^xsd:string 190 + [ sp:varName "dTimEnd"^^xsd:string
292 - ] ; 191 + ] ;
293 - sp:predicate ddr:dTimEnd ; 192 + sp:predicate ddr:dTimEnd ;
294 - sp:subject spin:_this 193 + sp:subject spin:_this
295 - ] [ rdf:type sp:Bind ; 194 + ] [ rdf:type sp:Bind ;
296 - sp:expression 195 + sp:expression
297 - [ rdf:type ep-spin-lib:normalizeString ; 196 + [ rdf:type ep-spin-lib:normalizeString ;
298 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 197 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
299 - ] 198 + ]
300 - ] ; 199 + ] ;
301 - sp:variable 200 + sp:variable
302 - [ sp:varName "normalizedWellBoreName"^^xsd:string 201 + [ sp:varName "normalizedWellBoreName"^^xsd:string
303 - ] 202 + ]
304 - ] [ rdf:type sp:Bind ; 203 + ] [ rdf:type sp:Bind ;
305 - sp:expression 204 + sp:expression
306 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 205 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
307 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 206 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
308 - ] ; 207 + ] ;
309 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 208 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
310 - ] 209 + ]
311 - ] ; 210 + ] ;
312 - sp:variable 211 + sp:variable
313 - [ sp:varName "dailyDrillingActivity"^^xsd:string 212 + [ sp:varName "dailyDrillingActivity"^^xsd:string
314 - ] 213 + ]
315 - ]) 214 + ])
316 - ] ; 215 + ] ;
317 - spin:rule 216 + spin:rule
318 - [ rdf:type sp:Construct ; 217 + [ rdf:type sp:Construct ;
319 rdfs:comment """STEP 105 218 rdfs:comment """STEP 105
320 -Classify a DailyDrillingReport"""^^xsd:string ; 219 +Classify a DailyDrillingReport"""^^xsd:string ;
321 - sp:templates ([ sp:object 220 + sp:templates ([ sp:object
322 - [ sp:varName "dailyDrillingReportType"^^xsd:string 221 + [ sp:varName "dailyDrillingReportType"^^xsd:string
323 - ] ; 222 + ] ;
324 - sp:predicate rdf:type ; 223 + sp:predicate rdf:type ;
325 - sp:subject 224 + sp:subject
326 - [ sp:varName "dailyDrillingReport"^^xsd:string 225 + [ sp:varName "dailyDrillingReport"^^xsd:string
327 - ] 226 + ]
328 - ]) ; 227 + ]) ;
329 - sp:where ([ sp:object 228 + sp:where ([ sp:object
330 - [ sp:varName "nameWellBore"^^xsd:string 229 + [ sp:varName "nameWellBore"^^xsd:string
331 - ] ; 230 + ] ;
332 - sp:predicate ep-spin-lib:nameWellbore ; 231 + sp:predicate ep-spin-lib:nameWellbore ;
333 - sp:subject spin:_this 232 + sp:subject spin:_this
334 - ] [ sp:object 233 + ] [ sp:object
335 - [ sp:varName "createDate"^^xsd:string 234 + [ sp:varName "createDate"^^xsd:string
336 - ] ; 235 + ] ;
337 - sp:predicate ddr:createDate ; 236 + sp:predicate ddr:createDate ;
338 - sp:subject spin:_this 237 + sp:subject spin:_this
339 - ] [ sp:object 238 + ] [ sp:object
340 - [ sp:varName "versionKind"^^xsd:string 239 + [ sp:varName "versionKind"^^xsd:string
341 - ] ; 240 + ] ;
342 - sp:predicate ddr:versionKindRef ; 241 + sp:predicate ddr:versionKindRef ;
343 - sp:subject spin:_this 242 + sp:subject spin:_this
344 - ] [ rdf:type sp:Bind ; 243 + ] [ rdf:type sp:Bind ;
345 - sp:expression 244 + sp:expression
346 - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; 245 + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
347 - sp:arg1 [ sp:varName "versionKind"^^xsd:string 246 + sp:arg1 [ sp:varName "versionKind"^^xsd:string
348 - ] 247 + ]
349 - ] ; 248 + ] ;
350 - sp:variable 249 + sp:variable
351 - [ sp:varName "dailyDrillingReportType"^^xsd:string 250 + [ sp:varName "dailyDrillingReportType"^^xsd:string
352 - ] 251 + ]
353 - ] [ rdf:type sp:Bind ; 252 + ] [ rdf:type sp:Bind ;
354 - sp:expression 253 + sp:expression
355 - [ rdf:type ep-spin-lib:normalizeString ; 254 + [ rdf:type ep-spin-lib:normalizeString ;
356 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 255 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
357 - ] 256 + ]
358 - ] ; 257 + ] ;
359 - sp:variable 258 + sp:variable
360 - [ sp:varName "normalizedWellBoreName"^^xsd:string 259 + [ sp:varName "normalizedWellBoreName"^^xsd:string
361 - ] 260 + ]
362 - ] [ rdf:type sp:Bind ; 261 + ] [ rdf:type sp:Bind ;
363 - sp:expression 262 + sp:expression
364 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 263 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
365 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 264 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
366 - ] ; 265 + ] ;
367 - sp:arg2 [ sp:varName "createDate"^^xsd:string 266 + sp:arg2 [ sp:varName "createDate"^^xsd:string
368 - ] 267 + ]
369 - ] ; 268 + ] ;
370 - sp:variable 269 + sp:variable
371 - [ sp:varName "dailyDrillingReport"^^xsd:string 270 + [ sp:varName "dailyDrillingReport"^^xsd:string
372 - ] 271 + ]
373 - ]) 272 + ])
374 - ] ; 273 + ] ;
375 - spin:rule 274 + spin:rule
376 - [ rdf:type sp:Construct ; 275 + [ rdf:type sp:Construct ;
377 - rdfs:comment "STEP 106 Create Well"^^xsd:string ; 276 + rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore
378 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 277 +Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
379 - sp:predicate rdf:type ; 278 +Optional data - extendedReport
380 - sp:subject 279 +replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
381 - [ sp:varName "well"^^xsd:string 280 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
382 - ] 281 + sp:predicate rdf:type ;
383 - ] [ sp:object 282 + sp:subject _:b2
384 - [ sp:varName "nameWell"^^xsd:string 283 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
385 - ] ; 284 + sp:predicate rdf:type ;
386 - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; 285 + sp:subject _:b3
387 - sp:subject 286 + ] [ sp:object _:b3 ;
388 - [ sp:varName "well"^^xsd:string 287 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
389 - ] 288 + sp:subject _:b2
390 - ] [ sp:object _:b2 ; 289 + ] [ sp:object _:b4 ;
391 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; 290 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
392 - sp:subject 291 + sp:subject _:b2
393 - [ sp:varName "dailyDrillingActivity"^^xsd:string 292 + ] [ sp:object _:b5 ;
394 - ] 293 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
395 - ] [ sp:object 294 + sp:subject _:b3
396 - [ sp:varName "well"^^xsd:string 295 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
397 - ] ; 296 + sp:predicate rdf:type ;
398 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 297 + sp:subject _:b6
399 - sp:subject _:b2 298 + ] [ sp:object _:b7 ;
400 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; 299 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
401 - sp:predicate rdf:type ; 300 + sp:subject _:b6
402 - sp:subject _:b2 301 + ] [ sp:object _:b8 ;
403 - ] [ sp:object 302 + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
404 - [ sp:varName "wellBore"^^xsd:string 303 + sp:subject _:b7
405 - ] ; 304 + ] [ sp:object _:b6 ;
406 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 305 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
407 - sp:subject 306 + sp:subject _:b3
408 - [ sp:varName "well"^^xsd:string 307 + ] [ sp:object _:b9 ;
409 - ] 308 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
410 - ]) ; 309 + sp:subject _:b3
411 - sp:where ([ sp:object 310 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
412 - [ sp:varName "nameWellBore"^^xsd:string 311 + sp:predicate rdf:type ;
413 - ] ; 312 + sp:subject _:b9
414 - sp:predicate ep-spin-lib:nameWellbore ; 313 + ] [ sp:object _:b10 ;
415 - sp:subject spin:_this 314 + sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
416 - ] [ sp:object 315 + sp:subject _:b9
417 - [ sp:varName "nameWell"^^xsd:string 316 + ] [ sp:object _:b11 ;
418 - ] ; 317 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
419 - sp:predicate ep-spin-lib:nameWell ; 318 + sp:subject _:b9
420 - sp:subject spin:_this 319 + ]) ;
421 - ] [ sp:object 320 + sp:where ([ sp:object _:b8 ;
422 - [ sp:varName "dTimStart"^^xsd:string 321 + sp:predicate ep-spin-lib:nameWellbore ;
423 - ] ; 322 + sp:subject spin:_this
424 - sp:predicate ddr:dTimStart ; 323 + ] [ sp:object _:b5 ;
425 - sp:subject spin:_this 324 + sp:predicate ddr:dTimStart ;
426 - ] [ sp:object 325 + sp:subject spin:_this
427 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 326 + ] [ sp:object _:b12 ;
428 - ] ; 327 + sp:predicate ddr:dTimEnd ;
429 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 328 + sp:subject spin:_this
430 - sp:subject 329 + ] [ sp:object _:b4 ;
431 - [ sp:varName "dailyDrillingActivity"^^xsd:string 330 + sp:predicate ddr:createDate ;
432 - ] 331 + sp:subject spin:_this
433 - ] [ sp:object 332 + ] [ rdf:type sp:Optional ;
434 - [ sp:varName "wellBore"^^xsd:string 333 + sp:elements ([ sp:object _:b13 ;
435 - ] ; 334 + sp:predicate ddr:extendedReportRef ;
436 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 335 + sp:subject spin:_this
437 - sp:subject 336 + ] [ sp:object _:b10 ;
438 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 337 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
439 - ] 338 + sp:subject _:b13
440 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 339 + ] [ rdf:type sp:Optional ;
441 - sp:predicate rdf:type ; 340 + sp:elements ([ sp:object _:b11 ;
442 - sp:subject 341 + sp:predicate ddr:dTim ;
443 - [ sp:varName "wellBore"^^xsd:string 342 + sp:subject _:b13
444 - ] 343 + ])
445 - ] [ rdf:type sp:Bind ; 344 + ])
446 - sp:expression 345 + ] [ rdf:type sp:Bind ;
447 - [ rdf:type ep-spin-lib:normalizeString ; 346 + sp:expression
448 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 347 + [ rdf:type ep-spin-lib:normalizeString ;
449 - ] 348 + sp:arg1 _:b8
450 - ] ; 349 + ] ;
451 - sp:variable 350 + sp:variable _:b14
452 - [ sp:varName "normalizedWellBoreName"^^xsd:string 351 + ] [ rdf:type sp:Bind ;
453 - ] 352 + sp:expression
454 - ] [ rdf:type sp:Bind ; 353 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
455 - sp:expression 354 + sp:arg1 _:b14 ;
456 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 355 + sp:arg2 _:b4
457 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 356 + ] ;
458 - ] ; 357 + sp:variable _:b2
459 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 358 + ] [ rdf:type sp:Bind ;
460 - ] 359 + sp:expression
461 - ] ; 360 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
462 - sp:variable 361 + sp:arg1 _:b14 ;
463 - [ sp:varName "dailyDrillingActivity"^^xsd:string 362 + sp:arg2 _:b5
464 - ] 363 + ] ;
465 - ] [ rdf:type sp:Bind ; 364 + sp:variable _:b3
466 - sp:expression 365 + ] [ rdf:type sp:Bind ;
467 - [ rdf:type ep-spin-lib:normalizeString ; 366 + sp:expression
468 - sp:arg1 [ sp:varName "nameWell"^^xsd:string 367 + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
469 - ] 368 + sp:arg1 _:b14 ;
470 - ] ; 369 + sp:arg2 _:b5 ;
471 - sp:variable 370 + sp:arg3 _:b12
472 - [ sp:varName "normalizedWellName"^^xsd:string 371 + ] ;
473 - ] 372 + sp:variable _:b6
474 - ] [ rdf:type sp:Bind ; 373 + ] [ rdf:type sp:Bind ;
475 - sp:expression 374 + sp:expression
476 - [ rdf:type rhspin:wellByName ; 375 + [ rdf:type rhspin:wellBoreByName ;
477 - arg:wellName 376 + arg:wellBoreName
478 - [ sp:varName "normalizedWellName"^^xsd:string 377 + [ rdf:type xsd:string ;
479 - ] 378 + sp:arg1 _:b8
480 - ] ; 379 + ]
481 - sp:variable 380 + ] ;
482 - [ sp:varName "well"^^xsd:string 381 + sp:variable _:b7
483 - ] 382 + ])
484 - ]) 383 + ] .
485 - ] . 384 +
385 +_:b2 sp:varName "dailyDrillingReport"^^xsd:string .
386 +
387 +_:b3 sp:varName "dailyDrillingActivity"^^xsd:string .
388 +
389 +_:b4 sp:varName "createDate"^^xsd:string .
390 +
391 +_:b5 sp:varName "dTimStart"^^xsd:string .
392 +
393 +_:b6 sp:varName "temporalPartOfAWellBore"^^xsd:string .
394 +
395 +_:b7 sp:varName "wellBore"^^xsd:string .
396 +
397 +_:b8 sp:varName "nameWellBore"^^xsd:string .
398 +
399 +_:b10
400 + sp:varName "extendedReportContent"^^xsd:string .
401 +
402 +_:b11
403 + sp:varName "dTimExtendedReport"^^xsd:string .
404 +
405 +_:b12
406 + sp:varName "dTimEnd"^^xsd:string .
407 +
408 +_:b13
409 + sp:varName "extendedReport"^^xsd:string .
410 +
411 +_:b14
412 + sp:varName "normalizedWellBoreName"^^xsd:string .
......