David Price

Merge branch 'add-more-magic'

...@@ -13,6 +13,54 @@ ...@@ -13,6 +13,54 @@
13 @prefix spl: <http://spinrdf.org/spl#> . 13 @prefix spl: <http://spinrdf.org/spl#> .
14 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 14 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 15
16 +<http://www.reportinghub.no/ep/schema/flow#flowInOutFacility>
17 + rdf:type spin:MagicProperty , owl:DatatypeProperty ;
18 + rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
19 + rdfs:label "flow inout facility name"^^xsd:string ;
20 + rdfs:range xsd:string ;
21 + rdfs:subClassOf spin:MagicProperties ;
22 + spin:body
23 + [ rdf:type sp:Select ;
24 + sp:resultVariables ([ sp:varName "name"^^xsd:string
25 + ]) ;
26 + sp:where ([ sp:object
27 + [ sp:varName "productionFlowWhole"^^xsd:string
28 + ] ;
29 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
30 + sp:subject spin:_arg1
31 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
32 + sp:predicate rdf:type ;
33 + sp:subject
34 + [ sp:varName "productionFlowWhole"^^xsd:string
35 + ]
36 + ] [ sp:object
37 + [ sp:varName "productionFlowFacility"^^xsd:string
38 + ] ;
39 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
40 + sp:subject
41 + [ sp:varName "productionFlowWhole"^^xsd:string
42 + ]
43 + ] [ rdf:type sp:TriplePath ;
44 + sp:object
45 + [ sp:varName "name"^^xsd:string
46 + ] ;
47 + sp:path [ rdf:type sp:AltPath ;
48 + sp:path1 <http://www.reportinghub.no/np/schema/npd#name> ;
49 + sp:path2 <http://www.reportinghub.no/ep/schema/core#name>
50 + ] ;
51 + sp:subject
52 + [ sp:varName "productionFlowFacility"^^xsd:string
53 + ]
54 + ])
55 + ] ;
56 + spin:constraint
57 + [ rdf:type spl:Argument ;
58 + rdfs:comment "the flow that has part the material"^^xsd:string ;
59 + spl:predicate sp:arg1 ;
60 + spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
61 + ] ;
62 + spin:returnType xsd:string .
63 +
16 <http://www.reportinghub.no/ep/schema/flow#networkInFacilityName> 64 <http://www.reportinghub.no/ep/schema/flow#networkInFacilityName>
17 rdf:type spin:MagicProperty ; 65 rdf:type spin:MagicProperty ;
18 rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ; 66 rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
......
...@@ -179,8 +179,6 @@ OPTIONAL { ...@@ -179,8 +179,6 @@ OPTIONAL {
179 179
180 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" /> 180 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
181 181
182 - <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
183 -
184 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" /> 182 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
185 183
186 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" /> 184 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......
...@@ -40,8 +40,6 @@ WHERE { ...@@ -40,8 +40,6 @@ WHERE {
40 40
41 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" /> 41 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
42 42
43 - <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
44 -
45 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" /> 43 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
46 44
47 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" /> 45 <mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......
1 +<!DOCTYPE html>
2 +<html>
3 + <head>
4 + <META http-equiv="Content-Type" content="text/html; charset=utf-8">
5 + <link href="http://spinrdf.org/rhlib/ddr.css" rel="stylesheet" type="text/css">
6 + <title>Monthly Production Report (government)</title>
7 + </head>
8 + <body>
9 + <h1>Monthly Government Report : MIKKEL Field, Month Ending 2012-01-31</h1>
10 + <h2>Report title : &Aring;SGARD</h2>
11 + <h2>Report version : 2.0</h2>
12 + <h2>Report Status : final version of a report</h2>
13 + <h2>Submitted by : &Aring;SGARD</h2>
14 + <div>
15 + <hr>
16 + <h2>Cargo Information</h2>
17 + <table class="ddrTable">
18 + <tr class="ddrTR">
19 + <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>
20 + </tr>
21 + <tr class="ddrTR">
22 + <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>
23 + </tr>
24 + <tr class="ddrTR">
25 + <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>
26 + </tr>
27 + <tr class="ddrTR">
28 + <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>
29 + </tr>
30 + <tr class="ddrTR">
31 + <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>
32 + </tr>
33 + <tr class="ddrTR">
34 + <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>
35 + </tr>
36 + <tr class="ddrTR">
37 + <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>
38 + </tr>
39 + </table>
40 + <br>
41 + </div>
42 + <div>
43 + <hr>
44 + <h2>Production Saleable</h2>
45 + <table class="ddrTable">
46 + <tr class="ddrTR">
47 + <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>
48 + </tr>
49 + <tr class="ddrTR">
50 + <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>
51 + </tr>
52 + </table>
53 + <br>
54 + </div>
55 + <div>
56 + <hr>
57 + <h2>Production</h2>
58 + <table class="ddrTable">
59 + <tr class="ddrTR">
60 + <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>
61 + </tr>
62 + <tr class="ddrTR">
63 + <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>
64 + </tr>
65 + <tr class="ddrTR">
66 + <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>
67 + </tr>
68 + <tr class="ddrTR">
69 + <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>
70 + </tr>
71 + <tr class="ddrTR">
72 + <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>
73 + </tr>
74 + <tr class="ddrTR">
75 + <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>
76 + </tr>
77 + </table>
78 + <br>
79 + </div>
80 + </body>
81 +</html>
1 +# baseURI: http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg
2 +# imports: http://www.reportinghub.no/data/erh
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/production
4 +
5 +@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#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10 +
11 +<http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
14 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .