David Price

Merge branch 'add-more-magic'

......@@ -13,6 +13,54 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/flow#flowInOutFacility>
rdf:type spin:MagicProperty , owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:label "flow inout facility name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "name"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "productionFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject spin:_arg1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
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
]
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "name"^^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 "productionFlowFacility"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the flow that has part the material"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
] ;
spin:returnType xsd:string .
<http://www.reportinghub.no/ep/schema/flow#networkInFacilityName>
rdf:type spin:MagicProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
......
......@@ -179,8 +179,6 @@ OPTIONAL {
<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:ProductionSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......
......@@ -40,8 +40,6 @@ WHERE {
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......
<!DOCTYPE html>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="http://spinrdf.org/rhlib/ddr.css" rel="stylesheet" type="text/css">
<title>Monthly Production Report (government)</title>
</head>
<body>
<h1>Monthly Government Report : MIKKEL Field, Month Ending 2012-01-31</h1>
<h2>Report title : &Aring;SGARD</h2>
<h2>Report version : 2.0</h2>
<h2>Report Status : final version of a report</h2>
<h2>Submitted by : &Aring;SGARD</h2>
<div>
<hr>
<h2>Cargo Information</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Facility</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Cargo&nbsp;Number</th><th class="ddrTH" style="text-align: center">Cargo&nbsp;Batch</th><th class="ddrTH" style="text-align: center">Bill&nbsp;of&nbsp;Lading</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Mass</th><th class="ddrTH" style="text-align: center">Density</th><th class="ddrTH" style="text-align: center">Shipper</th><th class="ddrTH" style="text-align: center">Destination</th><th class="ddrTH" style="text-align: center">Country</th><th class="ddrTH" style="text-align: center">Owner</th><th class="ddrTH" style="text-align: center">Share</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">367/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-04</td><td class="ddrTD">1849.76 m3</td><td class="ddrTD">912.98 kg</td><td class="ddrTD">761.16 kg/m3</td><td class="ddrTD">TOTAL</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">STATOIL</td><td class="ddrTD">48.25 %</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">367/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-04</td><td class="ddrTD">1849.76 m3</td><td class="ddrTD">912.98 kg</td><td class="ddrTD">761.16 kg/m3</td><td class="ddrTD">TOTAL</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">ENI NORGE</td><td class="ddrTD">29.62 %</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">367/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-04</td><td class="ddrTD">1849.76 m3</td><td class="ddrTD">912.98 kg</td><td class="ddrTD">761.16 kg/m3</td><td class="ddrTD">TOTAL</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">PETORO</td><td class="ddrTD">22.13 %</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">368/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-08</td><td class="ddrTD">1326.63 m3</td><td class="ddrTD">739.86 kg</td><td class="ddrTD">715.36 kg/m3</td><td class="ddrTD">STATOIL</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">STATOIL</td><td class="ddrTD">100 %</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">369/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-13</td><td class="ddrTD">1451.65 m3</td><td class="ddrTD">586.58 kg</td><td class="ddrTD">708.93 kg/m3</td><td class="ddrTD">ENI NORGE</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">STATOIL</td><td class="ddrTD">50.65 %</td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">oil gross</td><td class="ddrTD">allocated flow</td><td class="ddrTD">369/1</td><td class="ddrTD">1</td><td class="ddrTD">2012-01-13</td><td class="ddrTD">1451.65 m3</td><td class="ddrTD">586.58 kg</td><td class="ddrTD">708.93 kg/m3</td><td class="ddrTD">ENI NORGE</td><td class="ddrTD">Fawley</td><td class="ddrTD">UNITED KINGDOM</td><td class="ddrTD">PETORO</td><td class="ddrTD">49.35 %</td>
</tr>
</table>
<br>
</div>
<div>
<hr>
<h2>Production Saleable</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Facility</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Mass</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Density</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Flow&nbsp;subtype</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil net</td><td class="ddrTD">24776181.19 kg</td><td class="ddrTD">29872.08 m3</td><td class="ddrTD">761.72 kg/m3</td><td class="ddrTD">saleable flow</td><td class="ddrTD"></td><td class="ddrTD">net product flow</td>
</tr>
</table>
<br>
</div>
<div>
<hr>
<h2>Production</h2>
<table class="ddrTable">
<tr class="ddrTR">
<th class="ddrTH" style="text-align: center">Facility</th><th class="ddrTH" style="text-align: center">Purpose</th><th class="ddrTH" style="text-align: center">Material</th><th class="ddrTH" style="text-align: center">Mass</th><th class="ddrTH" style="text-align: center">Volume</th><th class="ddrTH" style="text-align: center">Density</th><th class="ddrTH" style="text-align: center">Flow&nbsp;type</th><th class="ddrTH" style="text-align: center">Flow&nbsp;subtype</th><th class="ddrTH" style="text-align: center">Gross/Net</th>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">consumption flow - flare</td><td class="ddrTD">gas</td><td class="ddrTD">33652103.55 kg</td><td class="ddrTD">403406.73 m3</td><td class="ddrTD">0.61 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">consumption flow - flare</td><td class="ddrTD">gas</td><td class="ddrTD">31974209.72 kg</td><td class="ddrTD">430146.28 m3</td><td class="ddrTD">0.9 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">consumption flow - fuel</td><td class="ddrTD">gas</td><td class="ddrTD">32568689.86 kg</td><td class="ddrTD">409811.26 m3</td><td class="ddrTD">0.56 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">injection flow</td><td class="ddrTD">gas</td><td class="ddrTD">35232157.64 kg</td><td class="ddrTD">388173.48 m3</td><td class="ddrTD">1 kg/m3</td><td class="ddrTD">allocated flow</td><td class="ddrTD"></td><td class="ddrTD"></td>
</tr>
<tr class="ddrTR">
<td class="ddrTD">MIKKEL</td><td class="ddrTD">production exploitation</td><td class="ddrTD">oil gross</td><td class="ddrTD">21708146.57 kg</td><td class="ddrTD">26927.26 m3</td><td class="ddrTD">762.06 kg/m3</td><td class="ddrTD">metered flow fiscal</td><td class="ddrTD"></td><td class="ddrTD">gross product flow</td>
</tr>
</table>
<br>
</div>
</body>
</html>
# baseURI: http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg
# imports: http://www.reportinghub.no/data/erh
# imports: http://www.reportinghub.no/ep/schema/1.0/production
@prefix ASGARD-ONLY-MONTH_2012-01-01_final-mprg: <http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg>
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 .