David Price

removed setting human readable name property

...@@ -118,55 +118,6 @@ ddr:Obj_drillReport ...@@ -118,55 +118,6 @@ ddr:Obj_drillReport
118 ] ; 118 ] ;
119 spin:rule 119 spin:rule
120 [ rdf:type sp:Construct ; 120 [ rdf:type sp:Construct ;
121 - rdfs:comment """STEP 103a Set name of DailyDrillingReport as label
122 -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
123 - sp:templates ([ sp:object
124 - [ sp:varName "nameDailyDrillingReport"^^xsd:string
125 - ] ;
126 - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
127 - sp:subject
128 - [ sp:varName "dailyDrillingReport"^^xsd:string
129 - ]
130 - ]) ;
131 - sp:where ([ sp:object
132 - [ sp:varName "nameWellBore"^^xsd:string
133 - ] ;
134 - sp:predicate ep-spin-lib:nameWellbore ;
135 - sp:subject spin:_this
136 - ] [ sp:object
137 - [ sp:varName "nameDailyDrillingReport"^^xsd:string
138 - ] ;
139 - sp:predicate ddr:name ;
140 - sp:subject spin:_this
141 - ] [ sp:object
142 - [ sp:varName "createDate"^^xsd:string
143 - ] ;
144 - sp:predicate ddr:createDate ;
145 - sp:subject spin:_this
146 - ] [ rdf:type sp:Bind ;
147 - sp:expression
148 - [ rdf:type ep-spin-lib:normalizeString ;
149 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
150 - ]
151 - ] ;
152 - sp:variable
153 - [ sp:varName "normalizedWellBoreName"^^xsd:string
154 - ]
155 - ] [ rdf:type sp:Bind ;
156 - sp:expression
157 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
158 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
159 - ] ;
160 - sp:arg2 [ sp:varName "createDate"^^xsd:string
161 - ]
162 - ] ;
163 - sp:variable
164 - [ sp:varName "dailyDrillingReport"^^xsd:string
165 - ]
166 - ])
167 - ] ;
168 - spin:rule
169 - [ rdf:type sp:Construct ;
170 rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; 121 rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ;
171 sp:templates ([ sp:object 122 sp:templates ([ sp:object
172 [ sp:varName "dTimEnd"^^xsd:string 123 [ sp:varName "dTimEnd"^^xsd:string
...@@ -279,134 +230,171 @@ Optional data - extendedReport ...@@ -279,134 +230,171 @@ Optional data - extendedReport
279 replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; 230 replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
280 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; 231 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
281 sp:predicate rdf:type ; 232 sp:predicate rdf:type ;
282 - sp:subject _:b2 233 + sp:subject
234 + [ sp:varName "dailyDrillingReport"^^xsd:string
235 + ]
283 ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; 236 ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
284 sp:predicate rdf:type ; 237 sp:predicate rdf:type ;
285 - sp:subject _:b3 238 + sp:subject
286 - ] [ sp:object _:b3 ; 239 + [ sp:varName "dailyDrillingActivity"^^xsd:string
240 + ]
241 + ] [ sp:object
242 + [ sp:varName "dailyDrillingActivity"^^xsd:string
243 + ] ;
287 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 244 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
288 - sp:subject _:b2 245 + sp:subject
289 - ] [ sp:object _:b4 ; 246 + [ sp:varName "dailyDrillingReport"^^xsd:string
247 + ]
248 + ] [ sp:object
249 + [ sp:varName "createDate"^^xsd:string
250 + ] ;
290 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 251 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
291 - sp:subject _:b2 252 + sp:subject
292 - ] [ sp:object _:b5 ; 253 + [ sp:varName "dailyDrillingReport"^^xsd:string
254 + ]
255 + ] [ sp:object
256 + [ sp:varName "dTimStart"^^xsd:string
257 + ] ;
293 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 258 sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
294 - sp:subject _:b3 259 + sp:subject
260 + [ sp:varName "dailyDrillingActivity"^^xsd:string
261 + ]
295 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; 262 ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
296 sp:predicate rdf:type ; 263 sp:predicate rdf:type ;
297 - sp:subject _:b6 264 + sp:subject
298 - ] [ sp:object _:b7 ; 265 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
266 + ]
267 + ] [ sp:object
268 + [ sp:varName "wellBore"^^xsd:string
269 + ] ;
299 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 270 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
300 - sp:subject _:b6 271 + sp:subject
301 - ] [ sp:object _:b8 ; 272 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
302 - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; 273 + ]
303 - sp:subject _:b7 274 + ] [ sp:object
304 - ] [ sp:object _:b6 ; 275 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
276 + ] ;
305 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 277 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
306 - sp:subject _:b3 278 + sp:subject
307 - ] [ sp:object _:b9 ; 279 + [ sp:varName "dailyDrillingActivity"^^xsd:string
280 + ]
281 + ] [ sp:object _:b2 ;
308 sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; 282 sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
309 - sp:subject _:b3 283 + sp:subject
284 + [ sp:varName "dailyDrillingActivity"^^xsd:string
285 + ]
310 ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; 286 ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
311 sp:predicate rdf:type ; 287 sp:predicate rdf:type ;
312 - sp:subject _:b9 288 + sp:subject _:b2
313 - ] [ sp:object _:b10 ; 289 + ] [ sp:object
290 + [ sp:varName "extendedReportContent"^^xsd:string
291 + ] ;
314 sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; 292 sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
315 - sp:subject _:b9 293 + sp:subject _:b2
316 - ] [ sp:object _:b11 ; 294 + ] [ sp:object
295 + [ sp:varName "dTimExtendedReport"^^xsd:string
296 + ] ;
317 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 297 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
318 - sp:subject _:b9 298 + sp:subject _:b2
319 ]) ; 299 ]) ;
320 - sp:where ([ sp:object _:b8 ; 300 + sp:where ([ sp:object
301 + [ sp:varName "nameWellBore"^^xsd:string
302 + ] ;
321 sp:predicate ep-spin-lib:nameWellbore ; 303 sp:predicate ep-spin-lib:nameWellbore ;
322 sp:subject spin:_this 304 sp:subject spin:_this
323 - ] [ sp:object _:b5 ; 305 + ] [ sp:object
306 + [ sp:varName "dTimStart"^^xsd:string
307 + ] ;
324 sp:predicate ddr:dTimStart ; 308 sp:predicate ddr:dTimStart ;
325 sp:subject spin:_this 309 sp:subject spin:_this
326 - ] [ sp:object _:b12 ; 310 + ] [ sp:object
311 + [ sp:varName "dTimEnd"^^xsd:string
312 + ] ;
327 sp:predicate ddr:dTimEnd ; 313 sp:predicate ddr:dTimEnd ;
328 sp:subject spin:_this 314 sp:subject spin:_this
329 - ] [ sp:object _:b4 ; 315 + ] [ sp:object
316 + [ sp:varName "createDate"^^xsd:string
317 + ] ;
330 sp:predicate ddr:createDate ; 318 sp:predicate ddr:createDate ;
331 sp:subject spin:_this 319 sp:subject spin:_this
332 ] [ rdf:type sp:Optional ; 320 ] [ rdf:type sp:Optional ;
333 - sp:elements ([ sp:object _:b13 ; 321 + sp:elements ([ sp:object
322 + [ sp:varName "extendedReport"^^xsd:string
323 + ] ;
334 sp:predicate ddr:extendedReportRef ; 324 sp:predicate ddr:extendedReportRef ;
335 sp:subject spin:_this 325 sp:subject spin:_this
336 - ] [ sp:object _:b10 ; 326 + ] [ sp:object
327 + [ sp:varName "extendedReportContent"^^xsd:string
328 + ] ;
337 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 329 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
338 - sp:subject _:b13 330 + sp:subject
331 + [ sp:varName "extendedReport"^^xsd:string
332 + ]
339 ] [ rdf:type sp:Optional ; 333 ] [ rdf:type sp:Optional ;
340 - sp:elements ([ sp:object _:b11 ; 334 + sp:elements ([ sp:object
335 + [ sp:varName "dTimExtendedReport"^^xsd:string
336 + ] ;
341 sp:predicate ddr:dTim ; 337 sp:predicate ddr:dTim ;
342 - sp:subject _:b13 338 + sp:subject
339 + [ sp:varName "extendedReport"^^xsd:string
340 + ]
343 ]) 341 ])
344 ]) 342 ])
345 ] [ rdf:type sp:Bind ; 343 ] [ rdf:type sp:Bind ;
346 sp:expression 344 sp:expression
347 [ rdf:type ep-spin-lib:normalizeString ; 345 [ rdf:type ep-spin-lib:normalizeString ;
348 - sp:arg1 _:b8 346 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
347 + ]
349 ] ; 348 ] ;
350 - sp:variable _:b14 349 + sp:variable
350 + [ sp:varName "normalizedWellBoreName"^^xsd:string
351 + ]
351 ] [ rdf:type sp:Bind ; 352 ] [ rdf:type sp:Bind ;
352 sp:expression 353 sp:expression
353 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 354 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
354 - sp:arg1 _:b14 ; 355 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
355 - sp:arg2 _:b4 356 + ] ;
357 + sp:arg2 [ sp:varName "createDate"^^xsd:string
358 + ]
356 ] ; 359 ] ;
357 - sp:variable _:b2 360 + sp:variable
361 + [ sp:varName "dailyDrillingReport"^^xsd:string
362 + ]
358 ] [ rdf:type sp:Bind ; 363 ] [ rdf:type sp:Bind ;
359 sp:expression 364 sp:expression
360 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 365 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
361 - sp:arg1 _:b14 ; 366 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
362 - sp:arg2 _:b5 367 + ] ;
368 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
369 + ]
363 ] ; 370 ] ;
364 - sp:variable _:b3 371 + sp:variable
372 + [ sp:varName "dailyDrillingActivity"^^xsd:string
373 + ]
365 ] [ rdf:type sp:Bind ; 374 ] [ rdf:type sp:Bind ;
366 sp:expression 375 sp:expression
367 [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; 376 [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
368 - sp:arg1 _:b14 ; 377 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
369 - sp:arg2 _:b5 ; 378 + ] ;
370 - sp:arg3 _:b12 379 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
380 + ] ;
381 + sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
382 + ]
371 ] ; 383 ] ;
372 - sp:variable _:b6 384 + sp:variable
385 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
386 + ]
373 ] [ rdf:type sp:Bind ; 387 ] [ rdf:type sp:Bind ;
374 sp:expression 388 sp:expression
375 [ rdf:type rhspin:wellBoreByName ; 389 [ rdf:type rhspin:wellBoreByName ;
376 arg:wellBoreName 390 arg:wellBoreName
377 [ rdf:type xsd:string ; 391 [ rdf:type xsd:string ;
378 - sp:arg1 _:b8 392 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
393 + ]
379 ] 394 ]
380 ] ; 395 ] ;
381 - sp:variable _:b7 396 + sp:variable
397 + [ sp:varName "wellBore"^^xsd:string
398 + ]
382 ]) 399 ])
383 ] . 400 ] .
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 .
......