MonkeyChap

Started adding new select functions…then got moved onto DDR work.

Checking this in - all working, but lots more select functions to add
# Saved by TopBraid on Fri Oct 28 15:17:22 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/core
......@@ -14,83 +13,99 @@
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:MeasureOfFlowOfMaterial
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "measure of flow of material"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-core:VolumeFlowRateAt15degC1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "volume flow rate at 15 degrees C 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:VolumeFlowRateAt1degC1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "volume flow rate at 1 degrees C 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:VolumeFlowRateAt60degF1atm
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdfs:label "volume flow rate at 60 degrees F 1 atmosphere"^^xsd:string ;
rdfs:subClassOf ep-core:MeasureOfFlowOfMaterial .
ep-core:apiDensity
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "API Density"^^xsd:string .
ep-core:atmosphere
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-core:Pressure ;
rdfs:label "atmosphere"^^xsd:string .
ep-core:barrel_day-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:domain ep-core:VolumetricFlowRate ;
rdfs:label "barrel day-1"^^xsd:string .
ep-core:centimetre
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-core:Length ;
rdfs:label "centimetre"^^xsd:string .
ep-core:cm_s-2
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "centimetres per second squared"^^xsd:string .
ep-core:count
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "count"^^xsd:string .
ep-core:fahrenheit
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-core:Temperature ;
rdfs:label "fahrenheit"^^xsd:string .
ep-core:foot_s-2
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "feet per second squared"^^xsd:string .
ep-core:galileo
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "galileo"^^xsd:string .
ep-core:gn
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "normal acceleration Gn"^^xsd:string .
ep-core:grain_100ft-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "grain per 100ft3"^^xsd:string .
ep-core:grain_ft-3_1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "grain per ft3"^^xsd:string .
ep-core:grain_usGallon-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "grain per US Gallon"^^xsd:string .
ep-core:gram_dm-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "gram dm-3"^^xsd:string .
ep-core:gram_l-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "grams per litre"^^xsd:string .
ep-core:gram_m-3
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "gram m-3"^^xsd:string .
ep-core:gram_ukGallon-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "grams per UK Gallon"^^xsd:string .
ep-core:gram_usGallon-1
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "grams per US Gallon"^^xsd:string .
ep-core:hasSetOfAllPartsOfType
......@@ -99,95 +114,107 @@ ep-core:hasSetOfAllPartsOfType
rdfs:label "basis for"^^xsd:string .
ep-core:inch_64
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-core:Length ;
rdfs:label "inch/64"^^xsd:string .
ep-core:kilogram_dm-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "kilogram dm-3"^^xsd:string .
ep-core:kilogram_l-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "kilogram per litre"^^xsd:string .
ep-core:kilogram_m-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "kilogram m-3"^^xsd:string .
ep-core:lbm_1000bbl-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per 1000 barrels"^^xsd:string .
ep-core:lbm_1000ukGallon-1
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "pounds(mass) per 1000 UK Gallons"^^xsd:string .
ep-core:lbm_1000usGallon-1
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "pounds(mass) per 1000 US Gallons"^^xsd:string .
ep-core:lbm_10bbl-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per 10 barrels"^^xsd:string .
ep-core:lbm_bbl-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per barrel"^^xsd:string .
ep-core:lbm_ft-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per cubic foot"^^xsd:string .
ep-core:lbm_in-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per cubic inch"^^xsd:string .
ep-core:lbm_millibarrel-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per milli-barrel"^^xsd:string .
ep-core:lbm_ukGallon-1
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "pounds(mass) per UK Gallon"^^xsd:string .
ep-core:lbm_usGallon-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "pounds (mass) per US Gallon"^^xsd:string .
ep-core:megagram_m-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "Megagram m-3"^^xsd:string .
ep-core:metre3_hour-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:domain ep-core:VolumetricFlowRate ;
rdfs:label "metre3 hour-1"^^xsd:string .
ep-core:metre_s-2
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "metres per second squared"^^xsd:string .
ep-core:mgn
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "milliGn - normal acceleration"^^xsd:string .
ep-core:microgram_cm-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "microgram cm-3"^^xsd:string .
ep-core:milligalileo
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "milligalileo"^^xsd:string .
ep-core:milligram_dm-3
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "milligram dm-3"^^xsd:string .
ep-core:milligram_l-1
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "milligrams per litre"^^xsd:string .
ep-core:milligram_m-3
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "milligram m-3"^^xsd:string .
ep-core:milligram_usGallon-1
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdfs:label "milligrams per US Gallon"^^xsd:string .
ep-core:ten_megagram_m-3
rdf:type owl:FunctionalProperty , owl:DatatypeProperty , ep-core:Scale ;
rdf:type ep-core:Scale , owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "10 Megagram m-3"^^xsd:string .
ep-core:thousand_barrel
rdf:type ep-core:Scale , owl:FunctionalProperty , owl:DatatypeProperty ;
rdf:type owl:DatatypeProperty , owl:FunctionalProperty , ep-core:Scale ;
rdfs:label "thousand barrel"^^xsd:string .
......
# Saved by TopBraid on Fri Oct 28 15:14:15 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.witsml.org/schemas/131/addendum/combo
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
......@@ -20,7 +19,7 @@
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> ;
owl:imports <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
......@@ -734,6 +733,72 @@ ep-dpr-spin-lib:selectLengthScale
])
] .
ep-dpr-spin-lib:selectLinearAccelerationScale
rdf:type spin:Function ;
rdfs:label "select Linear Acceleration scale"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "myVar"^^xsd:string
]) ;
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#ALU_cms2>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#cm_s-2> ;
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#ALU_fts2>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#foot_s-2> ;
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#ALU_Gal>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#galileo> ;
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#ALU_gn>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#gn> ;
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#ALU_mGal>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#milligalileo> ;
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#ALU_mgn>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#mgn> ;
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#ALU_ms2>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#metre_s-2> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
]
]
]
]
] ;
sp:variable
[ sp:varName "myVar"^^xsd:string
]
])
] .
ep-dpr-spin-lib:selectMassConcentrationScale
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
......@@ -2452,6 +2517,9 @@ _:b22
_:b21
sp:varName "durationScale"^^xsd:string .
_:b20
sp:varName "densityScale"^^xsd:string .
_:b19
sp:varName "uri"^^xsd:string .
......@@ -2499,6 +2567,3 @@ _:b3 sp:varName "UUID"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "densityScale"^^xsd:string .
......
# Saved by TopBraid on Fri Oct 28 15:14:15 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......