David Price

Merge branch 'trygraph'

......@@ -68,7 +68,8 @@ mpr-tables:Cargo
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
......@@ -78,6 +79,8 @@ mpr-tables:Cargo
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
......@@ -337,6 +340,7 @@ mpr-tables:Cargo
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
......@@ -356,6 +360,8 @@ mpr-tables:Cargo
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -895,7 +901,8 @@ mpr-tables:GasSales
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
......@@ -919,6 +926,8 @@ mpr-tables:GasSales
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ sp:object
[ sp:varName "productFlowMonth"^^xsd:string
] ;
......@@ -1188,6 +1197,7 @@ mpr-tables:GasSales
[ sp:varName "productFlowMaterialType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
......@@ -1207,8 +1217,11 @@ mpr-tables:GasSales
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
......@@ -1228,6 +1241,8 @@ mpr-tables:GasSales
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
])
])
......@@ -1298,7 +1313,8 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
......@@ -1317,7 +1333,10 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowName"^^xsd:string
] ;
......@@ -1325,8 +1344,11 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
......@@ -1346,8 +1368,11 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionSubType"^^xsd:string
] ;
......@@ -1367,8 +1392,11 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlowDefinitionSubType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
......@@ -1388,6 +1416,8 @@ mpr-tables:ProductionFlows
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -2201,13 +2231,16 @@ mpr-tables:ProductionInventory
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
] [ sp:object
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionInventoryWholeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/erhfacts#name> ;
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionInventoryType"^^xsd:string
......@@ -2437,13 +2470,16 @@ mpr-tables:ProductionInventoryOwnership
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
] [ sp:object
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionInventoryWholeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/erhfacts#name> ;
sp:subject
[ sp:varName "productionInventoryWhole"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionInventoryType"^^xsd:string
......@@ -2503,7 +2539,8 @@ mpr-tables:ProductionSales
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
......@@ -2520,6 +2557,8 @@ mpr-tables:ProductionSales
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:notExists ;
......@@ -2589,6 +2628,7 @@ mpr-tables:ProductionSales
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
......@@ -2608,6 +2648,8 @@ mpr-tables:ProductionSales
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -2652,6 +2694,7 @@ mpr-tables:ProductionSales
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
......@@ -2671,6 +2714,8 @@ mpr-tables:ProductionSales
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
])
] ;
......
......@@ -29,7 +29,8 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject spin:_arg1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
......@@ -52,6 +53,8 @@
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/data/erh>
])
] ;
spin:constraint
......