David Price

removed cargo_1 as Cargo mrp table is complete

......@@ -761,521 +761,6 @@ mpr-tables:CargoOwnership
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Cargo Number"^^xsd:string "Cargo Batch"^^xsd:string "Owner"^^xsd:string "Share"^^xsd:string) .
mpr-tables:Cargo_1
rdf:type rhspin:TableTemplate ;
rdfs:label "Cargo Information 1"^^xsd:string ;
rdfs:subClassOf rhspin:MPRGTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "purposeTypeName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "purposeTypeName"^^xsd:string
] [ sp:varName "materialTypeName"^^xsd:string
] [ sp:varName "definitionTypeName"^^xsd:string
] [ sp:varName "movementType"^^xsd:string
] [ sp:varName "cargoNumber"^^xsd:string
] [ sp:varName "cargoBatchNumber"^^xsd:string
] [ sp:varName "billOfLadingDate"^^xsd:string
] [ sp:varName "volumeValue"^^xsd:string
] [ sp:varName "massValue"^^xsd:string
] [ sp:varName "densityValue"^^xsd:string
] [ sp:varName "shipperName"^^xsd:string
] [ sp:varName "destinationName"^^xsd:string
] [ sp:varName "countryName"^^xsd:string
] [ sp:varName "ownerName"^^xsd:string
] [ sp:varName "ownedPercent"^^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 "productionFlowNetwork"^^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#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowNetwork"^^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#HydrocarbonAccountingFlow> ;
sp:predicate rdf:type ;
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
[ 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/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowInReportingPeriod"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^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#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonth"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalThingDuringOneMonth> ;
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 "spatialPartOfMaterialFlowedInMonth"^^xsd:string
]
] [ sp:object
[ sp:varName "spatialPartOfMaterialFlowedInMonth"^^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
[ sp:varName "massQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "massQuantity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "massQuantity"^^xsd:string
]
] ;
sp:variable
[ sp:varName "massValue"^^xsd:string
]
] [ sp:object
[ sp:varName "movedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "volumeOfMovedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumeOfMovedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumeQuantity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "volumeQuantity"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeValue"^^xsd:string
]
] [ sp:object
[ sp:varName "movedProduct"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "densityOfMovedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "densityQuantity"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "densityOfMovedProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "densityQuantity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "densityQuantity"^^xsd:string
]
] ;
sp:variable
[ sp:varName "densityValue"^^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
[ sp:varName "secondOfPair"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movedProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "secondOfPair"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ;
sp:subject
[ sp:varName "volumePair"^^xsd:string
]
] [ sp:object
[ sp:varName "firstOfPair"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ;
sp:subject
[ sp:varName "volumePair"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "firstOfPair"^^xsd:string
]
] [ sp:object
[ sp:varName "ratio"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ;
sp:subject
[ sp:varName "volumePair"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "ratio"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "ratio"^^xsd:string
]
] ;
sp:variable
[ sp:varName "ownedPercent"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "firstOfPair"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "owner"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "company"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "owner"^^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/np/schema/npd#name> ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#name>
] ;
sp:subject
[ sp:varName "company"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^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 "purposeTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^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 "definitionTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "destination"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#destination> ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "destinationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "destination"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "country"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "destination"^^xsd:string
]
] [ sp:object
[ sp:varName "countryName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "country"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "destinationName"^^xsd:string
] ;
sp:path [ rdf:type sp:AltPath ;
sp:path1 <http://www.reportinghub.no/np/schema/npd#name> ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#name>
] ;
sp:subject
[ sp:varName "destination"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "shipperPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#shipper> ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ sp:object
[ sp:varName "shipper"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "shipperPart"^^xsd:string
]
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "shipperName"^^xsd:string
] ;
sp:path [ rdf:type sp:AltPath ;
sp:path1 <http://www.reportinghub.no/np/schema/npd#name> ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#name>
] ;
sp:subject
[ sp:varName "shipper"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowMaterialType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWhole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#ReportingProductType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowMaterialType"^^xsd:string
]
] [ sp:object
[ sp:varName "materialTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productFlowMaterialType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "movementOfProductType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MovementOfProductType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "movementOfProductType"^^xsd:string
]
] [ sp:object
[ sp:varName "movementType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "movementOfProductType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "billOfLading"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "movementOfProduct"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#IssueBillOfLading> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "billOfLading"^^xsd:string
]
] [ sp:object
[ sp:varName "billOfLadingDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "billOfLading"^^xsd:string
]
])
])
] ;
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 "Owner"^^xsd:string "Share"^^xsd:string) .
mpr-tables:FluidSampleAnalysisResults
rdf:type rhspin:TableTemplate ;
rdfs:label "Fluid Sample Analysis Results"^^xsd:string ;
......
......@@ -179,8 +179,6 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo_1" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
......
......@@ -17,8 +17,8 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/tqedits/MIKKEL-MONTH_2012-01-01_final-mprg-cargo.xml#r-2-2-1>
rdfs:label "STEP 20301a" .
<file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/tqedits/MIKKEL-MONTH_2012-01-01_final-mprg-cargo.xml#r-2-2-1-3>
rdfs:label "20400e" .
<http://www.reportinghub.no/data/erh/Field-1630514-Flow-MIKKEL_ALLOCATED_TANKLIFT>
ep-flow:hasMixedPart
......@@ -31,7 +31,6 @@
rdf:type ep-fac:ProductionFacility .
<http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/MIKKEL-MONTH_2012-01-01_final-mprg-cargo>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......@@ -57,6 +56,10 @@
rdf:type ep-org:Organization ;
ep-core:name "STATOIL"^^xsd:string .
<https://www.reportinghub.no/ep/data/organization/TOTAL>
rdf:type ep-org:Organization ;
ep-core:name "TOTAL"^^xsd:string .
<https://www.reportinghub.no/ep/data/productionReport/FIELD-1630514$2012-01-01$2012-01-31>
rdf:type ep-report:FinalVersionOfAReport , ep-report:MonthlyProductionReport , ep-report:MonthlyProductionReportGovernment , ep-report:ProductionReport , ep-report:Report , <https://www.reportinghub.no/ep/data/productionReportKind/COPEX> ;
ep-core:name "ÅSGARD"^^xsd:string ;
......@@ -332,7 +335,9 @@ _:b2 rdf:type ep-material:QuantityOfMaterial , _:b6 ;
ep-prodact:movedProduct
_:b2 ;
ep-prodact:shipper
[ rdf:type ep-org:Organization
[ rdf:type ep-org:Organization ;
ep-core:temporalPartOf
<https://www.reportinghub.no/ep/data/organization/TOTAL>
] .
_:b3 rdf:type ep-material:QuantityOfMaterial , _:b10 ;
......@@ -379,7 +384,9 @@ _:b3 rdf:type ep-material:QuantityOfMaterial , _:b10 ;
ep-prodact:movedProduct
_:b3 ;
ep-prodact:shipper
[ rdf:type ep-org:Organization
[ rdf:type ep-org:Organization ;
ep-core:temporalPartOf
<https://www.reportinghub.no/ep/data/organization/STATOIL>
] .
_:b4 rdf:type ep-material:QuantityOfMaterial , _:b12 ;
......@@ -439,7 +446,9 @@ _:b4 rdf:type ep-material:QuantityOfMaterial , _:b12 ;
ep-prodact:movedProduct
_:b4 ;
ep-prodact:shipper
[ rdf:type ep-org:Organization
[ rdf:type ep-org:Organization ;
ep-core:temporalPartOf
<https://www.reportinghub.no/ep/data/organization/ENI_NORGE>
] .
_:b14
......