David Price

Working fix to inventory HTML gen MPRG

......@@ -2039,7 +2039,7 @@ mpr-tables:ProductionInventory
[ sp:varName "productionInventoryInPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productInventory"^^xsd:string
[ sp:varName "productInventoryInPeriod"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
sp:subject
......@@ -2048,13 +2048,6 @@ mpr-tables:ProductionInventory
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "productInventory"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productInventoryInPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
......@@ -2087,7 +2080,7 @@ mpr-tables:ProductionInventory
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productInventory"^^xsd:string
[ sp:varName "productInventoryInPeriod"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
......@@ -2168,7 +2161,7 @@ mpr-tables:ProductionInventory
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
[ sp:varName "productInventoryInPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productInventoryWholeType"^^xsd:string
......@@ -2199,7 +2192,7 @@ mpr-tables:ProductionInventory
] [ sp:object
[ sp:varName "productionInventoryWholeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:predicate <http://www.reportinghub.no/ep/schema/erhfacts#name> ;
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
......@@ -2442,7 +2435,7 @@ mpr-tables:ProductionInventoryOwnership
] [ sp:object
[ sp:varName "productionInventoryWholeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:predicate <http://www.reportinghub.no/ep/schema/erhfacts#name> ;
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
......
......@@ -17,10 +17,10 @@
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY>
ep-material:hasComponent
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET$NET> .
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET> .
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET$NET>
rdf:type ep-flow:ProductInventory , ep-flow:WholeLifeProductInventory .
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET>
rdf:type ep-flow:NetProductFlow , ep-flow:ProductInventory , ep-flow:WholeLifeProductInventory , ep-material:Oil-net .
<http://www.reportinghub.no/np/data/npd/Facility-416595>
rdf:type ep-fac:ProductionFacility .
......@@ -159,46 +159,50 @@
_:b3 rdf:type ep-flow:ProductInventoryClosingBalance , ep-material:QuantityOfMaterial ;
ep-core:partOf _:b2 .
_:b2 rdf:type ep-core:PhysicalThingDuringOneMonth , ep-flow:ProductInventory ;
_:b2 rdf:type ep-core:PhysicalThingDuringOneMonth , ep-flow:Inventory , ep-flow:ProductInventory ;
ep-activity:finishedAt
"2012-02-29"^^xsd:date ;
ep-activity:startedAt
"2012-02-01"^^xsd:date ;
ep-core:temporalPartOf
_:b4 ;
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET> ;
ep-flow:massAtAccountingInstant
[ rdf:type ep-core:Mass ;
ep-core:kilogram "64.55"^^xsd:double
] .
_:b4 rdf:type ep-flow:Inventory , ep-flow:ProductInventory ;
ep-core:temporalPartOf
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY$OIL_NET$NET> .
[] rdf:type ep-flow:Inventory , ep-flow:ProductionInventory ;
ep-core:name "Fredericia allocated inventory volumes"^^xsd:string ;
ep-core:temporalPartOf
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY> ;
ep-material:hasComponent
_:b4 .
[] rdf:type ep-fac:SurfaceFixedFacility , ep-fac:TemporalPartOfAProductionFacility ;
ep-core:temporalPartOf
<http://www.reportinghub.no/np/data/npd/Facility-416595> .
_:b5 rdf:type ep-flow:ProductionInventoryCollectionToDate ;
_:b4 rdf:type ep-flow:ProductionInventoryCollectionToDate ;
ep-activity:finishedAt
"2012-02-29"^^xsd:date .
_:b6 rdf:type ep-flow:ProductionInventoryCollection ;
_:b5 rdf:type ep-flow:ProductionInventoryCollection ;
ep-activity:finishedAt
"2012-02-29"^^xsd:date ;
ep-activity:startedAt
"2012-02-01"^^xsd:date ;
ep-core:hasSpatialPart
[ rdf:type ep-flow:AllocatedFlow , ep-flow:Inventory , ep-flow:ProductionInventory ;
ep-activity:finishedAt
"2012-02-29"^^xsd:date ;
ep-activity:startedAt
"2012-02-01"^^xsd:date ;
ep-core:name "Fredericia allocated inventory volumes"^^xsd:string ;
ep-core:temporalPartOf
_:b5 .
<http://www.reportinghub.no/data/erh/Field-18081500-Flow-FRED_ALLLOCATED_INVENTORY> ;
ep-material:hasComponent
_:b2
] ;
ep-core:temporalPartOf
_:b4 .
[] rdf:type ep-report:ProductVolumeReport , ep-report:Report ;
rdfs:comment "A whole life production flow has not been found with UID 'FRED_ALLLOCATED_INVENTORY' ." ;
ep-core:name "TRYM"^^xsd:string ;
ep-core:partOf <https://www.reportinghub.no/ep/data/productionReport/FIELD-18081500$2012-02-01$2012-02-29> ;
ep-report:reportOn _:b6 , _:b1 .
ep-report:reportOn _:b5 , _:b1 .
[] rdf:type ep-activity:IssueAReport ;
ep-activity:issuedFrom
......@@ -222,7 +226,7 @@ _:b1 rdf:type ep-fac:TemporalPartOfAProductionFacility ;
ep-activity:startedAt
"2012-02-01"^^xsd:date ;
ep-core:hasSpatialPart
_:b6 ;
_:b5 ;
ep-core:temporalPartOf
<http://www.reportinghub.no/np/data/npd/Field-18081500> ;
ep-core:temporalPartOf
......@@ -230,7 +234,7 @@ _:b1 rdf:type ep-fac:TemporalPartOfAProductionFacility ;
ep-activity:finishedAt
"2012-02-29"^^xsd:date ;
ep-core:hasSpatialPart
_:b5 ;
_:b4 ;
ep-core:temporalPartOf
<http://www.reportinghub.no/np/data/npd/Field-18081500>
] .
......