David Price

Stock ownership working again

...@@ -2257,23 +2257,23 @@ mpr-tables:ProductionInventoryOwnership ...@@ -2257,23 +2257,23 @@ mpr-tables:ProductionInventoryOwnership
2257 [ sp:varName "productVolumeReport"^^xsd:string 2257 [ sp:varName "productVolumeReport"^^xsd:string
2258 ] 2258 ]
2259 ] [ sp:object 2259 ] [ sp:object
2260 - [ sp:varName "productionInventorysInPeriod"^^xsd:string 2260 + [ sp:varName "productionInventoryCollection"^^xsd:string
2261 ] ; 2261 ] ;
2262 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 2262 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
2263 sp:subject 2263 sp:subject
2264 [ sp:varName "productVolumeReport"^^xsd:string 2264 [ sp:varName "productVolumeReport"^^xsd:string
2265 ] 2265 ]
2266 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; 2266 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
2267 sp:predicate rdf:type ; 2267 sp:predicate rdf:type ;
2268 sp:subject 2268 sp:subject
2269 - [ sp:varName "productionInventorysInPeriod"^^xsd:string 2269 + [ sp:varName "productionInventoryCollection"^^xsd:string
2270 ] 2270 ]
2271 ] [ sp:object 2271 ] [ sp:object
2272 [ sp:varName "productionInventoryInPeriod"^^xsd:string 2272 [ sp:varName "productionInventoryInPeriod"^^xsd:string
2273 ] ; 2273 ] ;
2274 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; 2274 sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
2275 sp:subject 2275 sp:subject
2276 - [ sp:varName "productionInventorysInPeriod"^^xsd:string 2276 + [ sp:varName "productionInventoryCollection"^^xsd:string
2277 ] 2277 ]
2278 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; 2278 ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
2279 sp:predicate rdf:type ; 2279 sp:predicate rdf:type ;
...@@ -2281,19 +2281,17 @@ mpr-tables:ProductionInventoryOwnership ...@@ -2281,19 +2281,17 @@ mpr-tables:ProductionInventoryOwnership
2281 [ sp:varName "productionInventoryInPeriod"^^xsd:string 2281 [ sp:varName "productionInventoryInPeriod"^^xsd:string
2282 ] 2282 ]
2283 ] [ sp:object 2283 ] [ sp:object
2284 - [ sp:varName "productionInventoryWhole"^^xsd:string
2285 - ] ;
2286 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2287 - sp:subject
2288 - [ sp:varName "productionInventoryInPeriod"^^xsd:string
2289 - ]
2290 - ] [ sp:object
2291 [ sp:varName "component"^^xsd:string 2284 [ sp:varName "component"^^xsd:string
2292 ] ; 2285 ] ;
2293 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; 2286 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
2294 sp:subject 2287 sp:subject
2295 [ sp:varName "productionInventoryInPeriod"^^xsd:string 2288 [ sp:varName "productionInventoryInPeriod"^^xsd:string
2296 ] 2289 ]
2290 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
2291 + sp:predicate rdf:type ;
2292 + sp:subject
2293 + [ sp:varName "component"^^xsd:string
2294 + ]
2297 ] [ sp:object 2295 ] [ sp:object
2298 [ sp:varName "component"^^xsd:string 2296 [ sp:varName "component"^^xsd:string
2299 ] ; 2297 ] ;
...@@ -2307,73 +2305,76 @@ mpr-tables:ProductionInventoryOwnership ...@@ -2307,73 +2305,76 @@ mpr-tables:ProductionInventoryOwnership
2307 [ sp:varName "monthobject"^^xsd:string 2305 [ sp:varName "monthobject"^^xsd:string
2308 ] 2306 ]
2309 ] [ sp:object 2307 ] [ sp:object
2310 - [ sp:varName "materialInventory"^^xsd:string 2308 + [ sp:varName "productInventoryPart"^^xsd:string
2311 ] ; 2309 ] ;
2312 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ; 2310 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2313 sp:subject 2311 sp:subject
2314 [ sp:varName "monthobject"^^xsd:string 2312 [ sp:varName "monthobject"^^xsd:string
2315 ] 2313 ]
2316 - ] [ sp:object 2314 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
2317 - [ sp:varName "piPart"^^xsd:string 2315 + sp:predicate rdf:type ;
2318 - ] ;
2319 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2320 sp:subject 2316 sp:subject
2321 - [ sp:varName "monthobject"^^xsd:string 2317 + [ sp:varName "productInventoryPart"^^xsd:string
2322 ] 2318 ]
2323 ] [ sp:object 2319 ] [ sp:object
2324 - [ sp:varName "piWholeMaterial"^^xsd:string 2320 + [ sp:varName "productInventoryWhole"^^xsd:string
2325 ] ; 2321 ] ;
2326 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2322 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2327 sp:subject 2323 sp:subject
2328 - [ sp:varName "piPart"^^xsd:string 2324 + [ sp:varName "productInventoryPart"^^xsd:string
2325 + ]
2326 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductInventory> ;
2327 + sp:predicate rdf:type ;
2328 + sp:subject
2329 + [ sp:varName "productInventoryWhole"^^xsd:string
2329 ] 2330 ]
2330 ] [ sp:object 2331 ] [ sp:object
2331 - [ sp:varName "piWholeMaterial"^^xsd:string 2332 + [ sp:varName "productInventoryWhole"^^xsd:string
2332 ] ; 2333 ] ;
2333 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; 2334 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
2334 sp:subject 2335 sp:subject
2335 - [ sp:varName "piWhole"^^xsd:string 2336 + [ sp:varName "productionInventoryWhole"^^xsd:string
2336 ] 2337 ]
2337 - ] [ sp:object 2338 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionInventory> ;
2338 - [ sp:varName "facilityName"^^xsd:string 2339 + sp:predicate rdf:type ;
2339 - ] ;
2340 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
2341 sp:subject 2340 sp:subject
2342 - [ sp:varName "piWhole"^^xsd:string 2341 + [ sp:varName "productionInventoryWhole"^^xsd:string
2343 ] 2342 ]
2344 ] [ sp:object 2343 ] [ sp:object
2345 - [ sp:varName "monthobject"^^xsd:string 2344 + [ sp:varName "facility"^^xsd:string
2346 ] ; 2345 ] ;
2347 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 2346 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
2348 sp:subject 2347 sp:subject
2349 - [ sp:varName "ownedPartOfMonthObject"^^xsd:string 2348 + [ sp:varName "productionInventoryWhole"^^xsd:string
2350 ] 2349 ]
2351 ] [ sp:object 2350 ] [ sp:object
2352 - [ sp:varName "ownedMaterialInventory"^^xsd:string 2351 + [ sp:varName "facilityName"^^xsd:string
2353 ] ; 2352 ] ;
2354 - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ; 2353 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
2355 sp:subject 2354 sp:subject
2356 - [ sp:varName "ownedPartOfMonthObject"^^xsd:string 2355 + [ sp:varName "facility"^^xsd:string
2357 ] 2356 ]
2358 - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance> ; 2357 + ] [ sp:object
2359 - sp:predicate rdf:type ; 2358 + [ sp:varName "monthobject"^^xsd:string
2359 + ] ;
2360 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
2360 sp:subject 2361 sp:subject
2361 - [ sp:varName "ownedPartOfMonthObject"^^xsd:string 2362 + [ sp:varName "closingBalance"^^xsd:string
2362 ] 2363 ]
2363 - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; 2364 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance> ;
2364 sp:predicate rdf:type ; 2365 sp:predicate rdf:type ;
2365 sp:subject 2366 sp:subject
2366 - [ sp:varName "ownedMaterialInventory"^^xsd:string 2367 + [ sp:varName "closingBalance"^^xsd:string
2367 ] 2368 ]
2368 ] [ sp:object 2369 ] [ sp:object
2369 - [ sp:varName "ownedMaterialInventory"^^xsd:string 2370 + [ sp:varName "closingBalance"^^xsd:string
2370 ] ; 2371 ] ;
2371 sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; 2372 sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
2372 sp:subject 2373 sp:subject
2373 - [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string 2374 + [ sp:varName "ownedMaterial"^^xsd:string
2374 ] 2375 ]
2375 ] [ sp:object 2376 ] [ sp:object
2376 - [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string 2377 + [ sp:varName "ownedMaterial"^^xsd:string
2377 ] ; 2378 ] ;
2378 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2379 sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
2379 sp:subject 2380 sp:subject
...@@ -2403,7 +2404,7 @@ mpr-tables:ProductionInventoryOwnership ...@@ -2403,7 +2404,7 @@ mpr-tables:ProductionInventoryOwnership
2403 ] ; 2404 ] ;
2404 sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ; 2405 sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ;
2405 sp:subject 2406 sp:subject
2406 - [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string 2407 + [ sp:varName "ownedMaterial"^^xsd:string
2407 ] 2408 ]
2408 ] [ sp:object 2409 ] [ sp:object
2409 [ sp:varName "owningOrg"^^xsd:string 2410 [ sp:varName "owningOrg"^^xsd:string
......