David Leal

Reinstated work on DPR lib, but not yet core-production

# Saved by TopBraid on Wed Oct 12 16:32:18 BST 2011
# Saved by TopBraid on Wed Oct 12 20:37:18 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -231,13 +231,132 @@ ep-dpr-spin-lib:buildStateURI
])
] .
ep-dpr-spin-lib:selectDurationScale
rdf:type spin:Function ;
rdfs:label "select Duration scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TU_h>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#hour> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TU_min>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#minute> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TU_s>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#second> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b10
])
] .
ep-dpr-spin-lib:selectLengthScale
rdf:type spin:Function ;
rdfs:label "select Length scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_in64>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#inch_64> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_m>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_cm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#centimetre> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_mm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#millimetre> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#LU_in>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#inch> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
]
]
] ;
sp:variable _:b11
])
] .
ep-dpr-spin-lib:selectPressureScale
rdf:type spin:Function ;
rdfs:label "select Pressure scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#PU_bar>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#bar> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#PU_atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#atmosphere> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#PU_MPa>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#megaPa> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b12
])
] .
ep-dpr-spin-lib:selectProductType
rdf:type spin:Function ;
rdfs:label "select ProductType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b13) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -444,7 +563,7 @@ ep-dpr-spin-lib:selectProductType
]
]
] ;
sp:variable _:b10
sp:variable _:b13
])
] .
......@@ -454,7 +573,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:resultVariables (_:b14) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -633,7 +752,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b11
sp:variable _:b14
])
] .
......@@ -643,7 +762,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables (_:b15) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -703,7 +822,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b12
sp:variable _:b15
])
] .
......@@ -713,7 +832,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -731,7 +850,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b13
sp:variable _:b16
])
] .
......@@ -741,7 +860,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -759,7 +878,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b14
sp:variable _:b17
])
] .
......@@ -769,7 +888,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -920,7 +1039,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b15
sp:variable _:b18
])
] .
......@@ -930,7 +1049,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:resultVariables (_:b19) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1004,7 +1123,7 @@ ep-dpr-spin-lib:selectRelationshipToMeasure
]
]
] ;
sp:variable _:b16
sp:variable _:b19
])
] .
......@@ -1013,7 +1132,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1157,7 +1276,56 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b17
sp:variable _:b20
])
] .
ep-dpr-spin-lib:selectSpecificVolumeScale
rdf:type spin:Function ;
rdfs:label "select SpecificVolume scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b21
])
] .
ep-dpr-spin-lib:selectTemperatureScale
rdf:type spin:Function ;
rdfs:label "select Temperature scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TTU_degC>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#celsius> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#TTU_degF>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fahrenheit> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b22
])
] .
......@@ -1167,7 +1335,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1241,7 +1409,7 @@ ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType
]
]
] ;
sp:variable _:b18
sp:variable _:b23
])
] .
......@@ -1250,7 +1418,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:resultVariables (_:b24) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1324,7 +1492,7 @@ ep-dpr-spin-lib:selectTemporalPartOfActivityDurationType
]
]
] ;
sp:variable _:b19
sp:variable _:b24
])
] .
......@@ -1334,7 +1502,7 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:resultVariables (_:b25) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1359,7 +1527,77 @@ ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b20
sp:variable _:b25
])
] .
ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
rdf:type spin:Function ;
rdfs:label "select VolumeFlowRateAtStandardTemperaturePressureType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b26) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_15degC1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt15degC1atm> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_60degF1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt60degF1atm> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#STP_0degC1atm>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#VolumeFlowRateAt15degC1atm> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#MeasureOfFlowOfMaterial>
]
]
] ;
sp:variable _:b26
])
] .
ep-dpr-spin-lib:selectVolumeFlowRateScale
rdf:type spin:Function ;
rdfs:label "select VolumeFlowRate scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VFRU_m3d>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre3_day-1> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VFRU_bbld>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#barrel_day-1> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VFRU_m3h>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre3_hour-1> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
] ;
sp:variable _:b27
])
] .
......@@ -1369,7 +1607,7 @@ ep-dpr-spin-lib:selectVolumeScale
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1597,60 +1835,81 @@ ep-dpr-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b21
sp:variable _:b28
])
] .
_:b1 sp:varName "uri"^^xsd:string .
_:b10
sp:varName "durationScale"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b11
sp:varName "lengthScale"^^xsd:string .
_:b12
sp:varName "pressureScale"^^xsd:string .
_:b21
sp:varName "volumeScale"^^xsd:string .
sp:varName "specificVolumeScale"^^xsd:string .
_:b20
sp:varName "volumeAtStdType"^^xsd:string .
_:b26
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b19
sp:varName "prodActType"^^xsd:string .
_:b27
sp:varName "volumeFlowRateScale"^^xsd:string .
_:b18
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b22
sp:varName "temperatureScale"^^xsd:string .
_:b17
sp:varName "safetyActivityType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "relationshipToMeasure"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b14
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b13
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
sp:varName "productType"^^xsd:string .
_:b12
_:b14
sp:varName "productionFacilityType"^^xsd:string .
_:b15
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b11
sp:varName "productionFacilityType"^^xsd:string .
_:b16
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b10
sp:varName "productType"^^xsd:string .
_:b17
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "relationshipToMeasure"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "safetyActivityType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b23
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b24
sp:varName "prodActType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b25
sp:varName "volumeAtStdType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b28
sp:varName "volumeScale"^^xsd:string .
......
# Saved by TopBraid on Wed Oct 12 16:32:18 BST 2011
# Saved by TopBraid on Wed Oct 12 20:37:18 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
This diff could not be displayed because it is too large.