David Price

Started Well Test table work

...@@ -315,6 +315,129 @@ dpr-tables:WellInformation ...@@ -315,6 +315,129 @@ dpr-tables:WellInformation
315 ] ; 315 ] ;
316 rhspin:tableHeaders ("Description"^^xsd:string "Oil Net m3"^^xsd:string "Choke %"^^xsd:string "Prod Hours"^^xsd:string) . 316 rhspin:tableHeaders ("Description"^^xsd:string "Oil Net m3"^^xsd:string "Choke %"^^xsd:string "Prod Hours"^^xsd:string) .
317 317
318 +dpr-tables:WellTest
319 + rdf:type rhspin:TableTemplate ;
320 + rdfs:label "Well Test8"^^xsd:string ;
321 + rdfs:subClassOf rhspin:DPRTableTemplates ;
322 + spin:body
323 + [ rdf:type sp:Select ;
324 + sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
325 + ] [ sp:varName "activityStart"^^xsd:string
326 + ]) ;
327 + sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
328 + ] [ sp:varName "wellTestTypeName"^^xsd:string
329 + ] [ sp:varName "activityStart"^^xsd:string
330 + ] [ sp:varName "activityFinish"^^xsd:string
331 + ] [ sp:varName "wellTestReasonTypeName"^^xsd:string
332 + ]) ;
333 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
334 + sp:predicate rdf:type ;
335 + sp:subject
336 + [ sp:varName "productionReport"^^xsd:string
337 + ]
338 + ] [ sp:object
339 + [ sp:varName "productionReport"^^xsd:string
340 + ] ;
341 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
342 + sp:subject
343 + [ sp:varName "wellTestReport"^^xsd:string
344 + ]
345 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#WellTestReport> ;
346 + sp:predicate rdf:type ;
347 + sp:subject
348 + [ sp:varName "wellTestReport"^^xsd:string
349 + ]
350 + ] [ sp:object
351 + [ sp:varName "wellTest"^^xsd:string
352 + ] ;
353 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
354 + sp:subject
355 + [ sp:varName "wellTestReport"^^xsd:string
356 + ]
357 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
358 + sp:predicate rdf:type ;
359 + sp:subject
360 + [ sp:varName "wellTest"^^xsd:string
361 + ]
362 + ] [ sp:object
363 + [ sp:varName "wellborePart"^^xsd:string
364 + ] ;
365 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
366 + sp:subject
367 + [ sp:varName "wellTest"^^xsd:string
368 + ]
369 + ] [ sp:object
370 + [ sp:varName "wellbore"^^xsd:string
371 + ] ;
372 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
373 + sp:subject
374 + [ sp:varName "wellborePart"^^xsd:string
375 + ]
376 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
377 + sp:predicate rdf:type ;
378 + sp:subject
379 + [ sp:varName "wellbore"^^xsd:string
380 + ]
381 + ] [ sp:object
382 + [ sp:varName "wellboreName"^^xsd:string
383 + ] ;
384 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
385 + sp:subject
386 + [ sp:varName "wellbore"^^xsd:string
387 + ]
388 + ] [ rdf:type sp:Optional ;
389 + sp:elements ([ sp:object
390 + [ sp:varName "activityStart"^^xsd:string
391 + ] ;
392 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
393 + sp:subject
394 + [ sp:varName "wellTest"^^xsd:string
395 + ]
396 + ])
397 + ] [ sp:object
398 + [ sp:varName "wellTestType"^^xsd:string
399 + ] ;
400 + sp:predicate rdf:type ;
401 + sp:subject
402 + [ sp:varName "wellTest"^^xsd:string
403 + ]
404 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
405 + sp:predicate rdf:type ;
406 + sp:subject
407 + [ sp:varName "wellTestType"^^xsd:string
408 + ]
409 + ] [ sp:object
410 + [ sp:varName "wellTestTypeName"^^xsd:string
411 + ] ;
412 + sp:predicate rdfs:label ;
413 + sp:subject
414 + [ sp:varName "wellTestType"^^xsd:string
415 + ]
416 + ] [ rdf:type sp:Optional ;
417 + sp:elements ([ sp:object
418 + [ sp:varName "wellTestReasonType"^^xsd:string
419 + ] ;
420 + sp:predicate rdf:type ;
421 + sp:subject
422 + [ sp:varName "wellTest"^^xsd:string
423 + ]
424 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#WellTestReasonType> ;
425 + sp:predicate rdf:type ;
426 + sp:subject
427 + [ sp:varName "wellTestReasonType"^^xsd:string
428 + ]
429 + ] [ sp:object
430 + [ sp:varName "wellTestReasonTypeName"^^xsd:string
431 + ] ;
432 + sp:predicate rdfs:label ;
433 + sp:subject
434 + [ sp:varName "wellTestReasonType"^^xsd:string
435 + ]
436 + ])
437 + ])
438 + ] ;
439 + rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Reason"^^xsd:string) .
440 +
318 _:b2 sp:varName "dailyProductionActivity"^^xsd:string . 441 _:b2 sp:varName "dailyProductionActivity"^^xsd:string .
319 442
320 _:b1 sp:varName "oilNet"^^xsd:string . 443 _:b1 sp:varName "oilNet"^^xsd:string .
......
...@@ -51,7 +51,7 @@ WHERE { ...@@ -51,7 +51,7 @@ WHERE {
51 51
52 52
53 53
54 - 54 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />
55 55
56 56
57 </ui:group> 57 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......