David Price

added gas sales buyer volume and energy - almost there but dups when nyhanna

......@@ -716,9 +716,11 @@ mpr-tables:GasSales
] [ sp:varName "materialTypeName"^^xsd:string
] [ sp:varName "definitionTypeName"^^xsd:string
] [ sp:varName "sellerName"^^xsd:string
] [ sp:varName "sellerVolumeValue"^^xsd:string
] [ sp:varName "sellerEnergyValue"^^xsd:string
] [ sp:varName "buyerName"^^xsd:string
] [ sp:varName "volumeValue"^^xsd:string
] [ sp:varName "workValue"^^xsd:string
] [ sp:varName "buyerVolumeValue"^^xsd:string
] [ sp:varName "buyerEnergyValue"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
......@@ -852,7 +854,7 @@ mpr-tables:GasSales
[ sp:varName "productTransaction"^^xsd:string
]
] [ sp:object
[ sp:varName "workQuantity"^^xsd:string
[ sp:varName "sellerEnergyQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
......@@ -861,14 +863,14 @@ mpr-tables:GasSales
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "workQuantity"^^xsd:string
[ sp:varName "sellerEnergyQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "workValue"^^xsd:string
[ sp:varName "sellerEnergyValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#megajoule> ;
sp:subject
[ sp:varName "workQuantity"^^xsd:string
[ sp:varName "sellerEnergyQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "movedProduct"^^xsd:string
......@@ -878,7 +880,7 @@ mpr-tables:GasSales
[ sp:varName "volumeOfMovedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeQuantity"^^xsd:string
[ sp:varName "sellerVolumeQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
......@@ -887,14 +889,14 @@ mpr-tables:GasSales
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumeQuantity"^^xsd:string
[ sp:varName "sellerVolumeQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeValue"^^xsd:string
[ sp:varName "sellerVolumeValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
sp:subject
[ sp:varName "volumeQuantity"^^xsd:string
[ sp:varName "sellerVolumeQuantity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductTransaction> ;
sp:predicate rdf:type ;
......@@ -902,23 +904,11 @@ mpr-tables:GasSales
[ sp:varName "productTransaction"^^xsd:string
]
] [ sp:object
[ sp:varName "productMovement"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productTransaction"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MovementOfProduct> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productMovement"^^xsd:string
]
] [ sp:object
[ sp:varName "salesActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productMovement"^^xsd:string
[ sp:varName "productTransaction"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SalesActivity> ;
sp:predicate rdf:type ;
......@@ -968,6 +958,63 @@ mpr-tables:GasSales
sp:subject
[ sp:varName "buyer"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerMovedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#movedProduct> ;
sp:subject
[ sp:varName "salesActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "buyerMovedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerEnergyQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "buyerMovedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "buyerEnergyQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerEnergyValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#megajoule> ;
sp:subject
[ sp:varName "buyerEnergyQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerMovedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "buyerMovedProductPart"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerVolumeQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "buyerMovedProductPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "buyerVolumeQuantity"^^xsd:string
]
] [ sp:object
[ sp:varName "buyerVolumeValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
sp:subject
[ sp:varName "buyerVolumeQuantity"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -1034,7 +1081,7 @@ mpr-tables:GasSales
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Flow type"^^xsd:string "Seller"^^xsd:string "Buyer"^^xsd:string "Volume"^^xsd:string "Work"^^xsd:string) .
rhspin:tableHeaders ("Facility"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Flow type"^^xsd:string "Seller"^^xsd:string "Seller Volume"^^xsd:string "Seller Work"^^xsd:string "Buyer"^^xsd:string "Buyer Volume"^^xsd:string "Buyer Work"^^xsd:string) .
mpr-tables:ProductionFlows
rdf:type rhspin:TableTemplate ;
......