David Price

Stock ownership working again

......@@ -2257,23 +2257,23 @@ mpr-tables:ProductionInventoryOwnership
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionInventorysInPeriod"^^xsd:string
[ sp:varName "productionInventoryCollection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionInventorysInPeriod"^^xsd:string
[ sp:varName "productionInventoryCollection"^^xsd:string
]
] [ sp:object
[ sp:varName "productionInventoryInPeriod"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "productionInventorysInPeriod"^^xsd:string
[ sp:varName "productionInventoryCollection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
......@@ -2281,19 +2281,17 @@ mpr-tables:ProductionInventoryOwnership
[ sp:varName "productionInventoryInPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productionInventoryWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionInventoryInPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "component"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
sp:subject
[ sp:varName "productionInventoryInPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object
[ sp:varName "component"^^xsd:string
] ;
......@@ -2307,73 +2305,76 @@ mpr-tables:ProductionInventoryOwnership
[ sp:varName "monthobject"^^xsd:string
]
] [ sp:object
[ sp:varName "materialInventory"^^xsd:string
[ sp:varName "productInventoryPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "monthobject"^^xsd:string
]
] [ sp:object
[ sp:varName "piPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "monthobject"^^xsd:string
[ sp:varName "productInventoryPart"^^xsd:string
]
] [ sp:object
[ sp:varName "piWholeMaterial"^^xsd:string
[ sp:varName "productInventoryWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "piPart"^^xsd:string
[ sp:varName "productInventoryPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventoryWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "piWholeMaterial"^^xsd:string
[ sp:varName "productInventoryWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
sp:subject
[ sp:varName "piWhole"^^xsd:string
[ sp:varName "productionInventoryWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "piWhole"^^xsd:string
[ sp:varName "productionInventoryWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "monthobject"^^xsd:string
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "ownedPartOfMonthObject"^^xsd:string
[ sp:varName "productionInventoryWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "ownedMaterialInventory"^^xsd:string
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "ownedPartOfMonthObject"^^xsd:string
[ sp:varName "facility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "monthobject"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "ownedPartOfMonthObject"^^xsd:string
[ sp:varName "closingBalance"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "ownedMaterialInventory"^^xsd:string
[ sp:varName "closingBalance"^^xsd:string
]
] [ sp:object
[ sp:varName "ownedMaterialInventory"^^xsd:string
[ sp:varName "closingBalance"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
[ sp:varName "ownedMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
[ sp:varName "ownedMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
......@@ -2403,7 +2404,7 @@ mpr-tables:ProductionInventoryOwnership
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ;
sp:subject
[ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
[ sp:varName "ownedMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "owningOrg"^^xsd:string
......