David Price

Rebuilt erh facts from MPR G and DPR 2 files with flowIntoOutOf for NPD things

Showing 25 changed files with 114 additions and 116 deletions
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/asgard-flow-facts.tsv.semtables>
<file:///www.reportinghub.no/test/flow_facts/data/asgard-dpr2-flow-fact-ss.tsv.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
tables:imports <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
......
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/flow-fact-updated.tsv.semtables>
<file:///www.reportinghub.no/test/flow_facts/data/asgard-mprg-flow-fact-ss.tsv.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2> ;
tables:imports <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
......
# baseURI: http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector
# imports: file:///www.reportinghub.no/test/flow_facts/data/asgard-dpr2-flow-fact-ss.tsv
# imports: file:///www.reportinghub.no/test/flow_facts/data/asgard-mprg-flow-fact-ss.tsv
# imports: file:///www.reportinghub.no/test/flow_facts/data/trym-dpr2-flow-fact-ss.tsv
# imports: file:///www.reportinghub.no/test/flow_facts/data/trym-mprg-flow-fact-ss.tsv
@prefix flow-fact-collector: <http://www.reportinghub.no/test/flow_facts/data/flow-fact-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/flow_facts/data/flow-fact-collector>
rdf:type owl:Ontology ;
owl:imports <file:///www.reportinghub.no/test/flow_facts/data/asgard-dpr2-flow-fact-ss.tsv> , <file:///www.reportinghub.no/test/flow_facts/data/asgard-mprg-flow-fact-ss.tsv> , <file:///www.reportinghub.no/test/flow_facts/data/trym-dpr2-flow-fact-ss.tsv> , <file:///www.reportinghub.no/test/flow_facts/data/trym-mprg-flow-fact-ss.tsv> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema
# imports: http://topbraid.org/tables
@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 ss: <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema#> .
@prefix tables: <http://topbraid.org/tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/tables> .
ss:FieldNPDName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FieldNPDName"^^xsd:string ;
rdfs:range xsd:string ;
tables:columnIndex "0"^^xsd:int .
ss:fieldNPDID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FieldNPDID" ;
rdfs:range xsd:string ;
tables:columnIndex "1"^^xsd:int .
ss:flow-facts
rdf:type owl:Class ;
rdfs:label "flow-facts"^^xsd:string ;
tables:sheetIndex "0"^^xsd:int .
ss:flowKind
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowKind" ;
rdfs:range xsd:string ;
tables:columnIndex "4"^^xsd:int .
ss:flowName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowName" ;
rdfs:range xsd:string ;
tables:columnIndex "3"^^xsd:int .
ss:flowQualifier
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowQualifier" ;
rdfs:range xsd:string ;
tables:columnIndex "5"^^xsd:int .
ss:flowUID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowUID" ;
rdfs:range xsd:string ;
tables:columnIndex "2"^^xsd:int .
[FieldNPDName] FieldNPDID FlowInOutFacilityName FlowInOutFacilityType FlowInOutFacilityNameSystem FlowUID FlowName FlowKind FlowQualifier
TRYM 18081500 3/7-A-1 AH mpr:RF_wellbore NPD TRY_WB_A1_AH_ALLOCATED_PROD_VOLUMES 3/7-A-1 AH allocated production volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 3/7-A-1 AH mpr:RF_wellbore NPD TRY_WB_A1_AH_ALLOCATED_INJ_VOLUMES 3/7-A-1 AH allocated injection volumes mpr:RF_injection mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_GAS_INJECTION_TOT Trym injected gas mpr:RF_injection mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CHEMICAL_INJECTION Trym injection of chemicals mpr:RF_injection mpr:FQ_measured
TRYM 18081500 TRYM mpr:RF_field NPD TRY_FISCAL_FIELD_VOLUMES Trym measured total volumes mpr:RF_production mpr:FQ_metered-fiscal
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CONSUME_FUEL_DRILLING Trym consumed drilling fuel mpr:RF_consume-fuel mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CONSUME_FUEL_WAT_INJ Trym consumed water injection fuel mpr:RF_consume-fuel mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_SALEABLE_PRODUCTION Trym saleable volumes mpr:RF_production mpr:FQ_saleable
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CONSUME_FLARE_EXCESS Trym consumed excess flare mpr:RF_consume-flare mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_ALLOCATED_PRODUCTION Trym allocated volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CONSUME_FLARE_TOT Trym consumed flare excluding excess flare mpr:RF_consume-flare mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_CONSUME_FUEL_TOT Trym consumed total fuel mpr:RF_consume-fuel mpr:FQ_allocated
TRYM 18081500 3/7-A-2 H mpr:RF_wellbore NPD TRY_WB_A2_H_ALLOCATED_INJ_VOLUMES 3/7-A-2 H allocated injection volumes mpr:RF_injection mpr:FQ_allocated
TRYM 18081500 3/7-A-2 H mpr:RF_wellbore NPD TRY_WB_A2_H_ALLOCATED_PROD_VOLUMES 3/7-A-2 H allocated production volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 Fiscal metering station 1 mpr:RF_flowmeter DONG TRY_MPM1_FISCAL_VOLUMES Trym MPM1 measured volumes mpr:RF_production mpr:FQ_metered-fiscal
TRYM 18081500 TRYM compressor D32 mpr:RF_compressor DONG TRY_COMPRESSOR_D32_VOLUMES Trym compressor D32 measured volumes mpr:RF_production mpr:FQ_metered-fiscal
TRYM 18081500 TRYM compressor D34 mpr:RF_compressor DONG TRY_COMPRESSOR_D34_VOLUMES Trym compressor D34 measured volumes mpr:RF_production mpr:FQ_metered-fiscal
TRYM 18081500 MPD2 mpr:RF_flowmeter DONG TRY_MPM2_FISCAL_VOLUMES Trym MPM2 measured volumes mpr:RF_production mpr:FQ_metered-fiscal
TRYM 18081500 MPD5 mpr:RF_flowmeter DONG TRY_MPD5_FISCAL_VOLUMES Trym MPD5 measured volumes mpr:RF_production mpr:FQ_metered-fiscal
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/trym-dpr2-flow-fact-ss.tsv.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/trym-flow-facts.xls.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
[FieldNPDName] FieldNPDID FlowInOutFacilityName FlowInOutFacilityType FlowInOutFacilityNameSystem FlowUID FlowName FlowKind FlowQualifier
TRYM 18081500 TRYM mpr:RF_field NPD TRY_ALLOCATED_PRODUCTION Trym allocated volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 TRYM mpr:RF_field NPD TRY_SALEABLE_PRODUCTION Trym saleable volumes mpr:RF_production mpr:FQ_saleable
TRYM 18081500 3/7-A-1 AH mpr:RF_wellbore NPD TRY_WB_7A1_AH_ALLOCATED_PROD_VOLUMES 3/7-A-1 AH allocated production volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 3/7-A-2 H mpr:RF_wellbore NPD TRY_WB_7A2_H_ALLOCATED_PROD_VOLUMES 3/7-A-2 H allocated production volumes mpr:RF_production mpr:FQ_allocated
TRYM 18081500 FREDERICIA mpr:RF_terminal NPD FRED_ALLOCATED_HYDROCOUNT Fredericia allocated hydrocarbon counting lifted by tanker mpr:RF_hydrocarbonaccounting mpr:FQ_allocated
TRYM 18081500 FREDERICIA mpr:RF_terminal NPD FRED_ALLLOCATED_INVENTORY Fredericia allocated inventory volumes mpr:RF_inventory mpr:FQ_allocated
TRYM 18081500 NYBRO mpr:RF_terminal NPD NYBRO_ALLOCATED_GAS_SALES Nybro allocated gas sales mpr:RF_sale mpr:FQ_allocated
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/trym-mprg-flow-fact-ss.tsv.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
# baseURI: http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2
# baseURI: http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema
# imports: http://topbraid.org/tables
@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 ss: <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#> .
@prefix ss: <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#> .
@prefix tables: <http://topbraid.org/tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2>
<http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/tables> .
ss:FieldNPDName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "[FieldNPDName]" ;
rdfs:range xsd:string ;
tables:columnIndex "0"^^xsd:int .
ss:fact
rdf:type owl:Class ;
rdfs:label "fact"^^xsd:string ;
tables:sheetIndex "0"^^xsd:int .
ss:fieldNPDID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FieldNPDID" ;
rdfs:range xsd:string ;
tables:columnIndex "1"^^xsd:int .
ss:flow-fact
rdf:type owl:Class ;
rdfs:label "flow-fact-updated" ;
tables:sheetIndex "0"^^xsd:int .
ss:flowInOutFacilityName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowInOutFacilityName" ;
rdfs:range xsd:string ;
tables:columnIndex "2"^^xsd:int .
ss:flowInOutFacilityNameSystem
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowInOutFacilityNameSystem" ;
rdfs:range xsd:string ;
tables:columnIndex "4"^^xsd:int .
ss:flowInOutFacilityType
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:fact ;
rdfs:label "FlowInOutFacilityType" ;
rdfs:range xsd:string ;
tables:columnIndex "3"^^xsd:int .
ss:flowKind
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowKind" ;
rdfs:range xsd:string ;
tables:columnIndex "6"^^xsd:int .
tables:columnIndex "7"^^xsd:int .
ss:flowName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowName" ;
rdfs:range xsd:string ;
tables:columnIndex "5"^^xsd:int .
tables:columnIndex "6"^^xsd:int .
ss:flowQualifier
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowQualifier" ;
rdfs:range xsd:string ;
tables:columnIndex "7"^^xsd:int .
tables:columnIndex "8"^^xsd:int .
ss:flowUID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-fact ;
rdfs:domain ss:fact ;
rdfs:label "FlowUID" ;
rdfs:range xsd:string ;
tables:columnIndex "4"^^xsd:int .
tables:columnIndex "5"^^xsd:int .
......
# 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#> .
<http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flow-fact>
forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flowInOutFacilityName> <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flowInOutFacilityNameSystem>) .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
......@@ -9,12 +9,19 @@
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/facility#SubSurfaceFixedFacility>
forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/np/schema/npd#name>) .
<http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility>
forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/np/schema/npd#name>) .
<http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#fact>
forms:keyProperties (<http://www.reportinghub.no/np/schema/npd#name> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowInOutFacilityType> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowInOutFacilityName> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowKind> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowQualifier> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowName> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowUID> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#FieldNPDName> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#flowInOutFacilityNameSystem> <http://www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema#fieldNPDID>) .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] ;
inference:completeMode
"true"^^xsd:boolean .
] .
......
# baseURI: http://www.reportinghub.no/test/flow_facts/transform/mprxml-read
# imports: http://www.epim.no/schemas/mprml/1
@prefix mprxml-read: <http://www.reportinghub.no/test/flow_facts/transform/mprxml-read#> .
@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/flow_facts/transform/mprxml-read>
rdf:type owl:Ontology ;
owl:imports <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
SELECT ?FieldNPDName ?FieldNPDID ?FlowInOutFacilityName ?FlowInOutFacilityNameSystem ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
SELECT ?FieldNPDName ?FieldNPDID ?FlowInOutFacilityName ?FlowInOutFacilityType ?FlowInOutFacilityNameSystem ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
WHERE {
?obj_productvolume rdf:type mpr:Obj_productVolume .
?obj_productvolume mpr:facilityRef ?cs_productvolumefacility .
......@@ -13,6 +13,7 @@ WHERE {
?cs_productvolumefacility mpr:nameRef ?cs_productvolumefacilityname.
?cs_productvolumefacilityname mpr:namingSystem ?FlowInOutFacilityNameSystem .
?cs_productvolumefacilityname dtype:value ?FlowInOutFacilityName .
?cs_productvolumefacilityname mpr:kindRef ?FlowInOutFacilityType .
?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow .
?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow .
......