David Price

First property working

...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
3 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production 4 # imports: http://www.reportinghub.no/ep/schema/1.0/production
5 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 5 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
6 +# imports: http://www.reportinghub.no/ep/spin/prod-property
6 # imports: http://www.reportinghub.no/spin/rh 7 # imports: http://www.reportinghub.no/spin/rh
7 8
8 @prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> . 9 @prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> .
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
20 21
21 <http://www.reportinghub.no/ep/spin/dpr-tables> 22 <http://www.reportinghub.no/ep/spin/dpr-tables>
22 rdf:type owl:Ontology ; 23 rdf:type owl:Ontology ;
23 - owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> ; 24 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/spin/rh> ;
24 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 25 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
25 26
26 dpr-tables:ExportVolumes 27 dpr-tables:ExportVolumes
......
This diff could not be displayed because it is too large.
1 +# baseURI: http://www.reportinghub.no/ep/spin/prod-property
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/erhfacts
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/production
5 +
6 +@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix prod-property: <http://www.reportinghub.no/ep/spin/prod-property#> .
9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 +@prefix sp: <http://spinrdf.org/sp#> .
12 +@prefix spin: <http://spinrdf.org/spin#> .
13 +@prefix spl: <http://spinrdf.org/spl#> .
14 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15 +
16 +<http://www.reportinghub.no/ep/schema/flow#reportedFlowMaterial>
17 + rdf:type spin:MagicProperty , owl:ObjectProperty ;
18 + rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
19 + rdfs:label "report end flow material"^^xsd:string ;
20 + rdfs:range <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
21 + rdfs:subClassOf spin:MagicProperties ;
22 + spin:body
23 + [ rdf:type sp:Select ;
24 + sp:distinct "true"^^xsd:boolean ;
25 + sp:resultVariables ([ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
26 + ]) ;
27 + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
28 + sp:predicate rdf:type ;
29 + sp:subject spin:_arg1
30 + ] [ sp:object
31 + [ sp:varName "productionFlowMixedPart"^^xsd:string
32 + ] ;
33 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
34 + sp:subject spin:_arg1
35 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
36 + sp:predicate rdf:type ;
37 + sp:subject
38 + [ sp:varName "productionFlowMixedPart"^^xsd:string
39 + ]
40 + ] [ sp:object
41 + [ sp:varName "productFlowInMonthMaterial"^^xsd:string
42 + ] ;
43 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
44 + sp:subject
45 + [ sp:varName "productionFlowMixedPart"^^xsd:string
46 + ]
47 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
48 + sp:predicate rdf:type ;
49 + sp:subject
50 + [ sp:varName "productFlowInMonthMaterial"^^xsd:string
51 + ]
52 + ] [ sp:object
53 + [ sp:varName "productFlowInMonthMaterial"^^xsd:string
54 + ] ;
55 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
56 + sp:subject
57 + [ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
58 + ]
59 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
60 + sp:predicate rdf:type ;
61 + sp:subject
62 + [ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
63 + ]
64 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
65 + sp:predicate rdf:type ;
66 + sp:subject
67 + [ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
68 + ]
69 + ])
70 + ] ;
71 + spin:constraint
72 + [ rdf:type spl:Argument ;
73 + rdfs:comment "the flow that has part the material"^^xsd:string ;
74 + spl:predicate sp:arg1 ;
75 + spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
76 + ] ;
77 + spin:returnType <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> .
78 +
79 +ep-report:reportsOnFlow
80 + rdf:type spin:MagicProperty , owl:ObjectProperty ;
81 + rdfs:domain ep-report:ProductionReport ;
82 + rdfs:label "reports on flow"^^xsd:string ;
83 + rdfs:range <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
84 + rdfs:subClassOf spin:MagicProperties ;
85 + spin:body
86 + [ rdf:type sp:Select ;
87 + sp:distinct "true"^^xsd:boolean ;
88 + sp:resultVariables ([ sp:varName "productionFlow"^^xsd:string
89 + ]) ;
90 + sp:where ([ sp:object ep-report:ProductionReport ;
91 + sp:predicate rdf:type ;
92 + sp:subject spin:_arg1
93 + ] [ sp:object
94 + [ sp:varName "productionReport"^^xsd:string
95 + ] ;
96 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
97 + sp:subject
98 + [ sp:varName "productVolumeReport"^^xsd:string
99 + ]
100 + ] [ sp:object ep-report:ProductVolumeReport ;
101 + sp:predicate rdf:type ;
102 + sp:subject
103 + [ sp:varName "productVolumeReport"^^xsd:string
104 + ]
105 + ] [ sp:object
106 + [ sp:varName "productionFlowNetwork"^^xsd:string
107 + ] ;
108 + sp:predicate ep-report:reportOn ;
109 + sp:subject
110 + [ sp:varName "productVolumeReport"^^xsd:string
111 + ]
112 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
113 + sp:predicate rdf:type ;
114 + sp:subject
115 + [ sp:varName "productionFlowNetwork"^^xsd:string
116 + ]
117 + ] [ sp:object
118 + [ sp:varName "productionFlow"^^xsd:string
119 + ] ;
120 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
121 + sp:subject
122 + [ sp:varName "productionFlowNetwork"^^xsd:string
123 + ]
124 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
125 + sp:predicate rdf:type ;
126 + sp:subject
127 + [ sp:varName "productionFlow"^^xsd:string
128 + ]
129 + ])
130 + ] ;
131 + spin:constraint
132 + [ rdf:type spl:Argument ;
133 + rdfs:comment "the report that contains flows"^^xsd:string ;
134 + spl:predicate sp:arg1 ;
135 + spl:valueType ep-report:ProductionReport
136 + ] ;
137 + spin:returnType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> .
138 +
139 +<http://www.reportinghub.no/ep/spin/prod-property>
140 + rdf:type owl:Ontology ;
141 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
142 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
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 visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .
...@@ -177,11 +177,14 @@ OPTIONAL { ...@@ -177,11 +177,14 @@ OPTIONAL {
177 177
178 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" /> 178 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
179 179
180 + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows_1" />
180 181
181 182
182 183
183 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" /> 184 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
184 185
186 + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo_1" />
187 +
185 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" /> 188 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
186 189
187 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" /> 190 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
......
1 # baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest 1 # baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/data/erh 3 # imports: http://www.reportinghub.no/data/erh
4 +# imports: http://www.reportinghub.no/ep/spin/prod-property
4 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector 5 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
5 # imports: http://www.reportinghub.no/np/data/npd 6 # imports: http://www.reportinghub.no/np/data/npd
6 7
...@@ -16,5 +17,5 @@ ...@@ -16,5 +17,5 @@
16 17
17 <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest> 18 <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest>
18 rdf:type owl:Ontology ; 19 rdf:type owl:Ontology ;
19 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ; 20 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
20 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 21 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.epim.no/schemas/mprml/1 3 # imports: http://www.epim.no/schemas/mprml/1
4 # imports: http://www.reportinghub.no/data/erh 4 # imports: http://www.reportinghub.no/data/erh
5 +# imports: http://www.reportinghub.no/ep/spin/prod-property
5 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector 6 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
6 # imports: http://www.reportinghub.no/np/data/npd 7 # imports: http://www.reportinghub.no/np/data/npd
7 8
...@@ -18,5 +19,5 @@ ...@@ -18,5 +19,5 @@
18 19
19 <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest> 20 <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest>
20 rdf:type owl:Ontology ; 21 rdf:type owl:Ontology ;
21 - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ; 22 + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
22 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......