SPIN_EP-MPR-tables-v1.0.spin.ttl 32.3 KB
# baseURI: http://www.reportinghub.no/ep/spin/mpr-tables
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/spin/1.1/lib

@prefix mpr-tables:  <http://www.reportinghub.no/ep/spin/mpr-tables#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin:  <http://www.reportinghub.no/spin/rh#> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix spl:     <http://spinrdf.org/spl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

<http://www.reportinghub.no/ep/spin/mpr-tables>
      rdf:type owl:Ontology ;
      owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

mpr-tables:ProductionFlows
      rdf:type rhspin:TableTemplate ;
      rdfs:label "Production flows"^^xsd:string ;
      rdfs:subClassOf rhspin:MPRGTableTemplates ;
      spin:body
              [ rdf:type sp:Select ;
                sp:resultVariables ([ sp:varName "productionFlowFacilityName"^^xsd:string
                          ] [ sp:varName "productionFlowName"^^xsd:string
                          ] [ sp:varName "productionFlowDefinitionTypeName"^^xsd:string
                          ] [ sp:varName "productionFlowDefinitionSubTypeName"^^xsd:string
                          ] [ sp:varName "productionFlowPurposeTypeName"^^xsd:string
                          ] [ sp:varName "productFlowName"^^xsd:string
                          ] [ sp:varName "productFlowMaterialTypeName"^^xsd:string
                          ] [ sp:varName "productFlowGrossOrNetTypeName"^^xsd:string
                          ] [ sp:varName "productFlowInPeriodDurationTypeName"^^xsd:string
                          ] [ sp:varName "massInKilograms"^^xsd:string
                          ] [ sp:varName "pressureInAtmospheres"^^xsd:string
                          ] [ sp:varName "temperatureInCelsius"^^xsd:string
                          ] [ sp:varName "volumeInMetre3"^^xsd:string
                          ] [ sp:varName "grossCalorificValueInMegaJouleMetre_3"^^xsd:string
                          ]) ;
                sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
                            sp:predicate rdf:type ;
                            sp:subject
                                    [ sp:varName "productionReport"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionReport"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
                            sp:subject
                                    [ sp:varName "productVolumeReport"^^xsd:string
                                    ]
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
                            sp:predicate rdf:type ;
                            sp:subject
                                    [ sp:varName "productVolumeReport"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionFlowsInReportingPeriod"^^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#ProductionFlow> ;
                            sp:predicate rdf:type ;
                            sp:subject
                                    [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionFlowInReportingPeriod"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
                            sp:subject
                                    [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionFlow"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                            sp:subject
                                    [ sp:varName "productionFlowInReportingPeriod"^^xsd:string
                                    ]
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
                            sp:predicate rdf:type ;
                            sp:subject
                                    [ sp:varName "productionFlow"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionFlowFacility"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
                            sp:subject
                                    [ sp:varName "productionFlow"^^xsd:string
                                    ]
                          ] [ sp:object
                                    [ sp:varName "productionFlowFacilityName"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
                            sp:subject
                                    [ sp:varName "productionFlowFacility"^^xsd:string
                                    ]
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object
                                                [ sp:varName "productionFlowName"^^xsd:string
                                                ] ;
                                        sp:predicate rdfs:label ;
                                        sp:subject
                                                [ sp:varName "productionFlow"^^xsd:string
                                                ]
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object
                                                [ sp:varName "productionFlowDefinitionType"^^xsd:string
                                                ] ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlow"^^xsd:string
                                                ]
                                      ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType> ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlowDefinitionType"^^xsd:string
                                                ]
                                      ] [ sp:object
                                                [ sp:varName "productionFlowDefinitionTypeName"^^xsd:string
                                                ] ;
                                        sp:predicate rdfs:label ;
                                        sp:subject
                                                [ sp:varName "productionFlowDefinitionType"^^xsd:string
                                                ]
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object
                                                [ sp:varName "productionFlowDefinitionSubType"^^xsd:string
                                                ] ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlow"^^xsd:string
                                                ]
                                      ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionSubType> ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlowDefinitionSubType"^^xsd:string
                                                ]
                                      ] [ sp:object
                                                [ sp:varName "productionFlowDefinitionSubTypeName"^^xsd:string
                                                ] ;
                                        sp:predicate rdfs:label ;
                                        sp:subject
                                                [ sp:varName "productionFlowDefinitionSubType"^^xsd:string
                                                ]
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object
                                                [ sp:varName "productionFlowPurposeType"^^xsd:string
                                                ] ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlow"^^xsd:string
                                                ]
                                      ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productionFlowPurposeType"^^xsd:string
                                                ]
                                      ] [ sp:object
                                                [ sp:varName "productionFlowPurposeTypeName"^^xsd:string
                                                ] ;
                                        sp:predicate rdfs:label ;
                                        sp:subject
                                                [ sp:varName "productionFlowPurposeType"^^xsd:string
                                                ]
                                      ])
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object
                                                [ sp:varName "productFlowInReportingPeriod"^^xsd:string
                                                ] ;
                                        sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
                                        sp:subject
                                                [ sp:varName "productionFlowInReportingPeriod"^^xsd:string
                                                ]
                                      ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
                                        sp:predicate rdf:type ;
                                        sp:subject
                                                [ sp:varName "productFlowInReportingPeriod"^^xsd:string
                                                ]
                                      ] [ rdf:type sp:Optional ;
                                        sp:elements ([ sp:object
                                                            [ sp:varName "productFlow"^^xsd:string
                                                            ] ;
                                                    sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                                                    sp:subject
                                                            [ sp:varName "productFlowInReportingPeriod"^^xsd:string
                                                            ]
                                                  ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ;
                                                    sp:predicate rdf:type ;
                                                    sp:subject
                                                            [ sp:varName "productFlow"^^xsd:string
                                                            ]
                                                  ] [ rdf:type sp:Optional ;
                                                    sp:elements ([ sp:object
                                                                        [ sp:varName "productFlowName"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdfs:label ;
                                                                sp:subject
                                                                        [ sp:varName "productFlow"^^xsd:string
                                                                        ]
                                                              ])
                                                  ] [ rdf:type sp:Optional ;
                                                    sp:elements ([ sp:object
                                                                        [ sp:varName "productFlowMaterialType"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "productFlow"^^xsd:string
                                                                        ]
                                                              ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowMaterialType"^^xsd:string
                                                                        ]
                                                              ] [ sp:object
                                                                        [ sp:varName "productFlowMaterialTypeName"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdfs:label ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowMaterialType"^^xsd:string
                                                                        ]
                                                              ])
                                                  ] [ rdf:type sp:Optional ;
                                                    sp:elements ([ sp:object
                                                                        [ sp:varName "productFlowGrossOrNetType"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "productFlow"^^xsd:string
                                                                        ]
                                                              ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowGrossOrNetType> ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowGrossOrNetType"^^xsd:string
                                                                        ]
                                                              ] [ sp:object
                                                                        [ sp:varName "productFlowGrossOrNetTypeName"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdfs:label ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowGrossOrNetType"^^xsd:string
                                                                        ]
                                                              ])
                                                  ] [ rdf:type sp:Optional ;
                                                    sp:elements ([ sp:object
                                                                        [ sp:varName "productFlowInReportingPeriod"^^xsd:string
                                                                        ] ;
                                                                sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowInPeriod"^^xsd:string
                                                                        ]
                                                              ] [ rdf:type sp:Optional ;
                                                                sp:elements ([ sp:object
                                                                                    [ sp:varName "productFlowInPeriodDurationType"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "productFlowInPeriod"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlowDurationType> ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "productFlowInPeriodDurationType"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object
                                                                                    [ sp:varName "productFlowInPeriodDurationTypeName"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate rdfs:label ;
                                                                            sp:subject
                                                                                    [ sp:varName "productFlowInPeriodDurationType"^^xsd:string
                                                                                    ]
                                                                          ])
                                                              ] [ sp:object
                                                                        [ sp:varName "materialThatFlowsInPeriod"^^xsd:string
                                                                        ] ;
                                                                sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
                                                                sp:subject
                                                                        [ sp:varName "productFlowInPeriod"^^xsd:string
                                                                        ]
                                                              ] [ rdf:type sp:Optional ;
                                                                sp:elements ([ sp:object
                                                                                    [ sp:varName "mass"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "materialThatFlowsInPeriod"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "mass"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object
                                                                                    [ sp:varName "massInKilograms"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate <http://www.reportinghub.no/ep/schema/core#kilogram> ;
                                                                            sp:subject
                                                                                    [ sp:varName "mass"^^xsd:string
                                                                                    ]
                                                                          ])
                                                              ] [ sp:object
                                                                        [ sp:varName "materialThatFlowsInPeriod"^^xsd:string
                                                                        ] ;
                                                                sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
                                                                sp:subject
                                                                        [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string
                                                                        ]
                                                              ] [ rdf:type sp:Optional ;
                                                                sp:elements ([ sp:object
                                                                                    [ sp:varName "pressure"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "pressure"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object
                                                                                    [ sp:varName "pressureInAtmospheres"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate <http://www.reportinghub.no/ep/schema/core#atmosphere> ;
                                                                            sp:subject
                                                                                    [ sp:varName "pressure"^^xsd:string
                                                                                    ]
                                                                          ])
                                                              ] [ rdf:type sp:Optional ;
                                                                sp:elements ([ sp:object
                                                                                    [ sp:varName "temperature"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
                                                                            sp:predicate rdf:type ;
                                                                            sp:subject
                                                                                    [ sp:varName "temperature"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object
                                                                                    [ sp:varName "temperatureInCelsius"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate <http://www.reportinghub.no/ep/schema/core#celsius> ;
                                                                            sp:subject
                                                                                    [ sp:varName "temperature"^^xsd:string
                                                                                    ]
                                                                          ])
                                                              ] [ sp:object
                                                                        [ sp:varName "volume"^^xsd:string
                                                                        ] ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string
                                                                        ]
                                                              ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
                                                                sp:predicate rdf:type ;
                                                                sp:subject
                                                                        [ sp:varName "volume"^^xsd:string
                                                                        ]
                                                              ] [ sp:object
                                                                        [ sp:varName "volumeInMetre3"^^xsd:string
                                                                        ] ;
                                                                sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
                                                                sp:subject
                                                                        [ sp:varName "volume"^^xsd:string
                                                                        ]
                                                              ] [ rdf:type sp:Optional ;
                                                                sp:elements ([ sp:object
                                                                                    [ sp:varName "calorificValue"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
                                                                            sp:subject
                                                                                    [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string
                                                                                    ]
                                                                          ] [ sp:object
                                                                                    [ sp:varName "grossCalorificValueInMegaJouleMetre_3"^^xsd:string
                                                                                    ] ;
                                                                            sp:predicate <http://www.reportinghub.no/ep/schema/core#megajoule_m-3> ;
                                                                            sp:subject
                                                                                    [ sp:varName "calorificValue"^^xsd:string
                                                                                    ]
                                                                          ])
                                                              ])
                                                  ])
                                      ])
                          ])
              ] ;
      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) .