David Leal

Upgrade of MPR flow processing to use flowFacts.

...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
23 23
24 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> 24 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
25 rdf:type owl:Ontology ; 25 rdf:type owl:Ontology ;
26 - 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-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; 26 + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
27 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 27 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
28 28
29 ep-mpr-spin-lib:Function 29 ep-mpr-spin-lib:Function
...@@ -4051,7 +4051,7 @@ ep-mpr-spin-lib:selectProductionFlowDefinitionSubType ...@@ -4051,7 +4051,7 @@ ep-mpr-spin-lib:selectProductionFlowDefinitionSubType
4051 sp:arg2 <http://www.epim.no/schemas/mprml/1#FSQ_standard> 4051 sp:arg2 <http://www.epim.no/schemas/mprml/1#FSQ_standard>
4052 ] ; 4052 ] ;
4053 sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ForecastFlow-standard> ; 4053 sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ForecastFlow-standard> ;
4054 - sp:arg3 <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> 4054 + sp:arg3 <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
4055 ] 4055 ]
4056 ] 4056 ]
4057 ] 4057 ]
...@@ -4191,7 +4191,7 @@ ep-mpr-spin-lib:selectProductionFlowDefinitionType ...@@ -4191,7 +4191,7 @@ ep-mpr-spin-lib:selectProductionFlowDefinitionType
4191 sp:arg2 <http://www.epim.no/schemas/mprml/1#FQ_massadjusted> 4191 sp:arg2 <http://www.epim.no/schemas/mprml/1#FQ_massadjusted>
4192 ] ; 4192 ] ;
4193 sp:arg2 <http://www.reportinghub.no/ep/schema/flow#MassAdjustedFlow> ; 4193 sp:arg2 <http://www.reportinghub.no/ep/schema/flow#MassAdjustedFlow> ;
4194 - sp:arg3 <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> 4194 + sp:arg3 <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
4195 ] 4195 ]
4196 ] 4196 ]
4197 ] 4197 ]
...@@ -4432,8 +4432,8 @@ ep-mpr-spin-lib:selectProductionFlowPurposeType ...@@ -4432,8 +4432,8 @@ ep-mpr-spin-lib:selectProductionFlowPurposeType
4432 sp:arg1 spin:_arg1 ; 4432 sp:arg1 spin:_arg1 ;
4433 sp:arg2 <http://www.epim.no/schemas/mprml/1#ReportingFlow_RF_unknown> 4433 sp:arg2 <http://www.epim.no/schemas/mprml/1#ReportingFlow_RF_unknown>
4434 ] ; 4434 ] ;
4435 - sp:arg2 <http://www.reportinghub.no/ep/schema/flow#WholeLifeFlow> ; 4435 + sp:arg2 <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
4436 - sp:arg3 <http://www.reportinghub.no/ep/schema/flow#WholeLifeFlow> 4436 + sp:arg3 <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
4437 ] 4437 ]
4438 ] 4438 ]
4439 ] 4439 ]
......
This diff is collapsed. Click to expand it.
1 +# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
2 +# imports: http://www.reportinghub.no/ep/schema/1.0/flow
3 +
4 +@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
5 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9 +
10 +<http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema>
11 + rdf:type owl:Ontology ;
12 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> ;
13 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
14 +
15 +flowFacts:possibleTemporalPartName
16 + rdf:type owl:DatatypeProperty ;
17 + rdfs:domain <http://www.reportinghub.no/ep/schema/flow#Flow> ;
18 + rdfs:label "possible temporal part name"^^xsd:string .
1 +# baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
4 +# imports: http://www.reportinghub.no/np/data/npd
5 +# imports: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
6 +
7 +@prefix : <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest#> .
8 +@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
9 +@prefix TRYM-DPR2.0-28-FEB-2012-dpr2-ONE-VOLUME: <file:///www.reportinghub.no/test/dpr2/testcase/epim-dpr2/PL147/tqedits/TRYM-DPR2.0-28-FEB-2012-dpr2-ONE-VOLUME.xml#> .
10 +@prefix flow_facts: <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
11 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
12 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
13 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 +@prefix sp: <http://spinrdf.org/sp#> .
15 +@prefix spin: <http://spinrdf.org/spin#> .
16 +@prefix spl: <http://spinrdf.org/spl#> .
17 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 +
19 +<http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest>
20 + rdf:type owl:Ontology ;
21 + owl:imports <http://www.reportinghub.no/test/flow_facts_examples/flow_facts> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
22 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + <http://spinrdf.org/spin#topSPINOptions>
16 + "singlePass" ;
17 + composite:index "0"^^xsd:int
18 + ] ;
19 + inference:completeMode
20 + "true"^^xsd:boolean .
1 +# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
2 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
6 +# imports: http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type
7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
9 +# imports: http://www.reportinghub.no/ep/schema/1.0/flow
10 +# imports: http://www.reportinghub.no/ep/schema/1.0/geography
11 +# imports: http://www.reportinghub.no/ep/schema/1.0/material
12 +# imports: http://www.reportinghub.no/ep/schema/1.0/organization
13 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
14 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
15 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
16 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-well
17 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
18 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
19 +# imports: http://www.reportinghub.no/np/data/npd
20 +# imports: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
21 +
22 +@prefix : <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
23 +@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
24 +@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
25 +@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
26 +@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
27 +@prefix ep-eqt: <http://www.reportinghub.no/ep/schema/equipment#> .
28 +@prefix ep-flow: <http://www.reportinghub.no/ep/schema/flow#> .
29 +@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
30 +@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
31 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
32 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
33 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
34 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
35 +
36 +<http://www.reportinghub.no/test/flow_facts_examples/flow_facts>
37 + rdf:type owl:Ontology ;
38 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/drilling> ;
39 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
40 +
41 +<https://reportinghub.no/ep/schema/flowRegistry#Flow-000001>
42 + rdf:type ep-flow:MeteredFlowFiscal , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow , ep-flow:Production , ep-flow:Flow ;
43 + rdfs:comment "Fiscal metered total gross gas in Nm3 for Oselvar -> stream pipe 1 and 2 combined"^^xsd:string ;
44 + rdfs:label "flow 000001"^^xsd:string ;
45 + ep-activity:startedAt
46 + "2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
47 + ep-core:name "000001"^^xsd:string ;
48 + ep-flow:flowIntoOrOutOf
49 + <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
50 + flowFacts:possibleTemporalPartName
51 + "OSL GAS STATION PROD FISCAL GAS"^^xsd:string .
52 +
53 +<https://reportinghub.no/ep/schema/flowRegistry#Flow-000002>
54 + rdf:type ep-flow:Flow , ep-flow:Consume , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow ;
55 + rdfs:label "flow 000002"^^xsd:string ;
56 + ep-activity:startedAt
57 + "2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
58 + ep-core:name "000002"^^xsd:string ;
59 + ep-core:partOf <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
60 + ep-flow:flowIntoOrOutOf
61 + <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
62 + flowFacts:possibleTemporalPartName
63 + "OSL MEG TANK1 CONS MEAS CHEM"^^xsd:string , "OSL MEG TANK2 CONS MEAS CHEM"^^xsd:string .
64 +
65 +<https://www.reportinghub.no/ep/data/tank/DONG$TK0420>
66 + rdf:type ep-eqt:Tank ;
67 + ep-core:name "TK0420"^^xsd:string .
68 +
69 +<https://www.reportinghub.no/ep/data/tank/DONG$TK0421>
70 + rdf:type ep-eqt:Tank ;
71 + ep-core:name "TK0421"^^xsd:string .