David Price

Added starting HSE tables

...@@ -283,6 +283,275 @@ dpr-tables:FluidSamples ...@@ -283,6 +283,275 @@ dpr-tables:FluidSamples
283 ] ; 283 ] ;
284 rhspin:tableHeaders ("Sample Type"^^xsd:string "Aquisition Date"^^xsd:string "Sampling Facility"^^xsd:string "Fluid Sample Name"^^xsd:string) . 284 rhspin:tableHeaders ("Sample Type"^^xsd:string "Aquisition Date"^^xsd:string "Sampling Facility"^^xsd:string "Fluid Sample Name"^^xsd:string) .
285 285
286 +dpr-tables:HSEInformation
287 + rdf:type rhspin:TableTemplate ;
288 + rdfs:label "HSE Information"^^xsd:string ;
289 + rdfs:subClassOf rhspin:DPRTableTemplates ;
290 + spin:body
291 + [ rdf:type sp:Select ;
292 + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
293 + ] [ sp:varName "operationType"^^xsd:string
294 + ] [ sp:varName "definingType"^^xsd:string
295 + ] [ sp:varName "startedAt"^^xsd:string
296 + ] [ sp:varName "finishedAt"^^xsd:string
297 + ] [ sp:varName "safetyConsideration"^^xsd:string
298 + ] [ sp:varName "comment"^^xsd:string
299 + ]) ;
300 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
301 + sp:predicate rdf:type ;
302 + sp:subject
303 + [ sp:varName "report"^^xsd:string
304 + ]
305 + ] [ sp:object
306 + [ sp:varName "productionReport"^^xsd:string
307 + ] ;
308 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
309 + sp:subject
310 + [ sp:varName "productionOperationReport"^^xsd:string
311 + ]
312 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
313 + sp:predicate rdf:type ;
314 + sp:subject
315 + [ sp:varName "productionOperationReport"^^xsd:string
316 + ]
317 + ] [ sp:object
318 + [ sp:varName "temporalPartOfFacility"^^xsd:string
319 + ] ;
320 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
321 + sp:subject
322 + [ sp:varName "productionOperationReport"^^xsd:string
323 + ]
324 + ] [ sp:object
325 + [ sp:varName "productionFacility"^^xsd:string
326 + ] ;
327 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
328 + sp:subject
329 + [ sp:varName "temporalPartOfFacility"^^xsd:string
330 + ]
331 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
332 + sp:predicate rdf:type ;
333 + sp:subject
334 + [ sp:varName "productionFacility"^^xsd:string
335 + ]
336 + ] [ sp:object
337 + [ sp:varName "facilityName"^^xsd:string
338 + ] ;
339 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
340 + sp:subject
341 + [ sp:varName "productionFacility"^^xsd:string
342 + ]
343 + ] [ sp:object
344 + [ sp:varName "productionOperationReport"^^xsd:string
345 + ] ;
346 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
347 + sp:subject
348 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
349 + ]
350 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
351 + sp:predicate rdf:type ;
352 + sp:subject
353 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
354 + ]
355 + ] [ sp:object
356 + [ sp:varName "installationPart"^^xsd:string
357 + ] ;
358 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
359 + sp:subject
360 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
361 + ]
362 + ] [ sp:object
363 + [ sp:varName "installationPart"^^xsd:string
364 + ] ;
365 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
366 + sp:subject
367 + [ sp:varName "productionOperation"^^xsd:string
368 + ]
369 + ] [ rdf:type sp:Optional ;
370 + sp:elements ([ sp:object
371 + [ sp:varName "productionOperationPart"^^xsd:string
372 + ] ;
373 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
374 + sp:subject
375 + [ sp:varName "productionOperation"^^xsd:string
376 + ]
377 + ] [ sp:object
378 + [ sp:varName "productionOperationPartType"^^xsd:string
379 + ] ;
380 + sp:predicate rdf:type ;
381 + sp:subject
382 + [ sp:varName "productionOperationPart"^^xsd:string
383 + ]
384 + ] [ sp:object
385 + [ sp:varName "operationType"^^xsd:string
386 + ] ;
387 + sp:predicate rdfs:label ;
388 + sp:subject
389 + [ sp:varName "productionOperationPartType"^^xsd:string
390 + ]
391 + ] [ rdf:type sp:Optional ;
392 + sp:elements ([ sp:object
393 + [ sp:varName "startedAt"^^xsd:string
394 + ] ;
395 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
396 + sp:subject
397 + [ sp:varName "productionOperationPart"^^xsd:string
398 + ]
399 + ])
400 + ] [ rdf:type sp:Optional ;
401 + sp:elements ([ sp:object
402 + [ sp:varName "finishedAt"^^xsd:string
403 + ] ;
404 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
405 + sp:subject
406 + [ sp:varName "productionOperationPart"^^xsd:string
407 + ]
408 + ])
409 + ] [ rdf:type sp:Optional ;
410 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ;
411 + sp:predicate rdf:type ;
412 + sp:subject
413 + [ sp:varName "productionOperationPart"^^xsd:string
414 + ]
415 + ] [ sp:object
416 + [ sp:varName "safetyConsideration"^^xsd:string
417 + ] ;
418 + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
419 + sp:subject
420 + [ sp:varName "productionOperationPart"^^xsd:string
421 + ]
422 + ])
423 + ] [ rdf:type sp:Optional ;
424 + sp:elements ([ sp:object
425 + [ sp:varName "productionOperationPart"^^xsd:string
426 + ] ;
427 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
428 + sp:subject
429 + [ sp:varName "makeAComment"^^xsd:string
430 + ]
431 + ] [ sp:object
432 + [ sp:varName "comment"^^xsd:string
433 + ] ;
434 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ;
435 + sp:subject
436 + [ sp:varName "makeAComment"^^xsd:string
437 + ]
438 + ])
439 + ])
440 + ])
441 + ] ;
442 + rhspin:tableHeaders ("Facility"^^xsd:string "Operation Type"^^xsd:string "Start"^^xsd:string "Finish"^^xsd:string "Safety Text"^^xsd:string "Comment"^^xsd:string) .
443 +
444 +dpr-tables:OperationInformation
445 + rdf:type rhspin:TableTemplate ;
446 + rdfs:label "Operation Information"^^xsd:string ;
447 + rdfs:subClassOf rhspin:DPRTableTemplates ;
448 + spin:body
449 + [ rdf:type sp:Select ;
450 + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
451 + ] [ sp:varName "definingType"^^xsd:string
452 + ] [ sp:varName "number"^^xsd:string
453 + ]) ;
454 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
455 + sp:predicate rdf:type ;
456 + sp:subject
457 + [ sp:varName "report"^^xsd:string
458 + ]
459 + ] [ sp:object
460 + [ sp:varName "productionReport"^^xsd:string
461 + ] ;
462 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
463 + sp:subject
464 + [ sp:varName "productionOperationReport"^^xsd:string
465 + ]
466 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
467 + sp:predicate rdf:type ;
468 + sp:subject
469 + [ sp:varName "productionOperationReport"^^xsd:string
470 + ]
471 + ] [ sp:object
472 + [ sp:varName "temporalPartOfFacility"^^xsd:string
473 + ] ;
474 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
475 + sp:subject
476 + [ sp:varName "productionOperationReport"^^xsd:string
477 + ]
478 + ] [ sp:object
479 + [ sp:varName "productionFacility"^^xsd:string
480 + ] ;
481 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
482 + sp:subject
483 + [ sp:varName "temporalPartOfFacility"^^xsd:string
484 + ]
485 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
486 + sp:predicate rdf:type ;
487 + sp:subject
488 + [ sp:varName "productionFacility"^^xsd:string
489 + ]
490 + ] [ sp:object
491 + [ sp:varName "facilityName"^^xsd:string
492 + ] ;
493 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
494 + sp:subject
495 + [ sp:varName "productionFacility"^^xsd:string
496 + ]
497 + ] [ sp:object
498 + [ sp:varName "productionOperationReport"^^xsd:string
499 + ] ;
500 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
501 + sp:subject
502 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
503 + ]
504 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
505 + sp:predicate rdf:type ;
506 + sp:subject
507 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
508 + ]
509 + ] [ sp:object
510 + [ sp:varName "installationPart"^^xsd:string
511 + ] ;
512 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
513 + sp:subject
514 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
515 + ]
516 + ] [ sp:object
517 + [ sp:varName "installationPart"^^xsd:string
518 + ] ;
519 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
520 + sp:subject
521 + [ sp:varName "productionOperation"^^xsd:string
522 + ]
523 + ] [ sp:object
524 + [ sp:varName "set"^^xsd:string
525 + ] ;
526 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSetOfAllPartsOfDefinedType> ;
527 + sp:subject
528 + [ sp:varName "productionOperation"^^xsd:string
529 + ]
530 + ] [ sp:object
531 + [ sp:varName "setDefiningType"^^xsd:string
532 + ] ;
533 + sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ;
534 + sp:subject
535 + [ sp:varName "set"^^xsd:string
536 + ]
537 + ] [ sp:object
538 + [ sp:varName "definingType"^^xsd:string
539 + ] ;
540 + sp:predicate rdfs:label ;
541 + sp:subject
542 + [ sp:varName "setDefiningType"^^xsd:string
543 + ]
544 + ] [ sp:object
545 + [ sp:varName "number"^^xsd:string
546 + ] ;
547 + sp:predicate <http://www.reportinghub.no/ep/schema/core#numberInSet> ;
548 + sp:subject
549 + [ sp:varName "set"^^xsd:string
550 + ]
551 + ])
552 + ] ;
553 + rhspin:tableHeaders ("Facility"^^xsd:string "Incident Type"^^xsd:string "Count"^^xsd:string) .
554 +
286 dpr-tables:PersonnelInformation 555 dpr-tables:PersonnelInformation
287 rdf:type rhspin:TableTemplate ; 556 rdf:type rhspin:TableTemplate ;
288 rdfs:label "Personnel Information"^^xsd:string ; 557 rdfs:label "Personnel Information"^^xsd:string ;
...@@ -1019,6 +1288,139 @@ dpr-tables:ProductionVolumes ...@@ -1019,6 +1288,139 @@ dpr-tables:ProductionVolumes
1019 ] ; 1288 ] ;
1020 rhspin:tableHeaders ("Field"^^xsd:string "Facility Name"^^xsd:string "Flow Purpose"^^xsd:string "Flow Definition"^^xsd:string "Flow Density"^^xsd:string "Flow Pressure"^^xsd:string "Flow Temperature"^^xsd:string) . 1289 rhspin:tableHeaders ("Field"^^xsd:string "Facility Name"^^xsd:string "Flow Purpose"^^xsd:string "Flow Definition"^^xsd:string "Flow Density"^^xsd:string "Flow Pressure"^^xsd:string "Flow Temperature"^^xsd:string) .
1021 1290
1291 +dpr-tables:SafetyInformation
1292 + rdf:type rhspin:TableTemplate ;
1293 + rdfs:label "Safety Information"^^xsd:string ;
1294 + rdfs:subClassOf rhspin:DPRTableTemplates ;
1295 + spin:body
1296 + [ rdf:type sp:Select ;
1297 + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
1298 + ] [ sp:varName "definingType"^^xsd:string
1299 + ] [ sp:varName "duration"^^xsd:string
1300 + ]) ;
1301 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
1302 + sp:predicate rdf:type ;
1303 + sp:subject
1304 + [ sp:varName "report"^^xsd:string
1305 + ]
1306 + ] [ sp:object
1307 + [ sp:varName "productionReport"^^xsd:string
1308 + ] ;
1309 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
1310 + sp:subject
1311 + [ sp:varName "productionOperationReport"^^xsd:string
1312 + ]
1313 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
1314 + sp:predicate rdf:type ;
1315 + sp:subject
1316 + [ sp:varName "productionOperationReport"^^xsd:string
1317 + ]
1318 + ] [ sp:object
1319 + [ sp:varName "temporalPartOfFacility"^^xsd:string
1320 + ] ;
1321 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
1322 + sp:subject
1323 + [ sp:varName "productionOperationReport"^^xsd:string
1324 + ]
1325 + ] [ sp:object
1326 + [ sp:varName "productionFacility"^^xsd:string
1327 + ] ;
1328 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1329 + sp:subject
1330 + [ sp:varName "temporalPartOfFacility"^^xsd:string
1331 + ]
1332 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
1333 + sp:predicate rdf:type ;
1334 + sp:subject
1335 + [ sp:varName "productionFacility"^^xsd:string
1336 + ]
1337 + ] [ sp:object
1338 + [ sp:varName "facilityName"^^xsd:string
1339 + ] ;
1340 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
1341 + sp:subject
1342 + [ sp:varName "productionFacility"^^xsd:string
1343 + ]
1344 + ] [ sp:object
1345 + [ sp:varName "productionOperationReport"^^xsd:string
1346 + ] ;
1347 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
1348 + sp:subject
1349 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
1350 + ]
1351 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
1352 + sp:predicate rdf:type ;
1353 + sp:subject
1354 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
1355 + ]
1356 + ] [ sp:object
1357 + [ sp:varName "installationPart"^^xsd:string
1358 + ] ;
1359 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
1360 + sp:subject
1361 + [ sp:varName "productionOperationInstallationReport"^^xsd:string
1362 + ]
1363 + ] [ sp:object
1364 + [ sp:varName "installationPart"^^xsd:string
1365 + ] ;
1366 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
1367 + sp:subject
1368 + [ sp:varName "productionOperation"^^xsd:string
1369 + ]
1370 + ] [ sp:object
1371 + [ sp:varName "lastPart"^^xsd:string
1372 + ] ;
1373 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
1374 + sp:subject
1375 + [ sp:varName "productionOperation"^^xsd:string
1376 + ]
1377 + ] [ sp:object
1378 + [ sp:varName "lastPartDefiningType"^^xsd:string
1379 + ] ;
1380 + sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ;
1381 + sp:subject
1382 + [ sp:varName "lastPart"^^xsd:string
1383 + ]
1384 + ] [ sp:object
1385 + [ sp:varName "definingType"^^xsd:string
1386 + ] ;
1387 + sp:predicate rdfs:label ;
1388 + sp:subject
1389 + [ sp:varName "lastPartDefiningType"^^xsd:string
1390 + ]
1391 + ] [ rdf:type sp:Optional ;
1392 + sp:elements ([ sp:object
1393 + [ sp:varName "remainingActivity"^^xsd:string
1394 + ] ;
1395 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
1396 + sp:subject
1397 + [ sp:varName "lastPart"^^xsd:string
1398 + ]
1399 + ] [ sp:object
1400 + [ sp:varName "remainingActivityType"^^xsd:string
1401 + ] ;
1402 + sp:predicate rdf:type ;
1403 + sp:subject
1404 + [ sp:varName "remainingActivity"^^xsd:string
1405 + ]
1406 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
1407 + sp:predicate rdf:type ;
1408 + sp:subject
1409 + [ sp:varName "remainingActivityType"^^xsd:string
1410 + ]
1411 + ] [ sp:object
1412 + [ sp:varName "duration"^^xsd:string
1413 + ] ;
1414 + sp:predicate <http://www.reportinghub.no/ep/schema/core#day> ;
1415 + sp:subject
1416 + [ sp:varName "remainingActivityType"^^xsd:string
1417 + ]
1418 + ])
1419 + ])
1420 + ] ;
1421 + rhspin:tableHeaders ("Facility"^^xsd:string "Incident Type"^^xsd:string """Duration
1422 +day"""^^xsd:string) .
1423 +
1022 dpr-tables:WellFluidLevelTest 1424 dpr-tables:WellFluidLevelTest
1023 rdf:type rhspin:TableTemplate ; 1425 rdf:type rhspin:TableTemplate ;
1024 rdfs:label "Well Fluid Level Test"^^xsd:string ; 1426 rdfs:label "Well Fluid Level Test"^^xsd:string ;
......
...@@ -47,6 +47,10 @@ WHERE { ...@@ -47,6 +47,10 @@ WHERE {
47 <tr><td>{= ?facilityName }</td><td>{= ?beds}</td></tr> 47 <tr><td>{= ?facilityName }</td><td>{= ?beds}</td></tr>
48 </ui:forEach> 48 </ui:forEach>
49 </table> 49 </table>
50 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:HSEInformation" />
51 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" />
52 + <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" />
53 +
50 54
51 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" /> 55 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
52 56
...@@ -81,4 +85,6 @@ WHERE { ...@@ -81,4 +85,6 @@ WHERE {
81 85
82 86
83 87
88 +
89 +
84 </ui:group> 90 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......