David Price

Added production flows all to work on

...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 15
16 <http://www.reportinghub.no/ep/spin/mpr-tables> 16 <http://www.reportinghub.no/ep/spin/mpr-tables>
17 rdf:type owl:Ontology ; 17 rdf:type owl:Ontology ;
18 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://spinrdf.org/spin> ; 18 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
20 20
21 mpr-tables:ProductionFlows 21 mpr-tables:ProductionFlows
...@@ -398,6 +398,102 @@ mpr-tables:ProductionFlows ...@@ -398,6 +398,102 @@ mpr-tables:ProductionFlows
398 ] ; 398 ] ;
399 rhspin:tableHeaders ("facility"^^xsd:string "flow name"^^xsd:string "type"^^xsd:string "subtype"^^xsd:string "purpose"^^xsd:string "product"^^xsd:string "material type"^^xsd:string "gross or net"^^xsd:string "duration type"^^xsd:string "mass (kg)"^^xsd:string "pressure (atm)"^^xsd:string "temperature (C)"^^xsd:string "volume (m^3"^^xsd:string "gross calorific value (MJ/m^3)"^^xsd:string) . 399 rhspin:tableHeaders ("facility"^^xsd:string "flow name"^^xsd:string "type"^^xsd:string "subtype"^^xsd:string "purpose"^^xsd:string "product"^^xsd:string "material type"^^xsd:string "gross or net"^^xsd:string "duration type"^^xsd:string "mass (kg)"^^xsd:string "pressure (atm)"^^xsd:string "temperature (C)"^^xsd:string "volume (m^3"^^xsd:string "gross calorific value (MJ/m^3)"^^xsd:string) .
400 400
401 +mpr-tables:ProductionFlowsAll
402 + rdf:type rhspin:TableTemplate ;
403 + rdfs:label "Production flows - All"^^xsd:string ;
404 + rdfs:subClassOf rhspin:MPRGTableTemplates ;
405 + spin:body
406 + [ rdf:type sp:Select ;
407 + sp:resultVariables ([ sp:varName "productionFlowFacilityName"^^xsd:string
408 + ] [ sp:varName "productionFlowPurposeTypeName"^^xsd:string
409 + ]) ;
410 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
411 + sp:predicate rdf:type ;
412 + sp:subject
413 + [ sp:varName "productionReport"^^xsd:string
414 + ]
415 + ] [ sp:object
416 + [ sp:varName "productionReport"^^xsd:string
417 + ] ;
418 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
419 + sp:subject
420 + [ sp:varName "productVolumeReport"^^xsd:string
421 + ]
422 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
423 + sp:predicate rdf:type ;
424 + sp:subject
425 + [ sp:varName "productVolumeReport"^^xsd:string
426 + ]
427 + ] [ sp:object
428 + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
429 + ] ;
430 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
431 + sp:subject
432 + [ sp:varName "productVolumeReport"^^xsd:string
433 + ]
434 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
435 + sp:predicate rdf:type ;
436 + sp:subject
437 + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
438 + ]
439 + ] [ sp:object
440 + [ sp:varName "productionFlowInReportingPeriod"^^xsd:string
441 + ] ;
442 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
443 + sp:subject
444 + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
445 + ]
446 + ] [ sp:object
447 + [ sp:varName "productionFlow"^^xsd:string
448 + ] ;
449 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
450 + sp:subject
451 + [ sp:varName "productionFlowInReportingPeriod"^^xsd:string
452 + ]
453 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
454 + sp:predicate rdf:type ;
455 + sp:subject
456 + [ sp:varName "productionFlow"^^xsd:string
457 + ]
458 + ] [ sp:object
459 + [ sp:varName "productionFlowFacility"^^xsd:string
460 + ] ;
461 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
462 + sp:subject
463 + [ sp:varName "productionFlow"^^xsd:string
464 + ]
465 + ] [ sp:object
466 + [ sp:varName "productionFlowFacilityName"^^xsd:string
467 + ] ;
468 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
469 + sp:subject
470 + [ sp:varName "productionFlowFacility"^^xsd:string
471 + ]
472 + ] [ rdf:type sp:Optional ;
473 + sp:elements ([ sp:object
474 + [ sp:varName "productionFlowPurposeType"^^xsd:string
475 + ] ;
476 + sp:predicate rdf:type ;
477 + sp:subject
478 + [ sp:varName "productionFlow"^^xsd:string
479 + ]
480 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ;
481 + sp:predicate rdf:type ;
482 + sp:subject
483 + [ sp:varName "productionFlowPurposeType"^^xsd:string
484 + ]
485 + ] [ sp:object
486 + [ sp:varName "productionFlowPurposeTypeName"^^xsd:string
487 + ] ;
488 + sp:predicate rdfs:label ;
489 + sp:subject
490 + [ sp:varName "productionFlowPurposeType"^^xsd:string
491 + ]
492 + ])
493 + ])
494 + ] ;
495 + rhspin:tableHeaders ("facility"^^xsd:string "purpose"^^xsd:string) .
496 +
401 mpr-tables:ProductionInventory 497 mpr-tables:ProductionInventory
402 rdf:type rhspin:TableTemplate ; 498 rdf:type rhspin:TableTemplate ;
403 rdfs:label "Production inventory"^^xsd:string ; 499 rdfs:label "Production inventory"^^xsd:string ;
......
...@@ -160,6 +160,7 @@ OPTIONAL { ...@@ -160,6 +160,7 @@ OPTIONAL {
160 160
161 161
162 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlows" /> 162 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlows" />
163 + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
163 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" /> 164 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" />
164 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryAll" /> 165 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryAll" />
165 166
......