David Price

Initial Cargo Ownership Table

......@@ -453,6 +453,255 @@ mpr-tables:Cargo
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Purpose"^^xsd:string "Material"^^xsd:string "Flow type"^^xsd:string "Movement Type"^^xsd:string "Cargo Number"^^xsd:string "Cargo Batch"^^xsd:string "Bill of Lading"^^xsd:string "Volume"^^xsd:string "Mass"^^xsd:string "Density"^^xsd:string "Shipper"^^xsd:string "Destination"^^xsd:string "Country"^^xsd:string) .
mpr-tables:CargoOwnership
rdf:type rhspin:TableTemplate ;
rdfs:label "Cargo Ownership Information1"^^xsd:string ;
rdfs:subClassOf rhspin:MPRGTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "cargoNumber"^^xsd:string
] [ sp:varName "cargoBatchNumber"^^xsd:string
] [ sp:varName "ownerName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "cargoNumber"^^xsd:string
] [ sp:varName "cargoBatchNumber"^^xsd:string
] [ sp:varName "ownerName"^^xsd:string
] [ sp:varName "ownerShare"^^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/core#hasPart> ;
sp:subject
[ sp:varName "productionFlowsInReportingPeriod"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowWhole"^^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 "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#HydrocarbonAccounting> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "productionFlowFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productFlowPartOfMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowPartOfMixedPart"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowPartOfMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#FlowDuringMonth> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowedInMonth"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowedInMonth"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "spatialPartOfProductFlowInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "spatialPartOfProductFlowInMonth"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "movedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#movedProduct> ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductTankerLifting> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "cargoNumber"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#cargoNumber> ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "cargoBatchNumber"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#cargoBatchNumber> ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "movedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "ownedPartOfMovedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "ownerPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ;
sp:subject
[ sp:varName "ownedPartOfMovedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "ownerPart"^^xsd:string
]
] [ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "ownerPart"^^xsd:string
]
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "ownerName"^^xsd:string
] ;
sp:path [ rdf:type sp:AltPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/core#name> ;
sp:path2 <http://www.reportinghub.no/np/schema/npd#name>
] ;
sp:subject
[ sp:varName "owner"^^xsd:string
]
] [ sp:object
[ sp:varName "ownedPartOfMovedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject
[ sp:varName "materialPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "ratio"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#volumeRatio> ;
sp:subject
[ sp:varName "materialPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "ratio"^^xsd:string
]
] [ sp:object
[ sp:varName "ownerShare"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#undefinedScale> ;
sp:subject
[ sp:varName "ratio"^^xsd:string
]
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Cargo Number"^^xsd:string "Cargo Batch"^^xsd:string "Owner"^^xsd:string "Share"^^xsd:string) .
mpr-tables:GasSales
rdf:type rhspin:TableTemplate ;
rdfs:label "Gas Sales"^^xsd:string ;
......
......@@ -176,6 +176,8 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......