David Price

Continued work on ERH Facts and skos

# baseURI: http://www.reportinghub.no/erhf/schema/1.0/erh-facts-skos
# imports: http://www.reportinghub.no/erhf/schema/1.0/erh-facts
# imports: http://www.w3.org/2004/02/skos/core
@prefix : <http://www.reportinghub.no/erhf/schema/1.0/erh-facts-skos#> .
@prefix erhfskos: <http://www.reportinghub.no/erhf/schema/erh-facts-skos#> .
@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/erhf/schema/1.0/erh-facts-skos>
rdf:type owl:Ontology ;
owl:imports <http://www.w3.org/2004/02/skos/core> , <http://www.reportinghub.no/erhf/schema/1.0/erh-facts> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/erhf/schema/erh-facts#drilledInProductionLicence>
rdfs:subPropertyOf <http://www.w3.org/2004/02/skos/core#broader> .
<http://www.reportinghub.no/erhf/schema/erh-facts#flowPartOfField>
rdfs:subPropertyOf <http://www.w3.org/2004/02/skos/core#broader> .
<http://www.reportinghub.no/erhf/schema/erh-facts#owner>
rdfs:subPropertyOf <http://www.w3.org/2004/02/skos/core#broader> .
<http://www.reportinghub.no/erhf/schema/erh-facts#wellPartOfField>
rdfs:subPropertyOf <http://www.w3.org/2004/02/skos/core#broader> .
......@@ -17,33 +17,31 @@ erhf:AliasNameInField
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:contextField
owl:onProperty erhf:erhname
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:erhname
owl:onProperty erhf:contextField
] .
erhf:AllocatedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:BAA
rdf:type owl:Class ;
rdfs:subClassOf erhf:Owner .
erhf:BudgetFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Company
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -52,110 +50,90 @@ erhf:Company
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
] .
erhf:ConstraintFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:ConstraintFlow-fixed
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdfs:subClassOf erhf:ConstraintFlow .
rdf:type erhf:FlowQualifier .
erhf:ConstraintFlow-maximum
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdfs:subClassOf erhf:ConstraintFlow .
rdf:type erhf:FlowQualifier .
erhf:ConstraintFlow-minimum
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdfs:subClassOf erhf:ConstraintFlow .
rdf:type erhf:FlowQualifier .
erhf:Consume
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Consume-HPflare
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume-flare .
rdf:type erhf:FlowKind .
erhf:Consume-LPflare
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume-flare .
rdf:type erhf:FlowKind .
erhf:Consume-blackstart
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:Consume-compressor
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:Consume-emitted
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:Consume-flare
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:Consume-fuel
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:Consume-noncompressor
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdf:type erhf:FlowKind ;
rdfs:subClassOf erhf:Consume .
erhf:Consume-venting
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Consume .
rdf:type erhf:FlowKind .
erhf:DerivedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:DerivedFlow-difference
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:DerivedFlow .
erhf:DifferenceFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:EstimatedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Export
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Export-nominated
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Export .
rdf:type erhf:FlowKind .
erhf:Export-requested
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Export .
rdf:type erhf:FlowKind .
erhf:Export-shortfall
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Export .
rdf:type erhf:FlowKind .
erhf:Facility
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
] .
erhf:Field
......@@ -163,13 +141,13 @@ erhf:Field
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:currentActivityStatus
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:operatingCompany
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -178,13 +156,13 @@ erhf:Field
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:nameInField
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:operatingCompany
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:currentActivityStatus
] .
erhf:FixedFacility
......@@ -193,13 +171,13 @@ erhf:FixedFacility
rdfs:subClassOf erhf:Facility ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdid
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:operatingCompany
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:operatingCompany
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdid
] .
erhf:Flow
......@@ -211,61 +189,65 @@ erhf:Flow
owl:onProperty erhf:erhname
] .
erhf:FlowKind
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:FlowQualifier
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:ForecastFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:ForecastFlow-declineCurve
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:ForecastFlow .
erhf:ForecastFlow-standard
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:ForecastFlow .
erhf:Gaslift
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:HydrocarbonAccounting
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Import
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Injection
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Inventory
rdf:type erhf:FlowKind .
erhf:Licence
rdf:type owl:Class ;
rdfs:subClassOf erhf:Owner .
erhf:MassAdjustedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:MeasuredFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:MeasuredFlow-fiscal
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:MeasuredFlow .
erhf:MeasuredFlow-raw
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:MeasuredFlow .
erhf:MeasuredFlow-recalibrated
rdf:type erhf:ProductionFlowDefinitionSubType , owl:Class ;
rdf:type owl:Class ;
rdfs:subClassOf erhf:MeasuredFlow .
erhf:MeteredFlowFiscal
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:MoveableFacility
rdf:type owl:Class ;
......@@ -273,22 +255,20 @@ erhf:MoveableFacility
rdfs:subClassOf erhf:Facility ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdid
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:responsibleCompany
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:responsibleCompany
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdid
] .
erhf:NominatedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Overboard
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:Owner
rdf:type owl:Class ;
......@@ -296,81 +276,59 @@ erhf:Owner
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdid
owl:onProperty erhf:npdname
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty erhf:npdname
owl:onProperty erhf:npdid
] .
erhf:PotentialFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:ProcessedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Production
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
erhf:ProductionFlowDefinitionSubType
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:ProductionFlowDefinitionType
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
rdf:type erhf:FlowKind .
erhf:ProductionTestFlowLineFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class .
erhf:ProductionTestGasLiftFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:ProductionTestSeparatorFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class .
erhf:ProductionTestWellHeadFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class .
erhf:QuotaFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:RecommendedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Sale
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:SaleableFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:SimulatedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Storage
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowKind .
erhf:TargetFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:TariffBasisFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:TransportationUtilizationFacility
rdf:type owl:Class ;
......@@ -382,9 +340,11 @@ erhf:TransportationUtilizationFacility
owl:onProperty erhf:npdid
] .
erhf:Unknown
rdf:type erhf:FlowKind .
erhf:ValueAdjustedFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type erhf:FlowQualifier .
erhf:Well
rdf:type owl:Class ;
......@@ -400,12 +360,11 @@ erhf:Wellbore
] .
erhf:WholeLifeProductFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class .
erhf:WholeLifeProductionFlow
rdf:type erhf:ProductionFlowDefinitionType , owl:Class ;
rdfs:subClassOf erhf:Flow .
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
erhf:belongsTo
rdf:type owl:ObjectProperty ;
......
# baseURI: http://www.reportinghub.no/erhf/transform/npdfacts-erhf
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/erhf/schema/1.0/erh-facts
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://www.reportinghub.no/np/schema/1.0/npd
@prefix npdfacts-erhf: <http://www.reportinghub.no/erhf/transform/npdfacts-erhf#> .
......@@ -15,6 +16,7 @@
<http://www.reportinghub.no/ep/schema/facility#Facility>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1070 Make Facility except Field"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Facility> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -29,7 +31,12 @@
sp:predicate <http://www.reportinghub.no/erhf/schema/erh-facts#npdname> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
sp:predicate rdf:type ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "npdid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
......@@ -45,6 +52,7 @@
<http://www.reportinghub.no/ep/schema/facility#Field>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1060 Make Field"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Field> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -75,6 +83,7 @@
<http://www.reportinghub.no/ep/schema/well#Well>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1050 Make Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Well> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -95,6 +104,7 @@
<http://www.reportinghub.no/ep/schema/well#WellBore>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1030 Make Wellbore"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Wellbore> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -124,12 +134,13 @@
<http://www.reportinghub.no/erhf/transform/npdfacts-erhf>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/erhf/schema/1.0/erh-facts> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/erhf/schema/1.0/erh-facts> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1020 Make BAA"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#BAA> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -160,6 +171,7 @@
<http://www.reportinghub.no/np/schema/npd#Licence>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1010 Make Licence"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Licence> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......@@ -190,6 +202,7 @@
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "1000 make Company"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/erhf/schema/erh-facts#Company> ;
sp:predicate rdf:type ;
sp:subject spin:_this
......
......@@ -12,5 +12,7 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
......