David Price

Merge branch 'master' into feb7

This diff could not be displayed because it is too large.
......@@ -14,7 +14,7 @@
<http://www.reportinghub.no/ep/schema/1.0/production-well>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/flow> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-material:Air-gas
......@@ -348,12 +348,12 @@ ep-material:substance-T13dmcyPentane
rdf:type ep-prodwell:ComponentMaterialType .
ep-prodwell:AbandonedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "abandoned well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:ClosedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "closed well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -374,7 +374,7 @@ ep-prodwell:FluidPhaseType
rdfs:subClassOf owl:Class .
ep-prodwell:InjectingWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "injecting well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -384,7 +384,7 @@ ep-prodwell:InjectionFluidType
rdfs:subClassOf owl:Class .
ep-prodwell:JunkedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "junked well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -394,27 +394,27 @@ ep-prodwell:NaturalGasClass
rdfs:subClassOf owl:Class .
ep-prodwell:OperatingWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "operating well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:PluggedAndAbandonedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "plugged and abandoned well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:PluggedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "plugged well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:ProducingInjectingWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "producing injecting well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:ProducingWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "producing well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -424,12 +424,12 @@ ep-prodwell:RockFormation
rdfs:subClassOf ep-core:PhysicalObject .
ep-prodwell:SuspendedAtTdWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "suspended at td well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
ep-prodwell:SuspendedWell
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "suspended well"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -454,7 +454,7 @@ ep-prodwell:WellCompletion
rdfs:subClassOf ep-well:SpatialPartOfAWellBore .
ep-prodwell:WellReclassedToDevelopment
rdf:type ep-prodwell:WellStatusType , owl:Class ;
rdf:type owl:Class , ep-prodwell:WellStatusType ;
rdfs:label "well reclassed to development"^^xsd:string ;
rdfs:subClassOf ep-prodwell:TemporalPartOfAWellOrWellBore .
......@@ -464,48 +464,48 @@ ep-prodwell:WellStatusType
rdfs:subClassOf owl:Class .
ep-prodwell:completeLiquidPartOf
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-material:QuantityOfMaterial ;
rdfs:label "complete liquid part of"^^xsd:string ;
rdfs:range ep-material:Liquid .
ep-prodwell:condensateYield
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:label "condensate yield"^^xsd:string ;
rdfs:range ep-core:SpecificVolume .
rdfs:range ep-core:VolumePerMass .
ep-prodwell:depthOfBaseUsableWaterFromSurface
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-material:Fluid ;
rdfs:label "depth of base of usable water from surface"^^xsd:string ;
rdfs:range ep-core:Length .
ep-prodwell:depthOfFluidSurfaceFromTopOfWell
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-material:Fluid ;
rdfs:label "depth of fluid surface from top of well"^^xsd:string ;
rdfs:range ep-core:Length .
ep-prodwell:oilWaterRatioByMass
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-material:Fluid ;
rdfs:label "oil/water ratio by mass"^^xsd:string ;
rdfs:range ep-core:Ratio .
ep-prodwell:pOverZ
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-material:Fluid ;
rdfs:label "pressure over gas compressibility factor"^^xsd:string ;
rdfs:range ep-core:Pressure .
ep-prodwell:potentialGasProduction
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-well:WellBore ;
rdfs:label "potential gas production"^^xsd:string ;
rdfs:range ep-core:VolumetricFlowRate .
ep-prodwell:potentialOilProduction
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-well:WellBore ;
rdfs:label "potential oil production"^^xsd:string ;
rdfs:range ep-core:VolumetricFlowRate .
......
......@@ -20,7 +20,7 @@
<http://www.reportinghub.no/ep/spin/mpr-tables>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
mpr-tables:Cargo
......@@ -878,12 +878,12 @@ mpr-tables:FluidSampleAnalysisResults
sp:subject
[ sp:varName "molePair"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MolePair> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#AmountOfSubstancePair> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "molePair"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#AmountOfSubstance> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "firstOfPair"^^xsd:string
......@@ -895,7 +895,7 @@ mpr-tables:FluidSampleAnalysisResults
sp:subject
[ sp:varName "molePair"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#AmountOfSubstance> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "secondOfPair"^^xsd:string
......
# baseURI: http://www.reportinghub.no/np/schema/1.0/NPD-FactPages
@prefix npd-facts: <http://www.reportinghub.no/np/schema/NPD-FactPages#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tables: <http://topbraid.org/tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/np/schema/1.0/NPD-FactPages>
rdf:type owl:Ontology ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
npd-facts:BusinessAreaArrangement
rdf:type owl:Class ;
rdfs:subClassOf npd-facts:LicenseOrBusinessAreaArrangement .
npd-facts:Company
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
npd-facts:Field
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
npd-facts:Licence
rdf:type owl:Class ;
rdfs:subClassOf npd-facts:LicenseOrBusinessAreaArrangement .
npd-facts:LicenseOrBusinessAreaArrangement
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
npd-facts:Wellbore
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
npd-facts:cmpNpdidCompany
rdf:type owl:ObjectProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Operator"^^xsd:string ;
rdfs:range npd-facts:Company .
npd-facts:fldCurrentActivitySatus
rdf:type owl:DatatypeProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Status"^^xsd:string ;
rdfs:range xsd:string .
npd-facts:fldFactMapUrl
rdf:type owl:DatatypeProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Fact Map URL"^^xsd:string ;
rdfs:range xsd:anyURI .
npd-facts:fldFactPageUrl
rdf:type owl:DatatypeProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Fact Page URL"^^xsd:string ;
rdfs:range xsd:anyURI .
npd-facts:fldName
rdf:type owl:DatatypeProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "NPD Name"^^xsd:string ;
rdfs:range xsd:string .
npd-facts:fldNpdidField
rdf:type owl:DatatypeProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "NPD ID"^^xsd:string ;
rdfs:range xsd:string .
npd-facts:fldNpdidOwner
rdf:type owl:ObjectProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Owner"^^xsd:string ;
rdfs:range npd-facts:LicenseOrBusinessAreaArrangement .
npd-facts:wlbNpdidWellbore
rdf:type owl:ObjectProperty ;
rdfs:domain npd-facts:Field ;
rdfs:label "Wellbore"^^xsd:string ;
rdfs:range npd-facts:Wellbore .
# Saved by TopBraid on Tue Sep 20 18:13:07 BST 2011
# baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-report-header
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
@prefix : <http://www.reportinghub.no/test/ddr/TEST_ddr-report-header#> .
@prefix collector: <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/test/ddr/TEST_ddr-report-header>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# Saved by TopBraid on Tue Sep 20 18:13:07 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
# baseURI: http://www.reportinghub.no/test/dpr/testcase/dpr-to-dpr2-runxslt
# imports: http://topbraid.org/sparqlmotionfunctions
# imports: http://topbraid.org/sparqlmotionlib-tbc
@prefix : <http://www.reportinghub.no/test/dpr/testcase/dpr-to-dpr2-runxslt#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sm: <http://topbraid.org/sparqlmotion#> .
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/test/dpr/testcase/dpr-to-dpr2-runxslt>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/sparqlmotionfunctions> , <http://topbraid.org/sparqlmotionlib-tbc> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
:ConvertXMLByXSLT_1
rdf:type sml:ConvertXMLByXSLT ;
rdfs:label "Convert XMLBy XSLT 1"^^xsd:string ;
sm:next :SaveTransformResult ;
sm:nodeX 352 ;
sm:nodeY 82 ;
sm:outputVariable "xmlContent"^^xsd:string ;
sml:template
[ sp:varName "stylesheet"^^xsd:string
] ;
sml:xml [ sp:varName "input"^^xsd:string
] .
:ReadStylesheet
rdf:type sml:ImportTextFile ;
rdfs:label "Read stylesheet"^^xsd:string ;
sm:next :ConvertXMLByXSLT_1 ;
sm:nodeX 72 ;
sm:nodeY 19 ;
sm:outputVariable "stylesheet"^^xsd:string ;
sml:sourceFilePath "/www.reportinghub.no/xslt/TRANSFORM_dpr-to-mpr-v1.0.xsl"^^xsd:string .
:ReadXMLInput
rdf:type sml:ImportTextFile ;
rdfs:label "Read XMLInput"^^xsd:string ;
sm:next :ConvertXMLByXSLT_1 ;
sm:nodeX 623 ;
sm:nodeY 9 ;
sm:outputVariable "input"^^xsd:string ;
sml:sourceFilePath "/www.reportinghub.no/test/dpr/testcase/Field Vega - BAA Vega/tqedits/Daily Production Vega Unit 2012-10-14-ONE-FLOW.xml"^^xsd:string .
:SaveTransformResult
rdf:type sml:ExportToTextFile ;
rdfs:label "Save transform result"^^xsd:string ;
sm:nodeX 354 ;
sm:nodeY 316 ;
sml:replace "true"^^xsd:boolean ;
sml:targetFilePath "RESULT-generated-dpr2.xml"^^xsd:string ;
sml:text "{?xmlContent}"^^xsd:string .
<?xml version="1.0" encoding="UTF-8"?>
<WITSMLComposite xmlns="http://www.witsml.org/schemas/131/addendum/combo" version="1.3.1.0">
<documentInfo>
<DocumentName namingSystem="EC">Daily Production Vega Unit</DocumentName>
<DocumentAlias namingSystem="EC">Daily Production and Operation Report</DocumentAlias>
<DocumentDate>2012-10-14T00:00:00</DocumentDate>
<documentClass namingSystem="EC">DPOR</documentClass>
<documentClass namingSystem="EC">DPR</documentClass>
<documentClass namingSystem="ERH">dpr2</documentClass>
<Owner>VEGA</Owner>
</documentInfo>
<productVolumeSet>
<productVolume uid="83CB36697A4C0A20E040618F80123BA7">
<name>VEGA</name>
<installation>VEGA</installation>
<contextFacility kind="field" namingSystem="NPD" uidRef="4467595">VEGA</contextFacility>
<kind>DDR</kind>
<periodKind>day</periodKind>
<dateStart>2012-10-14</dateStart>
<dateEnd>2012-10-15</dateEnd>
<operator>
<name>Statoil ASA</name>
<role>operator</role>
</operator>
<title namingSystem="EC">Daily Production Vega Unit</title>
<facility uid="83CB36697A4C0A20E040618F80123BA7">
<name kind="platform" namingSystem="NPD" uidRef="83CB36697A4C0A20E040618F80123BA7">VEGA NORD</name>
<facilityParent1 kind="field" namingSystem="NPD" uidRef="4467595">VEGA</facilityParent1>
<contextFacility kind="field" namingSystem="NPD" uidRef="4467595">VEGA</contextFacility>
<flow uid="90D8148938DD01F5E040618F801225D4">
<name>Liquid Partially Processed Vega Unit</name>
<kind>production</kind>
<direction>outlet</direction>
<qualifier>measured</qualifier>
<product>
<kind>oil</kind>
<name>Liquid Partially Processed Vega Unit</name>
<period>
<kind>day</kind>
<dTimStart>2012-10-14T00:00:00</dTimStart>
<dTimEnd>2012-10-15T00:00:00</dTimEnd>
<volume uom="bbl">123.45</volume>
<volumeStd uom="m3">678.436</volumeStd>
</period>
</product>
<product>
<kind>oil - net</kind>
<name>Liquid Partially Processed Vega Unit</name>
<period>
<kind>day</kind>
<dTimStart>2012-10-14T00:00:00</dTimStart>
<dTimEnd>2012-10-15T00:00:00</dTimEnd>
<volume uom="bbl">444.90145</volume>
<volumeStd uom="m3">777.28209</volumeStd>
<mass uom="tonUK">88.81853453</mass>
</period>
</product>
</flow>
</facility>
</productVolume>
</productVolumeSet>
</WITSMLComposite>
\ No newline at end of file
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dpr="http://www.witsml.org/schemas/131/addendum/combo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.epim.no/schemas/mprml/1">
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<!-- WITSMLComposite -> objects -->
<xsl:template match="dpr:WITSMLComposite">
<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.epim.no/schemas/mprml/1" version="1.0(MPRML)">
<xsl:apply-templates select="*|node()"/>
</objects>
</xsl:template>
<!-- documentInfo -> documentInfo and add context element -->
<xsl:template match="dpr:documentInfo">
<xsl:element name="documentInfo">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
<xsl:element name="context">
<xsl:attribute name="xsi:type">obj_report</xsl:attribute>
<title>Vega DPRM</title>
<date>2012-10-14</date>
<reportStatus>final</reportStatus>
<installation kind="field" namingSystem="NPD" uidRef="4467595">VEGA</installation>
</xsl:element>
</xsl:template>
<!-- productVolumeSet -> only children -->
<xsl:template match="dpr:productVolumeSet">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
<!-- productVolumeSet @uid -> remove uid -->
<xsl:template match="dpr:productVolumeSet/@uid">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
<!-- productVolume -> object xsd:type=obj_productVolume -->
<xsl:template match="dpr:productVolume">
<xsl:element name="object">
<xsl:attribute name="xsi:type">obj_productVolume</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="dpr:installation">
<xsl:element name="installation">
<xsl:attribute name="kind">field</xsl:attribute>
<xsl:attribute name="namingSystem">NPD</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<!-- For any elements not covered above, copy them over but with the new namespace -->
<xsl:template match="dpr:*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<!-- Convert anything else as-is -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>