David Leal

Update to production-core and DPR-lib to support well test data.

1 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 1 # baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/ep/schema/1.0/production 3 # imports: http://www.reportinghub.no/ep/schema/1.0/production
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
4 # imports: http://www.witsml.org/schemas/131/addendum/combo 5 # imports: http://www.witsml.org/schemas/131/addendum/combo
5 6
6 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . 7 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
7 @prefix ep-geog: <http://www.reportinghub.no/ep/schema/1.0/geography#> . 8 @prefix ep-geog: <http://www.reportinghub.no/ep/schema/1.0/geography#> .
9 +@prefix ep-prodcore: <http://www.reportinghub.no/ep/schema/production-core#> .
8 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 10 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
9 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 11 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
10 @prefix owl: <http://www.w3.org/2002/07/owl#> . 12 @prefix owl: <http://www.w3.org/2002/07/owl#> .
...@@ -14,12 +16,11 @@ ...@@ -14,12 +16,11 @@
14 @prefix spif: <http://spinrdf.org/spif#> . 16 @prefix spif: <http://spinrdf.org/spif#> .
15 @prefix spin: <http://spinrdf.org/spin#> . 17 @prefix spin: <http://spinrdf.org/spin#> .
16 @prefix spl: <http://spinrdf.org/spl#> . 18 @prefix spl: <http://spinrdf.org/spl#> .
17 -@prefix unnamed: <http://www.reportinghub.no/ep/schema/1.0/production-core#> .
18 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 19 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
19 20
20 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 21 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
21 rdf:type owl:Ontology ; 22 rdf:type owl:Ontology ;
22 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> ; 23 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 24 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
24 25
25 ep-dpr-spin-lib:BuildDailyProductionReportURI 26 ep-dpr-spin-lib:BuildDailyProductionReportURI
...@@ -732,6 +733,44 @@ ep-dpr-spin-lib:selectAreaScale ...@@ -732,6 +733,44 @@ ep-dpr-spin-lib:selectAreaScale
732 ]) 733 ])
733 ] . 734 ] .
734 735
736 +ep-dpr-spin-lib:selectDensityAtStandardTemperaturePressureType
737 + rdf:type spin:Function ;
738 + rdfs:label "select DensityAtStandardTemperaturePressureType"^^xsd:string ;
739 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
740 + spin:body
741 + [ rdf:type sp:Select ;
742 + sp:resultVariables ([ sp:varName "densityAtStdType"^^xsd:string
743 + ]) ;
744 + sp:where ([ rdf:type sp:Bind ;
745 + sp:expression
746 + [ rdf:type sp:if ;
747 + sp:arg1 [ rdf:type sp:eq ;
748 + sp:arg1 spin:_arg1 ;
749 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_15degC1atm>
750 + ] ;
751 + sp:arg2 ep-prodcore:DensityAt15degC1atm ;
752 + sp:arg3 [ rdf:type sp:if ;
753 + sp:arg1 [ rdf:type sp:eq ;
754 + sp:arg1 spin:_arg1 ;
755 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_60degF1atm>
756 + ] ;
757 + sp:arg2 ep-prodcore:DensityAt60degF1atm ;
758 + sp:arg3 [ rdf:type sp:if ;
759 + sp:arg1 [ rdf:type sp:eq ;
760 + sp:arg1 spin:_arg1 ;
761 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_0degC1atm>
762 + ] ;
763 + sp:arg2 ep-prodcore:DensityAt0degC1atm ;
764 + sp:arg3 ep-prodcore:MeasureOfDensityOfMaterial
765 + ]
766 + ]
767 + ] ;
768 + sp:variable
769 + [ sp:varName "densityAtStdType"^^xsd:string
770 + ]
771 + ])
772 + ] .
773 +
735 ep-dpr-spin-lib:selectDensityScale 774 ep-dpr-spin-lib:selectDensityScale
736 rdf:type spin:Function ; 775 rdf:type spin:Function ;
737 rdfs:label "select density scale"^^xsd:string ; 776 rdfs:label "select density scale"^^xsd:string ;
...@@ -3387,6 +3426,69 @@ ep-dpr-spin-lib:selectWellTestReasonType ...@@ -3387,6 +3426,69 @@ ep-dpr-spin-lib:selectWellTestReasonType
3387 ]) 3426 ])
3388 ] . 3427 ] .
3389 3428
3429 +_:b41
3430 + sp:varName "volumeScale"^^xsd:string .
3431 +
3432 +_:b40
3433 + sp:varName "volumeFlowRateScale"^^xsd:string .
3434 +
3435 +_:b39
3436 + sp:varName "volumeFlowRateAtStdType"^^xsd:string .
3437 +
3438 +_:b38
3439 + sp:varName "volumeAtStdType"^^xsd:string .
3440 +
3441 +_:b37
3442 + sp:varName "prodActType"^^xsd:string .
3443 +
3444 +_:b36
3445 + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
3446 +
3447 +_:b35
3448 + sp:varName "temperatureScale"^^xsd:string .
3449 +
3450 +_:b34
3451 + sp:varName "specificVolumeScale"^^xsd:string .
3452 +
3453 +_:b33
3454 + sp:varName "safetyActivityType"^^xsd:string .
3455 +
3456 +_:b32
3457 + sp:varName "relationshipToMeasure"^^xsd:string .
3458 +
3459 +_:b31
3460 + sp:varName "popType"^^xsd:string .
3461 +
3462 +_:b30
3463 + sp:varName "productionFlowPurposeType"^^xsd:string .
3464 +
3465 +_:b29
3466 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
3467 +
3468 +_:b28
3469 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
3470 +
3471 +_:b27
3472 + sp:varName "productionFlowDefinitionType"^^xsd:string .
3473 +
3474 +_:b26
3475 + sp:varName "productionFacilityType"^^xsd:string .
3476 +
3477 +_:b25
3478 + sp:varName "productType"^^xsd:string .
3479 +
3480 +_:b24
3481 + sp:varName "pressureScale"^^xsd:string .
3482 +
3483 +_:b23
3484 + sp:varName "massConcScale"^^xsd:string .
3485 +
3486 +_:b22
3487 + sp:varName "lengthScale"^^xsd:string .
3488 +
3489 +_:b21
3490 + sp:varName "durationScale"^^xsd:string .
3491 +
3390 _:b20 3492 _:b20
3391 sp:varName "densityScale"^^xsd:string . 3493 sp:varName "densityScale"^^xsd:string .
3392 3494
...@@ -3437,66 +3539,3 @@ _:b3 sp:varName "UUID"^^xsd:string . ...@@ -3437,66 +3539,3 @@ _:b3 sp:varName "UUID"^^xsd:string .
3437 _:b2 sp:varName "uri"^^xsd:string . 3539 _:b2 sp:varName "uri"^^xsd:string .
3438 3540
3439 _:b1 sp:varName "uri"^^xsd:string . 3541 _:b1 sp:varName "uri"^^xsd:string .
3440 -
3441 -_:b27
3442 - sp:varName "productionFlowDefinitionType"^^xsd:string .
3443 -
3444 -_:b28
3445 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
3446 -
3447 -_:b29
3448 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
3449 -
3450 -_:b30
3451 - sp:varName "productionFlowPurposeType"^^xsd:string .
3452 -
3453 -_:b31
3454 - sp:varName "popType"^^xsd:string .
3455 -
3456 -_:b32
3457 - sp:varName "relationshipToMeasure"^^xsd:string .
3458 -
3459 -_:b33
3460 - sp:varName "safetyActivityType"^^xsd:string .
3461 -
3462 -_:b34
3463 - sp:varName "specificVolumeScale"^^xsd:string .
3464 -
3465 -_:b35
3466 - sp:varName "temperatureScale"^^xsd:string .
3467 -
3468 -_:b36
3469 - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
3470 -
3471 -_:b37
3472 - sp:varName "prodActType"^^xsd:string .
3473 -
3474 -_:b38
3475 - sp:varName "volumeAtStdType"^^xsd:string .
3476 -
3477 -_:b39
3478 - sp:varName "volumeFlowRateAtStdType"^^xsd:string .
3479 -
3480 -_:b40
3481 - sp:varName "volumeFlowRateScale"^^xsd:string .
3482 -
3483 -_:b41
3484 - sp:varName "volumeScale"^^xsd:string .
3485 -
3486 -_:b21
3487 - sp:varName "durationScale"^^xsd:string .
3488 -
3489 -_:b22
3490 - sp:varName "lengthScale"^^xsd:string .
3491 -
3492 -_:b23
3493 - sp:varName "massConcScale"^^xsd:string .
3494 -
3495 -_:b24
3496 - sp:varName "pressureScale"^^xsd:string .
3497 -
3498 -_:b25
3499 - sp:varName "productType"^^xsd:string .
3500 -
3501 -_:b26
3502 - sp:varName "productionFacilityType"^^xsd:string .
......