Showing
8 changed files
with
1335 additions
and
1078 deletions
... | @@ -10,101 +10,101 @@ | ... | @@ -10,101 +10,101 @@ |
10 | 10 | ||
11 | <http://www.reportinghub.no/ep/schema/1.0/flow> | 11 | <http://www.reportinghub.no/ep/schema/1.0/flow> |
12 | rdf:type owl:Ontology ; | 12 | rdf:type owl:Ontology ; |
13 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ; | 13 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; |
14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
15 | 15 | ||
16 | ep-flow:AllocatedFlow | 16 | ep-flow:AllocatedFlow |
17 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 17 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
18 | rdfs:label "allocated flow"^^xsd:string ; | 18 | rdfs:label "allocated flow"^^xsd:string ; |
19 | rdfs:subClassOf ep-flow:Flow . | 19 | rdfs:subClassOf ep-flow:Flow . |
20 | 20 | ||
21 | ep-flow:AqueousFlow | 21 | ep-flow:AqueousFlow |
22 | - rdf:type owl:Class , ep-flow:ProductType ; | 22 | + rdf:type ep-flow:ProductType , owl:Class ; |
23 | rdfs:label "aqueous flow"^^xsd:string ; | 23 | rdfs:label "aqueous flow"^^xsd:string ; |
24 | rdfs:subClassOf ep-flow:Flow . | 24 | rdfs:subClassOf ep-flow:Flow . |
25 | 25 | ||
26 | ep-flow:BudgetFlow | 26 | ep-flow:BudgetFlow |
27 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 27 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
28 | rdfs:label "budget flow"^^xsd:string ; | 28 | rdfs:label "budget flow"^^xsd:string ; |
29 | rdfs:subClassOf ep-flow:Flow . | 29 | rdfs:subClassOf ep-flow:Flow . |
30 | 30 | ||
31 | ep-flow:CarbonDioxideGasFlow | 31 | ep-flow:CarbonDioxideGasFlow |
32 | - rdf:type owl:Class , ep-flow:ProductType ; | 32 | + rdf:type ep-flow:ProductType , owl:Class ; |
33 | rdfs:label "carbon dioxide gas flow"^^xsd:string ; | 33 | rdfs:label "carbon dioxide gas flow"^^xsd:string ; |
34 | rdfs:subClassOf ep-flow:Flow . | 34 | rdfs:subClassOf ep-flow:Flow . |
35 | 35 | ||
36 | ep-flow:CarbonMonoxideGasFlow | 36 | ep-flow:CarbonMonoxideGasFlow |
37 | - rdf:type owl:Class , ep-flow:ProductType ; | 37 | + rdf:type ep-flow:ProductType , owl:Class ; |
38 | rdfs:label "carbon monoxide gas flow"^^xsd:string ; | 38 | rdfs:label "carbon monoxide gas flow"^^xsd:string ; |
39 | rdfs:subClassOf ep-flow:Flow . | 39 | rdfs:subClassOf ep-flow:Flow . |
40 | 40 | ||
41 | ep-flow:ChemicalFlow | 41 | ep-flow:ChemicalFlow |
42 | - rdf:type owl:Class , ep-flow:ProductType ; | 42 | + rdf:type ep-flow:ProductType , owl:Class ; |
43 | rdfs:label "chemical flow"^^xsd:string ; | 43 | rdfs:label "chemical flow"^^xsd:string ; |
44 | rdfs:subClassOf ep-flow:Flow . | 44 | rdfs:subClassOf ep-flow:Flow . |
45 | 45 | ||
46 | ep-flow:CondensateFlow | 46 | ep-flow:CondensateFlow |
47 | - rdf:type owl:Class , ep-flow:ProductType ; | 47 | + rdf:type ep-flow:ProductType , owl:Class ; |
48 | rdfs:label "condensate flow"^^xsd:string ; | 48 | rdfs:label "condensate flow"^^xsd:string ; |
49 | rdfs:subClassOf ep-flow:Flow . | 49 | rdfs:subClassOf ep-flow:Flow . |
50 | 50 | ||
51 | ep-flow:ConstraintFlow | 51 | ep-flow:ConstraintFlow |
52 | - rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; | 52 | + rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; |
53 | rdfs:label "constraint flow"^^xsd:string ; | 53 | rdfs:label "constraint flow"^^xsd:string ; |
54 | rdfs:subClassOf ep-flow:Flow . | 54 | rdfs:subClassOf ep-flow:Flow . |
55 | 55 | ||
56 | ep-flow:Consume | 56 | ep-flow:Consume |
57 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 57 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
58 | rdfs:label "consume"^^xsd:string ; | 58 | rdfs:label "consume"^^xsd:string ; |
59 | rdfs:subClassOf ep-flow:Flow . | 59 | rdfs:subClassOf ep-flow:Flow . |
60 | 60 | ||
61 | ep-flow:Consume-HPflare | 61 | ep-flow:Consume-HPflare |
62 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 62 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
63 | rdfs:label "consume - HP flare"^^xsd:string ; | 63 | rdfs:label "consume - HP flare"^^xsd:string ; |
64 | rdfs:subClassOf ep-flow:Consume-flare . | 64 | rdfs:subClassOf ep-flow:Consume-flare . |
65 | 65 | ||
66 | ep-flow:Consume-LPflare | 66 | ep-flow:Consume-LPflare |
67 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 67 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
68 | rdfs:label "consume - LP flare"^^xsd:string ; | 68 | rdfs:label "consume - LP flare"^^xsd:string ; |
69 | rdfs:subClassOf ep-flow:Consume-flare . | 69 | rdfs:subClassOf ep-flow:Consume-flare . |
70 | 70 | ||
71 | ep-flow:Consume-blackstart | 71 | ep-flow:Consume-blackstart |
72 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 72 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
73 | rdfs:label "consume - blackstart"^^xsd:string ; | 73 | rdfs:label "consume - blackstart"^^xsd:string ; |
74 | rdfs:subClassOf ep-flow:Consume . | 74 | rdfs:subClassOf ep-flow:Consume . |
75 | 75 | ||
76 | ep-flow:Consume-compressor | 76 | ep-flow:Consume-compressor |
77 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 77 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
78 | rdfs:label "consume - compressor"^^xsd:string ; | 78 | rdfs:label "consume - compressor"^^xsd:string ; |
79 | rdfs:subClassOf ep-flow:Consume . | 79 | rdfs:subClassOf ep-flow:Consume . |
80 | 80 | ||
81 | ep-flow:Consume-emitted | 81 | ep-flow:Consume-emitted |
82 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 82 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
83 | rdfs:label "consume - emitted"^^xsd:string ; | 83 | rdfs:label "consume - emitted"^^xsd:string ; |
84 | rdfs:subClassOf ep-flow:Consume . | 84 | rdfs:subClassOf ep-flow:Consume . |
85 | 85 | ||
86 | ep-flow:Consume-flare | 86 | ep-flow:Consume-flare |
87 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 87 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
88 | rdfs:label "consume - flare"^^xsd:string ; | 88 | rdfs:label "consume - flare"^^xsd:string ; |
89 | rdfs:subClassOf ep-flow:Consume . | 89 | rdfs:subClassOf ep-flow:Consume . |
90 | 90 | ||
91 | ep-flow:Consume-fuel | 91 | ep-flow:Consume-fuel |
92 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 92 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
93 | rdfs:label "consume - fuel"^^xsd:string ; | 93 | rdfs:label "consume - fuel"^^xsd:string ; |
94 | rdfs:subClassOf ep-flow:Consume . | 94 | rdfs:subClassOf ep-flow:Consume . |
95 | 95 | ||
96 | ep-flow:Consume-noncompressor | 96 | ep-flow:Consume-noncompressor |
97 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 97 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
98 | rdfs:label "consume - non-compressor"^^xsd:string ; | 98 | rdfs:label "consume - non-compressor"^^xsd:string ; |
99 | rdfs:subClassOf ep-flow:Consume . | 99 | rdfs:subClassOf ep-flow:Consume . |
100 | 100 | ||
101 | ep-flow:Consume-venting | 101 | ep-flow:Consume-venting |
102 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 102 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
103 | rdfs:label "consume - venting"^^xsd:string ; | 103 | rdfs:label "consume - venting"^^xsd:string ; |
104 | rdfs:subClassOf ep-flow:Consume . | 104 | rdfs:subClassOf ep-flow:Consume . |
105 | 105 | ||
106 | ep-flow:CuttingsFlow | 106 | ep-flow:CuttingsFlow |
107 | - rdf:type ep-flow:ProductType , owl:Class ; | 107 | + rdf:type owl:Class , ep-flow:ProductType ; |
108 | rdfs:label "cuttings flow"^^xsd:string ; | 108 | rdfs:label "cuttings flow"^^xsd:string ; |
109 | rdfs:subClassOf ep-flow:Flow . | 109 | rdfs:subClassOf ep-flow:Flow . |
110 | 110 | ||
... | @@ -114,42 +114,42 @@ ep-flow:DailyProductionFlow | ... | @@ -114,42 +114,42 @@ ep-flow:DailyProductionFlow |
114 | rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow . | 114 | rdfs:subClassOf ep-flow:TemporalPartOfAProductionFlow . |
115 | 115 | ||
116 | ep-flow:DerivedFlow | 116 | ep-flow:DerivedFlow |
117 | - rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; | 117 | + rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; |
118 | rdfs:label "derived flow"^^xsd:string ; | 118 | rdfs:label "derived flow"^^xsd:string ; |
119 | rdfs:subClassOf ep-flow:Flow . | 119 | rdfs:subClassOf ep-flow:Flow . |
120 | 120 | ||
121 | ep-flow:DieselFlow | 121 | ep-flow:DieselFlow |
122 | - rdf:type owl:Class , ep-flow:ProductType ; | 122 | + rdf:type ep-flow:ProductType , owl:Class ; |
123 | rdfs:label "diesel flow"^^xsd:string ; | 123 | rdfs:label "diesel flow"^^xsd:string ; |
124 | rdfs:subClassOf ep-flow:Flow . | 124 | rdfs:subClassOf ep-flow:Flow . |
125 | 125 | ||
126 | ep-flow:EstimatedFlow | 126 | ep-flow:EstimatedFlow |
127 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 127 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
128 | rdfs:label "estimated flow"^^xsd:string ; | 128 | rdfs:label "estimated flow"^^xsd:string ; |
129 | rdfs:subClassOf ep-flow:Flow . | 129 | rdfs:subClassOf ep-flow:Flow . |
130 | 130 | ||
131 | ep-flow:Ethane-componentFlow | 131 | ep-flow:Ethane-componentFlow |
132 | - rdf:type owl:Class , ep-flow:ProductType ; | 132 | + rdf:type ep-flow:ProductType , owl:Class ; |
133 | rdfs:label "ethane - component flow"^^xsd:string ; | 133 | rdfs:label "ethane - component flow"^^xsd:string ; |
134 | rdfs:subClassOf ep-flow:Flow . | 134 | rdfs:subClassOf ep-flow:Flow . |
135 | 135 | ||
136 | ep-flow:Export | 136 | ep-flow:Export |
137 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 137 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
138 | rdfs:label "export"^^xsd:string ; | 138 | rdfs:label "export"^^xsd:string ; |
139 | rdfs:subClassOf ep-flow:Flow . | 139 | rdfs:subClassOf ep-flow:Flow . |
140 | 140 | ||
141 | ep-flow:Export-nominated | 141 | ep-flow:Export-nominated |
142 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 142 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
143 | rdfs:label "export nominated"^^xsd:string ; | 143 | rdfs:label "export nominated"^^xsd:string ; |
144 | rdfs:subClassOf ep-flow:Export . | 144 | rdfs:subClassOf ep-flow:Export . |
145 | 145 | ||
146 | ep-flow:Export-requested | 146 | ep-flow:Export-requested |
147 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 147 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
148 | rdfs:label "export requested"^^xsd:string ; | 148 | rdfs:label "export requested"^^xsd:string ; |
149 | rdfs:subClassOf ep-flow:Export . | 149 | rdfs:subClassOf ep-flow:Export . |
150 | 150 | ||
151 | ep-flow:Export-shortfall | 151 | ep-flow:Export-shortfall |
152 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 152 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
153 | rdfs:label "export shortfall"^^xsd:string ; | 153 | rdfs:label "export shortfall"^^xsd:string ; |
154 | rdfs:subClassOf ep-flow:Export . | 154 | rdfs:subClassOf ep-flow:Export . |
155 | 155 | ||
... | @@ -159,32 +159,32 @@ ep-flow:Flow | ... | @@ -159,32 +159,32 @@ ep-flow:Flow |
159 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 159 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
160 | 160 | ||
161 | ep-flow:FlowDuringDay | 161 | ep-flow:FlowDuringDay |
162 | - rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; | 162 | + rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; |
163 | rdfs:label "flow during day"^^xsd:string ; | 163 | rdfs:label "flow during day"^^xsd:string ; |
164 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 164 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
165 | 165 | ||
166 | ep-flow:FlowDuringMonth | 166 | ep-flow:FlowDuringMonth |
167 | - rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; | 167 | + rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; |
168 | rdfs:label "flow during month"^^xsd:string ; | 168 | rdfs:label "flow during month"^^xsd:string ; |
169 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 169 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
170 | 170 | ||
171 | ep-flow:FlowDuringMonthToDate | 171 | ep-flow:FlowDuringMonthToDate |
172 | - rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; | 172 | + rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; |
173 | rdfs:label "flow during month to date"^^xsd:string ; | 173 | rdfs:label "flow during month to date"^^xsd:string ; |
174 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 174 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
175 | 175 | ||
176 | ep-flow:FlowDuringWeek | 176 | ep-flow:FlowDuringWeek |
177 | - rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; | 177 | + rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; |
178 | rdfs:label "flow during week"^^xsd:string ; | 178 | rdfs:label "flow during week"^^xsd:string ; |
179 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 179 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
180 | 180 | ||
181 | ep-flow:FlowDuringYear | 181 | ep-flow:FlowDuringYear |
182 | - rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; | 182 | + rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; |
183 | rdfs:label "flow during year"^^xsd:string ; | 183 | rdfs:label "flow during year"^^xsd:string ; |
184 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 184 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
185 | 185 | ||
186 | ep-flow:FlowDuringYearToDate | 186 | ep-flow:FlowDuringYearToDate |
187 | - rdf:type owl:Class , ep-flow:TemporalPartOfAFlowDurationType ; | 187 | + rdf:type ep-flow:TemporalPartOfAFlowDurationType , owl:Class ; |
188 | rdfs:label "flow during year to date"^^xsd:string ; | 188 | rdfs:label "flow during year to date"^^xsd:string ; |
189 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 189 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
190 | 190 | ||
... | @@ -204,97 +204,102 @@ ep-flow:FlowOfMaterial | ... | @@ -204,97 +204,102 @@ ep-flow:FlowOfMaterial |
204 | rdfs:subClassOf ep-flow:Flow . | 204 | rdfs:subClassOf ep-flow:Flow . |
205 | 205 | ||
206 | ep-flow:Gas-componentInOilFlow | 206 | ep-flow:Gas-componentInOilFlow |
207 | - rdf:type owl:Class , ep-flow:ProductType ; | 207 | + rdf:type ep-flow:ProductType , owl:Class ; |
208 | rdfs:label "gas - component in oil flow"^^xsd:string ; | 208 | rdfs:label "gas - component in oil flow"^^xsd:string ; |
209 | rdfs:subClassOf ep-flow:Flow . | 209 | rdfs:subClassOf ep-flow:Flow . |
210 | 210 | ||
211 | ep-flow:Gas-richFlow | 211 | ep-flow:Gas-richFlow |
212 | - rdf:type owl:Class , ep-flow:ProductType ; | 212 | + rdf:type ep-flow:ProductType , owl:Class ; |
213 | rdfs:label "gas - rich flow"^^xsd:string ; | 213 | rdfs:label "gas - rich flow"^^xsd:string ; |
214 | rdfs:subClassOf ep-flow:Flow . | 214 | rdfs:subClassOf ep-flow:Flow . |
215 | 215 | ||
216 | ep-flow:GasFlow | 216 | ep-flow:GasFlow |
217 | - rdf:type owl:Class , ep-flow:ProductType ; | 217 | + rdf:type ep-flow:ProductType , owl:Class ; |
218 | rdfs:label "gas flow"^^xsd:string ; | 218 | rdfs:label "gas flow"^^xsd:string ; |
219 | rdfs:subClassOf ep-flow:Flow . | 219 | rdfs:subClassOf ep-flow:Flow . |
220 | 220 | ||
221 | ep-flow:Gaslift | 221 | ep-flow:Gaslift |
222 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 222 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
223 | rdfs:label "gas lift"^^xsd:string ; | 223 | rdfs:label "gas lift"^^xsd:string ; |
224 | rdfs:subClassOf ep-flow:Flow . | 224 | rdfs:subClassOf ep-flow:Flow . |
225 | 225 | ||
226 | +ep-flow:HydrocarbonAccounting | ||
227 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; | ||
228 | + rdfs:label "hydrocarbon accounting"^^xsd:string ; | ||
229 | + rdfs:subClassOf ep-flow:Flow . | ||
230 | + | ||
226 | ep-flow:I-butane-componentFlow | 231 | ep-flow:I-butane-componentFlow |
227 | - rdf:type owl:Class , ep-flow:ProductType ; | 232 | + rdf:type ep-flow:ProductType , owl:Class ; |
228 | rdfs:label "i-butane - component flow"^^xsd:string ; | 233 | rdfs:label "i-butane - component flow"^^xsd:string ; |
229 | rdfs:subClassOf ep-flow:Flow . | 234 | rdfs:subClassOf ep-flow:Flow . |
230 | 235 | ||
231 | ep-flow:Import | 236 | ep-flow:Import |
232 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 237 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
233 | rdfs:label "import"^^xsd:string ; | 238 | rdfs:label "import"^^xsd:string ; |
234 | rdfs:subClassOf ep-flow:Flow . | 239 | rdfs:subClassOf ep-flow:Flow . |
235 | 240 | ||
236 | ep-flow:Injection | 241 | ep-flow:Injection |
237 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 242 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
238 | rdfs:label "injection"^^xsd:string ; | 243 | rdfs:label "injection"^^xsd:string ; |
239 | rdfs:subClassOf ep-flow:Flow . | 244 | rdfs:subClassOf ep-flow:Flow . |
240 | 245 | ||
241 | ep-flow:Inventory | 246 | ep-flow:Inventory |
242 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 247 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
243 | rdfs:label "inventory"^^xsd:string ; | 248 | rdfs:label "inventory"^^xsd:string ; |
244 | rdfs:subClassOf ep-flow:Flow . | 249 | rdfs:subClassOf ep-flow:Flow . |
245 | 250 | ||
246 | ep-flow:MeasuredFlow | 251 | ep-flow:MeasuredFlow |
247 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 252 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
248 | rdfs:label "measured flow"^^xsd:string ; | 253 | rdfs:label "measured flow"^^xsd:string ; |
249 | rdfs:subClassOf ep-flow:Flow . | 254 | rdfs:subClassOf ep-flow:Flow . |
250 | 255 | ||
251 | ep-flow:N-butane-componentFlow | 256 | ep-flow:N-butane-componentFlow |
252 | - rdf:type owl:Class , ep-flow:ProductType ; | 257 | + rdf:type ep-flow:ProductType , owl:Class ; |
253 | rdfs:label "n-butane - component flow"^^xsd:string ; | 258 | rdfs:label "n-butane - component flow"^^xsd:string ; |
254 | rdfs:subClassOf ep-flow:Flow . | 259 | rdfs:subClassOf ep-flow:Flow . |
255 | 260 | ||
256 | ep-flow:NGL-componentInGasFlow | 261 | ep-flow:NGL-componentInGasFlow |
257 | - rdf:type owl:Class , ep-flow:ProductType ; | 262 | + rdf:type ep-flow:ProductType , owl:Class ; |
258 | rdfs:label "NGL - component in gas flow"^^xsd:string ; | 263 | rdfs:label "NGL - component in gas flow"^^xsd:string ; |
259 | rdfs:subClassOf ep-flow:Flow . | 264 | rdfs:subClassOf ep-flow:Flow . |
260 | 265 | ||
261 | ep-flow:NaturalGasLiquidFlow | 266 | ep-flow:NaturalGasLiquidFlow |
262 | - rdf:type owl:Class , ep-flow:ProductType ; | 267 | + rdf:type ep-flow:ProductType , owl:Class ; |
263 | rdfs:label "natural gas liquid flow"^^xsd:string ; | 268 | rdfs:label "natural gas liquid flow"^^xsd:string ; |
264 | rdfs:subClassOf ep-flow:Flow . | 269 | rdfs:subClassOf ep-flow:Flow . |
265 | 270 | ||
266 | ep-flow:NitrogenOxideGasFlow | 271 | ep-flow:NitrogenOxideGasFlow |
267 | - rdf:type owl:Class , ep-flow:ProductType ; | 272 | + rdf:type ep-flow:ProductType , owl:Class ; |
268 | rdfs:label "nitrogen oxide gas flow"^^xsd:string ; | 273 | rdfs:label "nitrogen oxide gas flow"^^xsd:string ; |
269 | rdfs:subClassOf ep-flow:Flow . | 274 | rdfs:subClassOf ep-flow:Flow . |
270 | 275 | ||
271 | ep-flow:Oil-componentInWaterFlow | 276 | ep-flow:Oil-componentInWaterFlow |
272 | - rdf:type owl:Class , ep-flow:ProductType ; | 277 | + rdf:type ep-flow:ProductType , owl:Class ; |
273 | rdfs:label "oil - component in water flow"^^xsd:string ; | 278 | rdfs:label "oil - component in water flow"^^xsd:string ; |
274 | rdfs:subClassOf ep-flow:Flow . | 279 | rdfs:subClassOf ep-flow:Flow . |
275 | 280 | ||
276 | ep-flow:Oil-netFlow | 281 | ep-flow:Oil-netFlow |
277 | - rdf:type owl:Class , ep-flow:ProductType ; | 282 | + rdf:type ep-flow:ProductType , owl:Class ; |
278 | rdfs:label "oil - net flow"^^xsd:string ; | 283 | rdfs:label "oil - net flow"^^xsd:string ; |
279 | rdfs:subClassOf ep-flow:Flow . | 284 | rdfs:subClassOf ep-flow:Flow . |
280 | 285 | ||
281 | ep-flow:OilAndGasFlow | 286 | ep-flow:OilAndGasFlow |
282 | - rdf:type owl:Class , ep-flow:ProductType ; | 287 | + rdf:type ep-flow:ProductType , owl:Class ; |
283 | rdfs:label "oil and gas flow"^^xsd:string ; | 288 | rdfs:label "oil and gas flow"^^xsd:string ; |
284 | rdfs:subClassOf ep-flow:Flow . | 289 | rdfs:subClassOf ep-flow:Flow . |
285 | 290 | ||
286 | ep-flow:OilFlow | 291 | ep-flow:OilFlow |
287 | - rdf:type ep-flow:ProductType , owl:Class ; | 292 | + rdf:type owl:Class , ep-flow:ProductType ; |
288 | rdfs:label "oil flow"^^xsd:string ; | 293 | rdfs:label "oil flow"^^xsd:string ; |
289 | rdfs:subClassOf ep-flow:Flow . | 294 | rdfs:subClassOf ep-flow:Flow . |
290 | 295 | ||
291 | ep-flow:OleicFlow | 296 | ep-flow:OleicFlow |
292 | - rdf:type owl:Class , ep-flow:ProductType ; | 297 | + rdf:type ep-flow:ProductType , owl:Class ; |
293 | rdfs:label "oleic flow"^^xsd:string ; | 298 | rdfs:label "oleic flow"^^xsd:string ; |
294 | rdfs:subClassOf ep-flow:Flow . | 299 | rdfs:subClassOf ep-flow:Flow . |
295 | 300 | ||
296 | ep-flow:Overboard | 301 | ep-flow:Overboard |
297 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 302 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
298 | rdfs:label "overboard"^^xsd:string ; | 303 | rdfs:label "overboard"^^xsd:string ; |
299 | rdfs:subClassOf ep-flow:Flow . | 304 | rdfs:subClassOf ep-flow:Flow . |
300 | 305 | ||
... | @@ -314,7 +319,7 @@ ep-flow:ProductType | ... | @@ -314,7 +319,7 @@ ep-flow:ProductType |
314 | rdfs:subClassOf owl:Class . | 319 | rdfs:subClassOf owl:Class . |
315 | 320 | ||
316 | ep-flow:Production | 321 | ep-flow:Production |
317 | - rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ; | 322 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; |
318 | rdfs:label "production"^^xsd:string ; | 323 | rdfs:label "production"^^xsd:string ; |
319 | rdfs:subClassOf ep-flow:Flow . | 324 | rdfs:subClassOf ep-flow:Flow . |
320 | 325 | ||
... | @@ -354,25 +359,35 @@ ep-flow:ProductionTestWellHeadFlow | ... | @@ -354,25 +359,35 @@ ep-flow:ProductionTestWellHeadFlow |
354 | rdfs:subClassOf ep-flow:Flow . | 359 | rdfs:subClassOf ep-flow:Flow . |
355 | 360 | ||
356 | ep-flow:Propane-componentFlow | 361 | ep-flow:Propane-componentFlow |
357 | - rdf:type owl:Class , ep-flow:ProductType ; | 362 | + rdf:type ep-flow:ProductType , owl:Class ; |
358 | rdfs:label "propane - component flow"^^xsd:string ; | 363 | rdfs:label "propane - component flow"^^xsd:string ; |
359 | rdfs:subClassOf ep-flow:Flow . | 364 | rdfs:subClassOf ep-flow:Flow . |
360 | 365 | ||
361 | ep-flow:QuotaFlow | 366 | ep-flow:QuotaFlow |
362 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 367 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
363 | rdfs:label "quota flow"^^xsd:string ; | 368 | rdfs:label "quota flow"^^xsd:string ; |
364 | rdfs:subClassOf ep-flow:Flow . | 369 | rdfs:subClassOf ep-flow:Flow . |
365 | 370 | ||
371 | +ep-flow:Sale | ||
372 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; | ||
373 | + rdfs:label "sale"^^xsd:string ; | ||
374 | + rdfs:subClassOf ep-flow:Flow . | ||
375 | + | ||
366 | ep-flow:SandFlow | 376 | ep-flow:SandFlow |
367 | - rdf:type owl:Class , ep-flow:ProductType ; | 377 | + rdf:type ep-flow:ProductType , owl:Class ; |
368 | rdfs:label "sand flow"^^xsd:string ; | 378 | rdfs:label "sand flow"^^xsd:string ; |
369 | rdfs:subClassOf ep-flow:Flow . | 379 | rdfs:subClassOf ep-flow:Flow . |
370 | 380 | ||
371 | ep-flow:SimulatedFlow | 381 | ep-flow:SimulatedFlow |
372 | - rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ; | 382 | + rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ; |
373 | rdfs:label "simulated flow"^^xsd:string ; | 383 | rdfs:label "simulated flow"^^xsd:string ; |
374 | rdfs:subClassOf ep-flow:Flow . | 384 | rdfs:subClassOf ep-flow:Flow . |
375 | 385 | ||
386 | +ep-flow:Storage | ||
387 | + rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ; | ||
388 | + rdfs:label "storage"^^xsd:string ; | ||
389 | + rdfs:subClassOf ep-flow:Flow . | ||
390 | + | ||
376 | ep-flow:TemporalPartOfAFlow | 391 | ep-flow:TemporalPartOfAFlow |
377 | rdf:type owl:Class ; | 392 | rdf:type owl:Class ; |
378 | rdfs:label "temporal part of a flow"^^xsd:string ; | 393 | rdfs:label "temporal part of a flow"^^xsd:string ; |
... | @@ -394,27 +409,27 @@ ep-flow:TemporalPartOfAProductionFlow | ... | @@ -394,27 +409,27 @@ ep-flow:TemporalPartOfAProductionFlow |
394 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . | 409 | rdfs:subClassOf ep-flow:TemporalPartOfAFlow . |
395 | 410 | ||
396 | ep-flow:VapourFlow | 411 | ep-flow:VapourFlow |
397 | - rdf:type owl:Class , ep-flow:ProductType ; | 412 | + rdf:type ep-flow:ProductType , owl:Class ; |
398 | rdfs:label "vapour flow"^^xsd:string ; | 413 | rdfs:label "vapour flow"^^xsd:string ; |
399 | rdfs:subClassOf ep-flow:Flow . | 414 | rdfs:subClassOf ep-flow:Flow . |
400 | 415 | ||
401 | ep-flow:Water-dischargeFlow | 416 | ep-flow:Water-dischargeFlow |
402 | - rdf:type owl:Class , ep-flow:ProductType ; | 417 | + rdf:type ep-flow:ProductType , owl:Class ; |
403 | rdfs:label "water - discharge flow"^^xsd:string ; | 418 | rdfs:label "water - discharge flow"^^xsd:string ; |
404 | rdfs:subClassOf ep-flow:Flow . | 419 | rdfs:subClassOf ep-flow:Flow . |
405 | 420 | ||
406 | ep-flow:Water-processedFlow | 421 | ep-flow:Water-processedFlow |
407 | - rdf:type owl:Class , ep-flow:ProductType ; | 422 | + rdf:type ep-flow:ProductType , owl:Class ; |
408 | rdfs:label "water - processed flow"^^xsd:string ; | 423 | rdfs:label "water - processed flow"^^xsd:string ; |
409 | rdfs:subClassOf ep-flow:Flow . | 424 | rdfs:subClassOf ep-flow:Flow . |
410 | 425 | ||
411 | ep-flow:WaterFlow | 426 | ep-flow:WaterFlow |
412 | - rdf:type owl:Class , ep-flow:ProductType ; | 427 | + rdf:type ep-flow:ProductType , owl:Class ; |
413 | rdfs:label "water flow"^^xsd:string ; | 428 | rdfs:label "water flow"^^xsd:string ; |
414 | rdfs:subClassOf ep-flow:Flow . | 429 | rdfs:subClassOf ep-flow:Flow . |
415 | 430 | ||
416 | ep-flow:dailyAverageAmountOfMaterial | 431 | ep-flow:dailyAverageAmountOfMaterial |
417 | - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; | 432 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty ; |
418 | rdfs:label "daily average amount of material"^^xsd:string ; | 433 | rdfs:label "daily average amount of material"^^xsd:string ; |
419 | rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> . | 434 | rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> . |
420 | 435 | ||
... | @@ -459,6 +474,6 @@ ep-flow:hasNetworkPart | ... | @@ -459,6 +474,6 @@ ep-flow:hasNetworkPart |
459 | rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> . | 474 | rdfs:subPropertyOf <http://www.reportinghub.no/ep/schema/core#hasPart> . |
460 | 475 | ||
461 | ep-flow:totalAmountOfMaterial | 476 | ep-flow:totalAmountOfMaterial |
462 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; | 477 | + rdf:type owl:FunctionalProperty , owl:ObjectProperty ; |
463 | rdfs:label "total amount of material"^^xsd:string ; | 478 | rdfs:label "total amount of material"^^xsd:string ; |
464 | rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> . | 479 | rdfs:range <http://www.reportinghub.no/ep/schema/core#MeasureOfAmountOfMaterial> . | ... | ... |
... | @@ -10,10 +10,14 @@ | ... | @@ -10,10 +10,14 @@ |
10 | 10 | ||
11 | <http://www.reportinghub.no/ep/schema/1.0/production-equipment> | 11 | <http://www.reportinghub.no/ep/schema/1.0/production-equipment> |
12 | rdf:type owl:Ontology ; | 12 | rdf:type owl:Ontology ; |
13 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-organization> ; | 13 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-organization> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ; |
14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 14 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
15 | 15 | ||
16 | +ep-prodeqt:FlowMeter | ||
17 | + rdf:type owl:Class ; | ||
18 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | ||
19 | + | ||
16 | ep-prodeqt:hasCaptain | 20 | ep-prodeqt:hasCaptain |
17 | - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; | 21 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty ; |
18 | rdfs:label "has captain"^^xsd:string ; | 22 | rdfs:label "has captain"^^xsd:string ; |
19 | rdfs:range <http://www.reportinghub.no/ep/schema/production-organization#Person> . | 23 | rdfs:range <http://www.reportinghub.no/ep/schema/production-organization#Person> . | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -31,349 +31,197 @@ | ... | @@ -31,349 +31,197 @@ |
31 | <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> | 31 | <http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume> |
32 | spin:rule | 32 | spin:rule |
33 | [ rdf:type sp:Construct ; | 33 | [ rdf:type sp:Construct ; |
34 | - rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ; | 34 | + rdfs:comment "STEP 20103a record the flows"^^xsd:string ; |
35 | - sp:templates ([ sp:object _:b1 ; | 35 | + sp:templates ([ sp:object |
36 | - sp:predicate _:b2 ; | 36 | + [ sp:varName "productionFacility"^^xsd:string |
37 | - sp:subject _:b3 | ||
38 | - ] [ sp:object _:b4 ; | ||
39 | - sp:predicate rdf:type ; | ||
40 | - sp:subject _:b1 | ||
41 | - ]) ; | ||
42 | - sp:where ([ sp:object _:b5 ; | ||
43 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
44 | - sp:subject spin:_this | ||
45 | - ] [ sp:object _:b6 ; | ||
46 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
47 | - sp:subject _:b5 | ||
48 | - ] [ sp:object _:b7 ; | ||
49 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
50 | - sp:subject _:b6 | ||
51 | - ] [ sp:object _:b8 ; | ||
52 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
53 | - sp:subject _:b6 | ||
54 | - ] [ sp:object _:b9 ; | ||
55 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
56 | - sp:subject _:b6 | ||
57 | - ] [ sp:object _:b10 ; | ||
58 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
59 | - sp:subject _:b9 | ||
60 | - ] [ rdf:type sp:Bind ; | ||
61 | - sp:expression | ||
62 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
63 | - sp:arg1 _:b7 | ||
64 | - ] ; | ||
65 | - sp:variable _:b11 | ||
66 | - ] [ rdf:type sp:Bind ; | ||
67 | - sp:expression | ||
68 | - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | ||
69 | - sp:arg1 _:b11 | ||
70 | - ] ; | ||
71 | - sp:variable _:b3 | ||
72 | - ] [ rdf:type sp:Bind ; | ||
73 | - sp:expression | ||
74 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
75 | - sp:arg1 _:b10 | ||
76 | ] ; | 37 | ] ; |
77 | - sp:variable _:b4 | 38 | + sp:predicate |
78 | - ] [ rdf:type sp:Bind ; | 39 | + [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string |
79 | - sp:expression | ||
80 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
81 | - sp:arg1 _:b8 | ||
82 | ] ; | 40 | ] ; |
83 | - sp:variable _:b2 | 41 | + sp:subject |
84 | - ]) | 42 | + [ sp:varName "productionFlow"^^xsd:string |
85 | - ] ; | 43 | + ] |
86 | - spin:rule | ||
87 | - [ rdf:type sp:Construct ; | ||
88 | - rdfs:comment "STEP 20103a record the flows"^^xsd:string ; | ||
89 | - sp:templates ([ sp:object _:b12 ; | ||
90 | - sp:predicate _:b13 ; | ||
91 | - sp:subject _:b14 | ||
92 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 44 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
93 | sp:predicate rdf:type ; | 45 | sp:predicate rdf:type ; |
94 | - sp:subject _:b14 | 46 | + sp:subject |
95 | - ] [ sp:object _:b15 ; | 47 | + [ sp:varName "productionFlow"^^xsd:string |
48 | + ] | ||
49 | + ] [ sp:object | ||
50 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
51 | + ] ; | ||
96 | sp:predicate rdf:type ; | 52 | sp:predicate rdf:type ; |
97 | - sp:subject _:b14 | 53 | + sp:subject |
98 | - ] [ sp:object _:b16 ; | 54 | + [ sp:varName "productionFlow"^^xsd:string |
55 | + ] | ||
56 | + ] [ sp:object | ||
57 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
58 | + ] ; | ||
99 | sp:predicate rdf:type ; | 59 | sp:predicate rdf:type ; |
100 | - sp:subject _:b14 | 60 | + sp:subject |
101 | - ] [ sp:object _:b17 ; | 61 | + [ sp:varName "productionFlow"^^xsd:string |
62 | + ] | ||
63 | + ] [ sp:object | ||
64 | + [ sp:varName "flowName"^^xsd:string | ||
65 | + ] ; | ||
102 | sp:predicate rdfs:label ; | 66 | sp:predicate rdfs:label ; |
103 | - sp:subject _:b14 | 67 | + sp:subject |
104 | - ] [ sp:object _:b14 ; | 68 | + [ sp:varName "productionFlow"^^xsd:string |
69 | + ] | ||
70 | + ] [ sp:object | ||
71 | + [ sp:varName "productionFlow"^^xsd:string | ||
72 | + ] ; | ||
105 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 73 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
106 | - sp:subject _:b18 | 74 | + sp:subject _:b1 |
107 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 75 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
108 | sp:predicate rdf:type ; | 76 | sp:predicate rdf:type ; |
109 | - sp:subject _:b18 | 77 | + sp:subject _:b1 |
110 | - ] [ sp:object _:b18 ; | 78 | + ] [ sp:object _:b1 ; |
111 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; | 79 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; |
112 | - sp:subject _:b19 | 80 | + sp:subject |
113 | - ] [ sp:object _:b20 ; | 81 | + [ sp:varName "productionFlowsToDate"^^xsd:string |
82 | + ] | ||
83 | + ] [ sp:object | ||
84 | + [ sp:varName "flowRef"^^xsd:string | ||
85 | + ] ; | ||
114 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 86 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
115 | - sp:subject _:b18 | 87 | + sp:subject _:b1 |
116 | ]) ; | 88 | ]) ; |
117 | sp:where ([ sp:object spin:_this ; | 89 | sp:where ([ sp:object spin:_this ; |
118 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 90 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
119 | - sp:subject _:b19 | 91 | + sp:subject |
120 | - ] [ sp:object _:b21 ; | 92 | + [ sp:varName "dailyProductionFlows"^^xsd:string |
93 | + ] | ||
94 | + ] [ sp:object | ||
95 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
96 | + ] ; | ||
97 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
98 | + sp:subject | ||
99 | + [ sp:varName "dailyProductionFlows"^^xsd:string | ||
100 | + ] | ||
101 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
102 | + sp:predicate rdf:type ; | ||
103 | + sp:subject | ||
104 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
105 | + ] | ||
106 | + ] [ sp:object | ||
107 | + [ sp:varName "facilityRef"^^xsd:string | ||
108 | + ] ; | ||
121 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 109 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
122 | sp:subject spin:_this | 110 | sp:subject spin:_this |
123 | - ] [ sp:object _:b22 ; | 111 | + ] [ sp:object |
112 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
113 | + ] ; | ||
124 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 114 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
125 | - sp:subject _:b21 | 115 | + sp:subject |
126 | - ] [ sp:object _:b23 ; | 116 | + [ sp:varName "facilityRef"^^xsd:string |
117 | + ] | ||
118 | + ] [ sp:object | ||
119 | + [ sp:varName "facilityName"^^xsd:string | ||
120 | + ] ; | ||
127 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 121 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
128 | - sp:subject _:b22 | 122 | + sp:subject |
129 | - ] [ sp:object _:b20 ; | 123 | + [ sp:varName "facilityNameRef"^^xsd:string |
124 | + ] | ||
125 | + ] [ sp:object | ||
126 | + [ sp:varName "flowRef"^^xsd:string | ||
127 | + ] ; | ||
130 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | 128 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; |
131 | - sp:subject _:b21 | 129 | + sp:subject |
132 | - ] [ sp:object _:b17 ; | 130 | + [ sp:varName "facilityRef"^^xsd:string |
131 | + ] | ||
132 | + ] [ sp:object | ||
133 | + [ sp:varName "flowName"^^xsd:string | ||
134 | + ] ; | ||
133 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | 135 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; |
134 | - sp:subject _:b20 | 136 | + sp:subject |
135 | - ] [ sp:object _:b24 ; | 137 | + [ sp:varName "flowRef"^^xsd:string |
138 | + ] | ||
139 | + ] [ sp:object | ||
140 | + [ sp:varName "flowKind"^^xsd:string | ||
141 | + ] ; | ||
136 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 142 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
137 | - sp:subject _:b20 | 143 | + sp:subject |
138 | - ] [ sp:object _:b25 ; | 144 | + [ sp:varName "flowRef"^^xsd:string |
145 | + ] | ||
146 | + ] [ sp:object | ||
147 | + [ sp:varName "flowDirection"^^xsd:string | ||
148 | + ] ; | ||
139 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | 149 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; |
140 | - sp:subject _:b20 | 150 | + sp:subject |
151 | + [ sp:varName "flowRef"^^xsd:string | ||
152 | + ] | ||
141 | ] [ rdf:type sp:Optional ; | 153 | ] [ rdf:type sp:Optional ; |
142 | - sp:elements ([ sp:object _:b26 ; | 154 | + sp:elements ([ sp:object |
155 | + [ sp:varName "flowQualifier"^^xsd:string | ||
156 | + ] ; | ||
143 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; | 157 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ; |
144 | - sp:subject _:b20 | 158 | + sp:subject |
159 | + [ sp:varName "flowRef"^^xsd:string | ||
160 | + ] | ||
145 | ]) | 161 | ]) |
146 | ] [ rdf:type sp:Bind ; | 162 | ] [ rdf:type sp:Bind ; |
147 | sp:expression | 163 | sp:expression |
148 | [ rdf:type ep-spin-lib:normalizeString ; | 164 | [ rdf:type ep-spin-lib:normalizeString ; |
149 | - sp:arg1 _:b23 | 165 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string |
166 | + ] | ||
150 | ] ; | 167 | ] ; |
151 | - sp:variable _:b27 | 168 | + sp:variable |
169 | + [ sp:varName "normalizedFacilityName"^^xsd:string | ||
170 | + ] | ||
152 | ] [ rdf:type sp:Bind ; | 171 | ] [ rdf:type sp:Bind ; |
153 | sp:expression | 172 | sp:expression |
154 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 173 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
155 | - sp:arg1 _:b27 | 174 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string |
175 | + ] | ||
156 | ] ; | 176 | ] ; |
157 | - sp:variable _:b12 | 177 | + sp:variable |
178 | + [ sp:varName "productionFacility"^^xsd:string | ||
179 | + ] | ||
158 | ] [ rdf:type sp:Bind ; | 180 | ] [ rdf:type sp:Bind ; |
159 | sp:expression | 181 | sp:expression |
160 | [ rdf:type ep-spin-lib:normalizeString ; | 182 | [ rdf:type ep-spin-lib:normalizeString ; |
161 | - sp:arg1 _:b17 | 183 | + sp:arg1 [ sp:varName "flowName"^^xsd:string |
184 | + ] | ||
162 | ] ; | 185 | ] ; |
163 | - sp:variable _:b28 | 186 | + sp:variable |
187 | + [ sp:varName "normalizedFlowName"^^xsd:string | ||
188 | + ] | ||
164 | ] [ rdf:type sp:Bind ; | 189 | ] [ rdf:type sp:Bind ; |
165 | sp:expression | 190 | sp:expression |
166 | [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | 191 | [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; |
167 | - sp:arg1 _:b28 | 192 | + sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string |
193 | + ] | ||
168 | ] ; | 194 | ] ; |
169 | - sp:variable _:b14 | 195 | + sp:variable |
196 | + [ sp:varName "productionFlow"^^xsd:string | ||
197 | + ] | ||
170 | ] [ rdf:type sp:Bind ; | 198 | ] [ rdf:type sp:Bind ; |
171 | sp:expression | 199 | sp:expression |
172 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; | 200 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ; |
173 | - sp:arg1 _:b24 | 201 | + sp:arg1 [ sp:varName "flowKind"^^xsd:string |
202 | + ] | ||
174 | ] ; | 203 | ] ; |
175 | - sp:variable _:b15 | 204 | + sp:variable |
205 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
206 | + ] | ||
176 | ] [ rdf:type sp:Bind ; | 207 | ] [ rdf:type sp:Bind ; |
177 | sp:expression | 208 | sp:expression |
178 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; | 209 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ; |
179 | - sp:arg1 _:b26 | 210 | + sp:arg1 [ sp:varName "flowQualifier"^^xsd:string |
211 | + ] | ||
180 | ] ; | 212 | ] ; |
181 | - sp:variable _:b16 | 213 | + sp:variable |
214 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
215 | + ] | ||
182 | ] [ rdf:type sp:Bind ; | 216 | ] [ rdf:type sp:Bind ; |
183 | sp:expression | 217 | sp:expression |
184 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ; | 218 | [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ; |
185 | - sp:arg1 _:b25 | 219 | + sp:arg1 [ sp:varName "flowDirection"^^xsd:string |
186 | - ] ; | 220 | + ] |
187 | - sp:variable _:b13 | ||
188 | - ]) | ||
189 | - ] ; | ||
190 | - spin:rule | ||
191 | - [ rdf:type sp:Construct ; | ||
192 | - rdfs:comment """STEP 20103b record the related facility | ||
193 | -nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; | ||
194 | - sp:templates ([ sp:object _:b29 ; | ||
195 | - sp:predicate _:b30 ; | ||
196 | - sp:subject _:b31 | ||
197 | - ] [ sp:object _:b32 ; | ||
198 | - sp:predicate rdf:type ; | ||
199 | - sp:subject _:b29 | ||
200 | - ]) ; | ||
201 | - sp:where ([ sp:object _:b33 ; | ||
202 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
203 | - sp:subject spin:_this | ||
204 | - ] [ sp:object _:b34 ; | ||
205 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
206 | - sp:subject _:b33 | ||
207 | - ] [ sp:object _:b35 ; | ||
208 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
209 | - sp:subject _:b34 | ||
210 | - ] [ sp:object _:b36 ; | ||
211 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
212 | - sp:subject _:b34 | ||
213 | - ] [ sp:object _:b37 ; | ||
214 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
215 | - sp:subject _:b34 | ||
216 | - ] [ sp:object _:b38 ; | ||
217 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
218 | - sp:subject _:b37 | ||
219 | - ] [ rdf:type sp:Optional ; | ||
220 | - sp:elements ([ sp:object _:b39 ; | ||
221 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
222 | - sp:subject _:b37 | ||
223 | - ]) | ||
224 | - ] [ rdf:type sp:Bind ; | ||
225 | - sp:expression | ||
226 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
227 | - sp:arg1 _:b35 | ||
228 | - ] ; | ||
229 | - sp:variable _:b40 | ||
230 | - ] [ rdf:type sp:Bind ; | ||
231 | - sp:expression | ||
232 | - [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | ||
233 | - sp:arg1 _:b40 | ||
234 | - ] ; | ||
235 | - sp:variable _:b31 | ||
236 | - ] [ rdf:type sp:Bind ; | ||
237 | - sp:expression | ||
238 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
239 | - sp:arg1 _:b38 | ||
240 | - ] ; | ||
241 | - sp:variable _:b41 | ||
242 | - ] [ rdf:type sp:Bind ; | ||
243 | - sp:expression | ||
244 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
245 | - sp:arg1 _:b41 | ||
246 | - ] ; | ||
247 | - sp:variable _:b29 | ||
248 | - ] [ rdf:type sp:Bind ; | ||
249 | - sp:expression | ||
250 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
251 | - sp:arg1 _:b39 | ||
252 | - ] ; | ||
253 | - sp:variable _:b32 | ||
254 | - ] [ rdf:type sp:Bind ; | ||
255 | - sp:expression | ||
256 | - [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
257 | - sp:arg1 _:b36 | ||
258 | - ] ; | ||
259 | - sp:variable _:b30 | ||
260 | - ]) | ||
261 | - ] ; | ||
262 | - spin:rule | ||
263 | - [ rdf:type sp:Construct ; | ||
264 | - rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; | ||
265 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ; | ||
266 | - sp:predicate rdf:type ; | ||
267 | - sp:subject _:b42 | ||
268 | - ] [ sp:object _:b43 ; | ||
269 | - sp:predicate rdf:type ; | ||
270 | - sp:subject _:b42 | ||
271 | - ] [ sp:object _:b44 ; | ||
272 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
273 | - sp:subject _:b42 | ||
274 | - ] [ sp:object _:b45 ; | ||
275 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
276 | - sp:subject _:b42 | ||
277 | - ] [ sp:object _:b46 ; | ||
278 | - sp:predicate _:b47 ; | ||
279 | - sp:subject _:b42 | ||
280 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
281 | - sp:predicate rdf:type ; | ||
282 | - sp:subject _:b46 | ||
283 | - ] [ sp:object _:b48 ; | ||
284 | - sp:predicate _:b49 ; | ||
285 | - sp:subject _:b46 | ||
286 | - ] [ sp:object _:b50 ; | ||
287 | - sp:predicate _:b47 ; | ||
288 | - sp:subject _:b42 | ||
289 | - ] [ sp:object _:b51 ; | ||
290 | - sp:predicate rdf:type ; | ||
291 | - sp:subject _:b50 | ||
292 | - ] [ sp:object _:b52 ; | ||
293 | - sp:predicate _:b53 ; | ||
294 | - sp:subject _:b50 | ||
295 | - ]) ; | ||
296 | - sp:where ([ sp:object _:b54 ; | ||
297 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ; | ||
298 | - sp:subject spin:_this | ||
299 | - ] [ sp:object _:b55 ; | ||
300 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
301 | - sp:subject spin:_this | ||
302 | - ] [ sp:object _:b56 ; | ||
303 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
304 | - sp:subject _:b55 | ||
305 | - ] [ sp:object _:b57 ; | ||
306 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; | ||
307 | - sp:subject _:b56 | ||
308 | - ] [ sp:object _:b57 ; | ||
309 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
310 | - sp:subject _:b44 | ||
311 | - ] [ sp:object | ||
312 | - [ sp:varName "productKind"^^xsd:string | ||
313 | - ] ; | ||
314 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
315 | - sp:subject _:b57 | ||
316 | - ] [ sp:object _:b58 ; | ||
317 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ; | ||
318 | - sp:subject _:b57 | ||
319 | - ] [ sp:object _:b59 ; | ||
320 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
321 | - sp:subject _:b58 | ||
322 | - ] [ sp:object _:b45 ; | ||
323 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | ||
324 | - sp:subject _:b58 | ||
325 | - ] [ rdf:type sp:Optional ; | ||
326 | - sp:elements ([ sp:object _:b60 ; | ||
327 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ; | ||
328 | - sp:subject _:b58 | ||
329 | - ] [ sp:object _:b48 ; | ||
330 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
331 | - sp:subject _:b60 | ||
332 | - ] [ sp:object _:b61 ; | ||
333 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; | ||
334 | - sp:subject _:b60 | ||
335 | - ]) | ||
336 | - ] [ rdf:type sp:Optional ; | ||
337 | - sp:elements ([ sp:object _:b62 ; | ||
338 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ; | ||
339 | - sp:subject _:b58 | ||
340 | - ] [ sp:object _:b52 ; | ||
341 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
342 | - sp:subject _:b62 | ||
343 | - ] [ sp:object _:b63 ; | ||
344 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; | ||
345 | - sp:subject _:b62 | ||
346 | - ]) | ||
347 | - ] [ rdf:type sp:Bind ; | ||
348 | - sp:expression | ||
349 | - [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; | ||
350 | - sp:arg1 _:b59 | ||
351 | - ] ; | ||
352 | - sp:variable _:b47 | ||
353 | - ] [ rdf:type sp:Bind ; | ||
354 | - sp:expression | ||
355 | - [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ; | ||
356 | - sp:arg1 _:b59 | ||
357 | - ] ; | ||
358 | - sp:variable _:b43 | ||
359 | - ] [ rdf:type sp:Bind ; | ||
360 | - sp:expression | ||
361 | - [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ; | ||
362 | - sp:arg1 _:b54 | ||
363 | - ] ; | ||
364 | - sp:variable _:b51 | ||
365 | - ] [ rdf:type sp:Bind ; | ||
366 | - sp:expression | ||
367 | - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
368 | - sp:arg1 _:b61 | ||
369 | - ] ; | ||
370 | - sp:variable _:b49 | ||
371 | - ] [ rdf:type sp:Bind ; | ||
372 | - sp:expression | ||
373 | - [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
374 | - sp:arg1 _:b63 | ||
375 | ] ; | 221 | ] ; |
376 | - sp:variable _:b53 | 222 | + sp:variable |
223 | + [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string | ||
224 | + ] | ||
377 | ]) | 225 | ]) |
378 | ] ; | 226 | ] ; |
379 | spin:rule | 227 | spin:rule |
... | @@ -410,11 +258,11 @@ namingSystem not processed"""^^xsd:string ; | ... | @@ -410,11 +258,11 @@ namingSystem not processed"""^^xsd:string ; |
410 | [ sp:varName "productFlow"^^xsd:string | 258 | [ sp:varName "productFlow"^^xsd:string |
411 | ] ; | 259 | ] ; |
412 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 260 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
413 | - sp:subject _:b64 | 261 | + sp:subject _:b2 |
414 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ; | 262 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ; |
415 | sp:predicate rdf:type ; | 263 | sp:predicate rdf:type ; |
416 | - sp:subject _:b64 | 264 | + sp:subject _:b2 |
417 | - ] [ sp:object _:b64 ; | 265 | + ] [ sp:object _:b2 ; |
418 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | 266 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; |
419 | sp:subject | 267 | sp:subject |
420 | [ sp:varName "productionFlowToDate"^^xsd:string | 268 | [ sp:varName "productionFlowToDate"^^xsd:string |
... | @@ -423,7 +271,7 @@ namingSystem not processed"""^^xsd:string ; | ... | @@ -423,7 +271,7 @@ namingSystem not processed"""^^xsd:string ; |
423 | [ sp:varName "productRef"^^xsd:string | 271 | [ sp:varName "productRef"^^xsd:string |
424 | ] ; | 272 | ] ; |
425 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 273 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
426 | - sp:subject _:b64 | 274 | + sp:subject _:b2 |
427 | ]) ; | 275 | ]) ; |
428 | sp:where ([ sp:object spin:_this ; | 276 | sp:where ([ sp:object spin:_this ; |
429 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 277 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -478,69 +326,258 @@ namingSystem not processed"""^^xsd:string ; | ... | @@ -478,69 +326,258 @@ namingSystem not processed"""^^xsd:string ; |
478 | [ sp:varName "productRef"^^xsd:string | 326 | [ sp:varName "productRef"^^xsd:string |
479 | ] | 327 | ] |
480 | ] [ rdf:type sp:Optional ; | 328 | ] [ rdf:type sp:Optional ; |
481 | - sp:elements ([ sp:object | 329 | + sp:elements ([ sp:object |
482 | - [ sp:varName "productNameRef"^^xsd:string | 330 | + [ sp:varName "productNameRef"^^xsd:string |
483 | - ] ; | 331 | + ] ; |
484 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 332 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
485 | - sp:subject | 333 | + sp:subject |
486 | - [ sp:varName "productRef"^^xsd:string | 334 | + [ sp:varName "productRef"^^xsd:string |
487 | - ] | 335 | + ] |
488 | - ] [ sp:object | 336 | + ] [ sp:object |
489 | - [ sp:varName "productFlowName"^^xsd:string | 337 | + [ sp:varName "productFlowName"^^xsd:string |
490 | - ] ; | 338 | + ] ; |
491 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 339 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
492 | - sp:subject | 340 | + sp:subject |
493 | - [ sp:varName "productNameRef"^^xsd:string | 341 | + [ sp:varName "productNameRef"^^xsd:string |
494 | - ] | 342 | + ] |
343 | + ]) | ||
344 | + ] [ rdf:type sp:Bind ; | ||
345 | + sp:expression | ||
346 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
347 | + sp:arg1 [ sp:varName "flowName"^^xsd:string | ||
348 | + ] | ||
349 | + ] ; | ||
350 | + sp:variable | ||
351 | + [ sp:varName "normalizedFlowName"^^xsd:string | ||
352 | + ] | ||
353 | + ] [ rdf:type sp:Bind ; | ||
354 | + sp:expression | ||
355 | + [ rdf:type ep-dpr-spin-lib:selectProductType ; | ||
356 | + sp:arg1 [ sp:varName "productKind"^^xsd:string | ||
357 | + ] | ||
358 | + ] ; | ||
359 | + sp:variable | ||
360 | + [ sp:varName "productType"^^xsd:string | ||
361 | + ] | ||
362 | + ] [ rdf:type sp:Bind ; | ||
363 | + sp:expression | ||
364 | + [ rdf:type spl:object ; | ||
365 | + sp:arg1 [ sp:varName "productType"^^xsd:string | ||
366 | + ] ; | ||
367 | + sp:arg2 rdfs:label | ||
368 | + ] ; | ||
369 | + sp:variable | ||
370 | + [ sp:varName "productTypeName"^^xsd:string | ||
371 | + ] | ||
372 | + ] [ rdf:type sp:Bind ; | ||
373 | + sp:expression | ||
374 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
375 | + sp:arg1 [ sp:varName "productTypeName"^^xsd:string | ||
376 | + ] | ||
377 | + ] ; | ||
378 | + sp:variable | ||
379 | + [ sp:varName "normalizedProductTypeName"^^xsd:string | ||
380 | + ] | ||
381 | + ] [ rdf:type sp:Bind ; | ||
382 | + sp:expression | ||
383 | + [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; | ||
384 | + sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string | ||
385 | + ] ; | ||
386 | + sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string | ||
387 | + ] | ||
388 | + ] ; | ||
389 | + sp:variable | ||
390 | + [ sp:varName "productFlow"^^xsd:string | ||
391 | + ] | ||
392 | + ]) | ||
393 | + ] ; | ||
394 | + spin:rule | ||
395 | + [ rdf:type sp:Construct ; | ||
396 | + rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ; | ||
397 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ; | ||
398 | + sp:predicate rdf:type ; | ||
399 | + sp:subject _:b3 | ||
400 | + ] [ sp:object _:b4 ; | ||
401 | + sp:predicate rdf:type ; | ||
402 | + sp:subject _:b3 | ||
403 | + ] [ sp:object _:b5 ; | ||
404 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
405 | + sp:subject _:b3 | ||
406 | + ] [ sp:object _:b6 ; | ||
407 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
408 | + sp:subject _:b3 | ||
409 | + ] [ sp:object _:b7 ; | ||
410 | + sp:predicate _:b8 ; | ||
411 | + sp:subject _:b3 | ||
412 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
413 | + sp:predicate rdf:type ; | ||
414 | + sp:subject _:b7 | ||
415 | + ] [ sp:object _:b9 ; | ||
416 | + sp:predicate _:b10 ; | ||
417 | + sp:subject _:b7 | ||
418 | + ] [ sp:object _:b11 ; | ||
419 | + sp:predicate _:b8 ; | ||
420 | + sp:subject _:b3 | ||
421 | + ] [ sp:object _:b12 ; | ||
422 | + sp:predicate rdf:type ; | ||
423 | + sp:subject _:b11 | ||
424 | + ] [ sp:object _:b13 ; | ||
425 | + sp:predicate _:b14 ; | ||
426 | + sp:subject _:b11 | ||
427 | + ]) ; | ||
428 | + sp:where ([ sp:object _:b15 ; | ||
429 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ; | ||
430 | + sp:subject spin:_this | ||
431 | + ] [ sp:object _:b16 ; | ||
432 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
433 | + sp:subject spin:_this | ||
434 | + ] [ sp:object _:b17 ; | ||
435 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
436 | + sp:subject _:b16 | ||
437 | + ] [ sp:object _:b18 ; | ||
438 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ; | ||
439 | + sp:subject _:b17 | ||
440 | + ] [ sp:object _:b18 ; | ||
441 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
442 | + sp:subject _:b5 | ||
443 | + ] [ sp:object | ||
444 | + [ sp:varName "productKind"^^xsd:string | ||
445 | + ] ; | ||
446 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
447 | + sp:subject _:b18 | ||
448 | + ] [ sp:object _:b19 ; | ||
449 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ; | ||
450 | + sp:subject _:b18 | ||
451 | + ] [ sp:object _:b20 ; | ||
452 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
453 | + sp:subject _:b19 | ||
454 | + ] [ sp:object _:b6 ; | ||
455 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | ||
456 | + sp:subject _:b19 | ||
457 | + ] [ rdf:type sp:Optional ; | ||
458 | + sp:elements ([ sp:object _:b21 ; | ||
459 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ; | ||
460 | + sp:subject _:b19 | ||
461 | + ] [ sp:object _:b9 ; | ||
462 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
463 | + sp:subject _:b21 | ||
464 | + ] [ sp:object _:b22 ; | ||
465 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; | ||
466 | + sp:subject _:b21 | ||
467 | + ]) | ||
468 | + ] [ rdf:type sp:Optional ; | ||
469 | + sp:elements ([ sp:object _:b23 ; | ||
470 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ; | ||
471 | + sp:subject _:b19 | ||
472 | + ] [ sp:object _:b13 ; | ||
473 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
474 | + sp:subject _:b23 | ||
475 | + ] [ sp:object _:b24 ; | ||
476 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ; | ||
477 | + sp:subject _:b23 | ||
478 | + ]) | ||
479 | + ] [ rdf:type sp:Bind ; | ||
480 | + sp:expression | ||
481 | + [ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ; | ||
482 | + sp:arg1 _:b20 | ||
483 | + ] ; | ||
484 | + sp:variable _:b8 | ||
485 | + ] [ rdf:type sp:Bind ; | ||
486 | + sp:expression | ||
487 | + [ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ; | ||
488 | + sp:arg1 _:b20 | ||
489 | + ] ; | ||
490 | + sp:variable _:b4 | ||
491 | + ] [ rdf:type sp:Bind ; | ||
492 | + sp:expression | ||
493 | + [ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ; | ||
494 | + sp:arg1 _:b15 | ||
495 | + ] ; | ||
496 | + sp:variable _:b12 | ||
497 | + ] [ rdf:type sp:Bind ; | ||
498 | + sp:expression | ||
499 | + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
500 | + sp:arg1 _:b22 | ||
501 | + ] ; | ||
502 | + sp:variable _:b10 | ||
503 | + ] [ rdf:type sp:Bind ; | ||
504 | + sp:expression | ||
505 | + [ rdf:type ep-dpr-spin-lib:selectVolumeScale ; | ||
506 | + sp:arg1 _:b24 | ||
507 | + ] ; | ||
508 | + sp:variable _:b14 | ||
509 | + ]) | ||
510 | + ] ; | ||
511 | + spin:rule | ||
512 | + [ rdf:type sp:Construct ; | ||
513 | + rdfs:comment """STEP 20103b record the related facility | ||
514 | +nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ; | ||
515 | + sp:templates ([ sp:object _:b25 ; | ||
516 | + sp:predicate _:b26 ; | ||
517 | + sp:subject _:b27 | ||
518 | + ] [ sp:object _:b28 ; | ||
519 | + sp:predicate rdf:type ; | ||
520 | + sp:subject _:b25 | ||
521 | + ]) ; | ||
522 | + sp:where ([ sp:object _:b29 ; | ||
523 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
524 | + sp:subject spin:_this | ||
525 | + ] [ sp:object _:b30 ; | ||
526 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
527 | + sp:subject _:b29 | ||
528 | + ] [ sp:object _:b31 ; | ||
529 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
530 | + sp:subject _:b30 | ||
531 | + ] [ sp:object _:b32 ; | ||
532 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
533 | + sp:subject _:b30 | ||
534 | + ] [ sp:object _:b33 ; | ||
535 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
536 | + sp:subject _:b30 | ||
537 | + ] [ sp:object _:b34 ; | ||
538 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
539 | + sp:subject _:b33 | ||
540 | + ] [ rdf:type sp:Optional ; | ||
541 | + sp:elements ([ sp:object _:b35 ; | ||
542 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
543 | + sp:subject _:b33 | ||
495 | ]) | 544 | ]) |
496 | ] [ rdf:type sp:Bind ; | 545 | ] [ rdf:type sp:Bind ; |
497 | sp:expression | 546 | sp:expression |
498 | [ rdf:type ep-spin-lib:normalizeString ; | 547 | [ rdf:type ep-spin-lib:normalizeString ; |
499 | - sp:arg1 [ sp:varName "flowName"^^xsd:string | 548 | + sp:arg1 _:b31 |
500 | - ] | ||
501 | ] ; | 549 | ] ; |
502 | - sp:variable | 550 | + sp:variable _:b36 |
503 | - [ sp:varName "normalizedFlowName"^^xsd:string | ||
504 | - ] | ||
505 | ] [ rdf:type sp:Bind ; | 551 | ] [ rdf:type sp:Bind ; |
506 | sp:expression | 552 | sp:expression |
507 | - [ rdf:type ep-dpr-spin-lib:selectProductType ; | 553 | + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; |
508 | - sp:arg1 [ sp:varName "productKind"^^xsd:string | 554 | + sp:arg1 _:b36 |
509 | - ] | ||
510 | ] ; | 555 | ] ; |
511 | - sp:variable | 556 | + sp:variable _:b27 |
512 | - [ sp:varName "productType"^^xsd:string | ||
513 | - ] | ||
514 | ] [ rdf:type sp:Bind ; | 557 | ] [ rdf:type sp:Bind ; |
515 | sp:expression | 558 | sp:expression |
516 | - [ rdf:type spl:object ; | 559 | + [ rdf:type ep-spin-lib:normalizeString ; |
517 | - sp:arg1 [ sp:varName "productType"^^xsd:string | 560 | + sp:arg1 _:b34 |
518 | - ] ; | ||
519 | - sp:arg2 rdfs:label | ||
520 | ] ; | 561 | ] ; |
521 | - sp:variable | 562 | + sp:variable _:b37 |
522 | - [ sp:varName "productTypeName"^^xsd:string | ||
523 | - ] | ||
524 | ] [ rdf:type sp:Bind ; | 563 | ] [ rdf:type sp:Bind ; |
525 | sp:expression | 564 | sp:expression |
526 | - [ rdf:type ep-spin-lib:normalizeString ; | 565 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
527 | - sp:arg1 [ sp:varName "productTypeName"^^xsd:string | 566 | + sp:arg1 _:b37 |
528 | - ] | ||
529 | ] ; | 567 | ] ; |
530 | - sp:variable | 568 | + sp:variable _:b25 |
531 | - [ sp:varName "normalizedProductTypeName"^^xsd:string | ||
532 | - ] | ||
533 | ] [ rdf:type sp:Bind ; | 569 | ] [ rdf:type sp:Bind ; |
534 | sp:expression | 570 | sp:expression |
535 | - [ rdf:type ep-dpr-spin-lib:buildProductFlowURI ; | 571 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
536 | - sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string | 572 | + sp:arg1 _:b35 |
537 | - ] ; | ||
538 | - sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string | ||
539 | - ] | ||
540 | ] ; | 573 | ] ; |
541 | - sp:variable | 574 | + sp:variable _:b28 |
542 | - [ sp:varName "productFlow"^^xsd:string | 575 | + ] [ rdf:type sp:Bind ; |
543 | - ] | 576 | + sp:expression |
577 | + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
578 | + sp:arg1 _:b32 | ||
579 | + ] ; | ||
580 | + sp:variable _:b26 | ||
544 | ]) | 581 | ]) |
545 | ] ; | 582 | ] ; |
546 | spin:rule | 583 | spin:rule |
... | @@ -549,236 +586,245 @@ namingSystem not processed"""^^xsd:string ; | ... | @@ -549,236 +586,245 @@ namingSystem not processed"""^^xsd:string ; |
549 | Nothing is done with the namingSystem!"""^^xsd:string ; | 586 | Nothing is done with the namingSystem!"""^^xsd:string ; |
550 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 587 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
551 | sp:predicate rdf:type ; | 588 | sp:predicate rdf:type ; |
552 | - sp:subject _:b65 | 589 | + sp:subject _:b38 |
553 | - ] [ sp:object _:b66 ; | 590 | + ] [ sp:object _:b39 ; |
554 | sp:predicate rdf:type ; | 591 | sp:predicate rdf:type ; |
555 | - sp:subject _:b65 | 592 | + sp:subject _:b38 |
556 | ]) ; | 593 | ]) ; |
557 | - sp:where ([ sp:object _:b67 ; | 594 | + sp:where ([ sp:object _:b40 ; |
558 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | 595 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; |
559 | sp:subject spin:_this | 596 | sp:subject spin:_this |
560 | - ] [ sp:object _:b68 ; | 597 | + ] [ sp:object _:b41 ; |
561 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; | 598 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ; |
562 | - sp:subject _:b67 | 599 | + sp:subject _:b40 |
563 | - ] [ sp:object _:b69 ; | 600 | + ] [ sp:object _:b42 ; |
564 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 601 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
565 | - sp:subject _:b68 | 602 | + sp:subject _:b41 |
566 | ] [ rdf:type sp:Optional ; | 603 | ] [ rdf:type sp:Optional ; |
567 | sp:elements ([ sp:object | 604 | sp:elements ([ sp:object |
568 | [ sp:varName "facilityNamingSystem"^^xsd:string | 605 | [ sp:varName "facilityNamingSystem"^^xsd:string |
569 | ] ; | 606 | ] ; |
570 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ; | 607 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ; |
571 | - sp:subject _:b68 | 608 | + sp:subject _:b41 |
572 | ]) | 609 | ]) |
573 | ] [ rdf:type sp:Optional ; | 610 | ] [ rdf:type sp:Optional ; |
574 | - sp:elements ([ sp:object _:b70 ; | 611 | + sp:elements ([ sp:object _:b43 ; |
575 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | 612 | sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; |
576 | - sp:subject _:b68 | 613 | + sp:subject _:b41 |
577 | ]) | 614 | ]) |
578 | ] [ rdf:type sp:Bind ; | 615 | ] [ rdf:type sp:Bind ; |
579 | sp:expression | 616 | sp:expression |
580 | [ rdf:type ep-spin-lib:normalizeString ; | 617 | [ rdf:type ep-spin-lib:normalizeString ; |
581 | - sp:arg1 _:b69 | 618 | + sp:arg1 _:b42 |
582 | ] ; | 619 | ] ; |
583 | - sp:variable _:b71 | 620 | + sp:variable _:b44 |
584 | ] [ rdf:type sp:Bind ; | 621 | ] [ rdf:type sp:Bind ; |
585 | sp:expression | 622 | sp:expression |
586 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 623 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
587 | - sp:arg1 _:b71 | 624 | + sp:arg1 _:b44 |
625 | + ] ; | ||
626 | + sp:variable _:b38 | ||
627 | + ] [ rdf:type sp:Bind ; | ||
628 | + sp:expression | ||
629 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
630 | + sp:arg1 _:b43 | ||
631 | + ] ; | ||
632 | + sp:variable _:b39 | ||
633 | + ]) | ||
634 | + ] ; | ||
635 | + spin:rule | ||
636 | + [ rdf:type sp:Construct ; | ||
637 | + rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ; | ||
638 | + sp:templates ([ sp:object _:b45 ; | ||
639 | + sp:predicate _:b46 ; | ||
640 | + sp:subject _:b47 | ||
641 | + ] [ sp:object _:b48 ; | ||
642 | + sp:predicate rdf:type ; | ||
643 | + sp:subject _:b45 | ||
644 | + ]) ; | ||
645 | + sp:where ([ sp:object _:b49 ; | ||
646 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ; | ||
647 | + sp:subject spin:_this | ||
648 | + ] [ sp:object _:b50 ; | ||
649 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ; | ||
650 | + sp:subject _:b49 | ||
651 | + ] [ sp:object _:b51 ; | ||
652 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
653 | + sp:subject _:b50 | ||
654 | + ] [ sp:object _:b52 ; | ||
655 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ; | ||
656 | + sp:subject _:b50 | ||
657 | + ] [ sp:object _:b53 ; | ||
658 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ; | ||
659 | + sp:subject _:b50 | ||
660 | + ] [ sp:object _:b54 ; | ||
661 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
662 | + sp:subject _:b53 | ||
663 | + ] [ rdf:type sp:Bind ; | ||
664 | + sp:expression | ||
665 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
666 | + sp:arg1 _:b51 | ||
667 | + ] ; | ||
668 | + sp:variable _:b55 | ||
669 | + ] [ rdf:type sp:Bind ; | ||
670 | + sp:expression | ||
671 | + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | ||
672 | + sp:arg1 _:b55 | ||
588 | ] ; | 673 | ] ; |
589 | - sp:variable _:b65 | 674 | + sp:variable _:b47 |
590 | ] [ rdf:type sp:Bind ; | 675 | ] [ rdf:type sp:Bind ; |
591 | sp:expression | 676 | sp:expression |
592 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 677 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
593 | - sp:arg1 _:b70 | 678 | + sp:arg1 _:b54 |
679 | + ] ; | ||
680 | + sp:variable _:b48 | ||
681 | + ] [ rdf:type sp:Bind ; | ||
682 | + sp:expression | ||
683 | + [ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ; | ||
684 | + sp:arg1 _:b52 | ||
594 | ] ; | 685 | ] ; |
595 | - sp:variable _:b66 | 686 | + sp:variable _:b46 |
596 | ]) | 687 | ]) |
597 | ] . | 688 | ] . |
598 | 689 | ||
599 | -_:b2 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . | 690 | +_:b46 |
691 | + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . | ||
600 | 692 | ||
601 | -_:b3 sp:varName "productionFlow"^^xsd:string . | 693 | +_:b47 |
694 | + sp:varName "productionFlow"^^xsd:string . | ||
602 | 695 | ||
603 | -_:b4 sp:varName "relatedFacilityType"^^xsd:string . | 696 | +_:b48 |
697 | + sp:varName "relatedFacilityType"^^xsd:string . | ||
604 | 698 | ||
605 | -_:b5 sp:varName "facilityRef"^^xsd:string . | 699 | +_:b49 |
700 | + sp:varName "facilityRef"^^xsd:string . | ||
606 | 701 | ||
607 | -_:b6 sp:varName "flowRef"^^xsd:string . | 702 | +_:b50 |
703 | + sp:varName "flowRef"^^xsd:string . | ||
608 | 704 | ||
609 | -_:b7 sp:varName "flowName"^^xsd:string . | 705 | +_:b51 |
706 | + sp:varName "flowName"^^xsd:string . | ||
610 | 707 | ||
611 | -_:b8 sp:varName "flowDirection"^^xsd:string . | 708 | +_:b52 |
709 | + sp:varName "flowDirection"^^xsd:string . | ||
612 | 710 | ||
613 | -_:b9 sp:varName "relatedFacilityRef"^^xsd:string . | 711 | +_:b53 |
712 | + sp:varName "relatedFacilityRef"^^xsd:string . | ||
614 | 713 | ||
615 | -_:b10 | 714 | +_:b54 |
616 | sp:varName "relatedFacilityKind"^^xsd:string . | 715 | sp:varName "relatedFacilityKind"^^xsd:string . |
617 | 716 | ||
618 | -_:b11 | 717 | +_:b55 |
619 | sp:varName "normalizedFlowName"^^xsd:string . | 718 | sp:varName "normalizedFlowName"^^xsd:string . |
620 | 719 | ||
621 | -_:b12 | 720 | +_:b25 |
622 | - sp:varName "productionFacility"^^xsd:string . | 721 | + sp:varName "relatedFacility"^^xsd:string . |
623 | 722 | ||
624 | -_:b13 | 723 | +_:b26 |
625 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | 724 | + sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . |
626 | 725 | ||
627 | -_:b14 | 726 | +_:b27 |
628 | sp:varName "productionFlow"^^xsd:string . | 727 | sp:varName "productionFlow"^^xsd:string . |
629 | 728 | ||
630 | -_:b15 | 729 | +_:b28 |
631 | - sp:varName "productionFlowPurposeType"^^xsd:string . | 730 | + sp:varName "relatedFacilityType"^^xsd:string . |
632 | - | ||
633 | -_:b16 | ||
634 | - sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
635 | - | ||
636 | -_:b17 | ||
637 | - sp:varName "flowName"^^xsd:string . | ||
638 | - | ||
639 | -_:b19 | ||
640 | - sp:varName "productionFlowsToDate"^^xsd:string . | ||
641 | - | ||
642 | -_:b20 | ||
643 | - sp:varName "flowRef"^^xsd:string . | ||
644 | 731 | ||
645 | -_:b21 | 732 | +_:b29 |
646 | sp:varName "facilityRef"^^xsd:string . | 733 | sp:varName "facilityRef"^^xsd:string . |
647 | 734 | ||
648 | -_:b22 | 735 | +_:b30 |
649 | - sp:varName "facilityNameRef"^^xsd:string . | 736 | + sp:varName "flowRef"^^xsd:string . |
650 | - | ||
651 | -_:b23 | ||
652 | - sp:varName "facilityName"^^xsd:string . | ||
653 | 737 | ||
654 | -_:b24 | 738 | +_:b31 |
655 | - sp:varName "flowKind"^^xsd:string . | 739 | + sp:varName "flowName"^^xsd:string . |
656 | 740 | ||
657 | -_:b25 | 741 | +_:b32 |
658 | sp:varName "flowDirection"^^xsd:string . | 742 | sp:varName "flowDirection"^^xsd:string . |
659 | 743 | ||
660 | -_:b26 | 744 | +_:b33 |
661 | - sp:varName "flowQualifier"^^xsd:string . | 745 | + sp:varName "relatedFacilityRef"^^xsd:string . |
662 | 746 | ||
663 | -_:b27 | 747 | +_:b34 |
664 | - sp:varName "normalizedFacilityName"^^xsd:string . | 748 | + sp:varName "relatedFacilityName"^^xsd:string . |
665 | 749 | ||
666 | -_:b28 | 750 | +_:b35 |
751 | + sp:varName "relatedFacilityKind"^^xsd:string . | ||
752 | + | ||
753 | +_:b36 | ||
667 | sp:varName "normalizedFlowName"^^xsd:string . | 754 | sp:varName "normalizedFlowName"^^xsd:string . |
668 | 755 | ||
669 | -_:b43 | 756 | +_:b37 |
670 | - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | 757 | + sp:varName "normalizedRelatedFacilityName"^^xsd:string . |
671 | 758 | ||
672 | -_:b44 | 759 | +_:b4 sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . |
673 | - sp:varName "productFlowToDate"^^xsd:string . | ||
674 | 760 | ||
675 | -_:b45 | 761 | +_:b5 sp:varName "productFlowToDate"^^xsd:string . |
676 | - sp:varName "endTime"^^xsd:string . | ||
677 | 762 | ||
678 | -_:b47 | 763 | +_:b6 sp:varName "endTime"^^xsd:string . |
679 | - sp:varName "relationshipToMeasure"^^xsd:string . | ||
680 | 764 | ||
681 | -_:b48 | 765 | +_:b8 sp:varName "relationshipToMeasure"^^xsd:string . |
682 | - sp:varName "realVolume"^^xsd:string . | ||
683 | 766 | ||
684 | -_:b49 | 767 | +_:b9 sp:varName "realVolume"^^xsd:string . |
768 | + | ||
769 | +_:b10 | ||
685 | sp:varName "volumeScale"^^xsd:string . | 770 | sp:varName "volumeScale"^^xsd:string . |
686 | 771 | ||
687 | -_:b51 | 772 | +_:b12 |
688 | sp:varName "volumeStdType"^^xsd:string . | 773 | sp:varName "volumeStdType"^^xsd:string . |
689 | 774 | ||
690 | -_:b52 | 775 | +_:b13 |
691 | sp:varName "realVolumeStd"^^xsd:string . | 776 | sp:varName "realVolumeStd"^^xsd:string . |
692 | 777 | ||
693 | -_:b53 | 778 | +_:b14 |
694 | sp:varName "volumeStdScale"^^xsd:string . | 779 | sp:varName "volumeStdScale"^^xsd:string . |
695 | 780 | ||
696 | -_:b54 | 781 | +_:b15 |
697 | sp:varName "standardTempPres"^^xsd:string . | 782 | sp:varName "standardTempPres"^^xsd:string . |
698 | 783 | ||
699 | -_:b55 | 784 | +_:b16 |
700 | sp:varName "facilityRef"^^xsd:string . | 785 | sp:varName "facilityRef"^^xsd:string . |
701 | 786 | ||
702 | -_:b56 | 787 | +_:b17 |
703 | sp:varName "flowRef"^^xsd:string . | 788 | sp:varName "flowRef"^^xsd:string . |
704 | 789 | ||
705 | -_:b57 | 790 | +_:b18 |
706 | sp:varName "productRef"^^xsd:string . | 791 | sp:varName "productRef"^^xsd:string . |
707 | 792 | ||
708 | -_:b58 | 793 | +_:b19 |
709 | sp:varName "periodRef"^^xsd:string . | 794 | sp:varName "periodRef"^^xsd:string . |
710 | 795 | ||
711 | -_:b59 | 796 | +_:b20 |
712 | sp:varName "periodKindRef"^^xsd:string . | 797 | sp:varName "periodKindRef"^^xsd:string . |
713 | 798 | ||
714 | -_:b60 | 799 | +_:b21 |
715 | sp:varName "volumeRef"^^xsd:string . | 800 | sp:varName "volumeRef"^^xsd:string . |
716 | 801 | ||
717 | -_:b61 | 802 | +_:b22 |
718 | sp:varName "uomVolume"^^xsd:string . | 803 | sp:varName "uomVolume"^^xsd:string . |
719 | 804 | ||
720 | -_:b62 | 805 | +_:b23 |
721 | sp:varName "volumeStdRef"^^xsd:string . | 806 | sp:varName "volumeStdRef"^^xsd:string . |
722 | 807 | ||
723 | -_:b63 | 808 | +_:b24 |
724 | sp:varName "uomVolumeStd"^^xsd:string . | 809 | sp:varName "uomVolumeStd"^^xsd:string . |
725 | 810 | ||
726 | -_:b65 | 811 | +_:b38 |
727 | sp:varName "productionFacility"^^xsd:string . | 812 | sp:varName "productionFacility"^^xsd:string . |
728 | 813 | ||
729 | -_:b66 | 814 | +_:b39 |
730 | sp:varName "productionFacilityType"^^xsd:string . | 815 | sp:varName "productionFacilityType"^^xsd:string . |
731 | 816 | ||
732 | -_:b67 | 817 | +_:b40 |
733 | sp:varName "facilityRef"^^xsd:string . | 818 | sp:varName "facilityRef"^^xsd:string . |
734 | 819 | ||
735 | -_:b68 | 820 | +_:b41 |
736 | sp:varName "facilityNameRef"^^xsd:string . | 821 | sp:varName "facilityNameRef"^^xsd:string . |
737 | 822 | ||
738 | -_:b69 | 823 | +_:b42 |
739 | sp:varName "facilityName"^^xsd:string . | 824 | sp:varName "facilityName"^^xsd:string . |
740 | 825 | ||
741 | -_:b70 | 826 | +_:b43 |
742 | sp:varName "facilityKind"^^xsd:string . | 827 | sp:varName "facilityKind"^^xsd:string . |
743 | 828 | ||
744 | -_:b71 | 829 | +_:b44 |
745 | sp:varName "normalizedFacilityName"^^xsd:string . | 830 | sp:varName "normalizedFacilityName"^^xsd:string . |
746 | - | ||
747 | -_:b29 | ||
748 | - sp:varName "relatedFacility"^^xsd:string . | ||
749 | - | ||
750 | -_:b30 | ||
751 | - sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string . | ||
752 | - | ||
753 | -_:b31 | ||
754 | - sp:varName "productionFlow"^^xsd:string . | ||
755 | - | ||
756 | -_:b32 | ||
757 | - sp:varName "relatedFacilityType"^^xsd:string . | ||
758 | - | ||
759 | -_:b33 | ||
760 | - sp:varName "facilityRef"^^xsd:string . | ||
761 | - | ||
762 | -_:b34 | ||
763 | - sp:varName "flowRef"^^xsd:string . | ||
764 | - | ||
765 | -_:b35 | ||
766 | - sp:varName "flowName"^^xsd:string . | ||
767 | - | ||
768 | -_:b36 | ||
769 | - sp:varName "flowDirection"^^xsd:string . | ||
770 | - | ||
771 | -_:b37 | ||
772 | - sp:varName "relatedFacilityRef"^^xsd:string . | ||
773 | - | ||
774 | -_:b38 | ||
775 | - sp:varName "relatedFacilityName"^^xsd:string . | ||
776 | - | ||
777 | -_:b39 | ||
778 | - sp:varName "relatedFacilityKind"^^xsd:string . | ||
779 | - | ||
780 | -_:b40 | ||
781 | - sp:varName "normalizedFlowName"^^xsd:string . | ||
782 | - | ||
783 | -_:b41 | ||
784 | - sp:varName "normalizedRelatedFacilityName"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Sat Oct 08 12:56:31 BST 2011 | ||
2 | -# baseURI: null | ||
3 | - | ||
4 | -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
5 | -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
6 | -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
7 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
8 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
9 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
10 | -@prefix visual: <http://topbraid.org/visual#> . | ||
11 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
12 | - | ||
13 | -[] rdf:type inference:Configuration ; | ||
14 | - composite:child | ||
15 | - [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
16 | - composite:index "0"^^xsd:int | ||
17 | - ] . |
... | @@ -21,6 +21,215 @@ | ... | @@ -21,6 +21,215 @@ |
21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
22 | spin:rule | 22 | spin:rule |
23 | [ rdf:type sp:Construct ; | 23 | [ rdf:type sp:Construct ; |
24 | + rdfs:comment "STEP 20103a record the flows"^^xsd:string ; | ||
25 | + sp:templates ([ sp:object | ||
26 | + [ sp:varName "productionFacility"^^xsd:string | ||
27 | + ] ; | ||
28 | + sp:predicate | ||
29 | + [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string | ||
30 | + ] ; | ||
31 | + sp:subject | ||
32 | + [ sp:varName "productionFlow"^^xsd:string | ||
33 | + ] | ||
34 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
35 | + sp:predicate rdf:type ; | ||
36 | + sp:subject | ||
37 | + [ sp:varName "productionFlow"^^xsd:string | ||
38 | + ] | ||
39 | + ] [ sp:object | ||
40 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
41 | + ] ; | ||
42 | + sp:predicate rdf:type ; | ||
43 | + sp:subject | ||
44 | + [ sp:varName "productionFlow"^^xsd:string | ||
45 | + ] | ||
46 | + ] [ sp:object | ||
47 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
48 | + ] ; | ||
49 | + sp:predicate rdf:type ; | ||
50 | + sp:subject | ||
51 | + [ sp:varName "productionFlow"^^xsd:string | ||
52 | + ] | ||
53 | + ] [ sp:object | ||
54 | + [ sp:varName "flowName"^^xsd:string | ||
55 | + ] ; | ||
56 | + sp:predicate rdfs:label ; | ||
57 | + sp:subject | ||
58 | + [ sp:varName "productionFlow"^^xsd:string | ||
59 | + ] | ||
60 | + ] [ sp:object | ||
61 | + [ sp:varName "productionFlow"^^xsd:string | ||
62 | + ] ; | ||
63 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
64 | + sp:subject _:b1 | ||
65 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
66 | + sp:predicate rdf:type ; | ||
67 | + sp:subject _:b1 | ||
68 | + ] [ sp:object _:b1 ; | ||
69 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; | ||
70 | + sp:subject | ||
71 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
72 | + ] | ||
73 | + ] [ sp:object | ||
74 | + [ sp:varName "flowRef"^^xsd:string | ||
75 | + ] ; | ||
76 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
77 | + sp:subject _:b1 | ||
78 | + ]) ; | ||
79 | + sp:where ([ sp:object | ||
80 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
81 | + ] ; | ||
82 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
83 | + sp:subject spin:_this | ||
84 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
85 | + sp:predicate rdf:type ; | ||
86 | + sp:subject | ||
87 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
88 | + ] | ||
89 | + ] [ sp:object | ||
90 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
91 | + ] ; | ||
92 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
93 | + sp:subject | ||
94 | + [ sp:varName "reportingPeriodProductionFlows"^^xsd:string | ||
95 | + ] | ||
96 | + ] [ sp:object | ||
97 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
98 | + ] ; | ||
99 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
100 | + sp:subject | ||
101 | + [ sp:varName "reportingPeriodProductionFlows"^^xsd:string | ||
102 | + ] | ||
103 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
104 | + sp:predicate rdf:type ; | ||
105 | + sp:subject | ||
106 | + [ sp:varName "productionFlowsToDate"^^xsd:string | ||
107 | + ] | ||
108 | + ] [ sp:object | ||
109 | + [ sp:varName "facilityRef"^^xsd:string | ||
110 | + ] ; | ||
111 | + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | ||
112 | + sp:subject | ||
113 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
114 | + ] | ||
115 | + ] [ sp:object | ||
116 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
117 | + ] ; | ||
118 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
119 | + sp:subject | ||
120 | + [ sp:varName "facilityRef"^^xsd:string | ||
121 | + ] | ||
122 | + ] [ sp:object | ||
123 | + [ sp:varName "facilityName"^^xsd:string | ||
124 | + ] ; | ||
125 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
126 | + sp:subject | ||
127 | + [ sp:varName "facilityNameRef"^^xsd:string | ||
128 | + ] | ||
129 | + ] [ sp:object | ||
130 | + [ sp:varName "flowRef"^^xsd:string | ||
131 | + ] ; | ||
132 | + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; | ||
133 | + sp:subject | ||
134 | + [ sp:varName "facilityRef"^^xsd:string | ||
135 | + ] | ||
136 | + ] [ sp:object | ||
137 | + [ sp:varName "flowName"^^xsd:string | ||
138 | + ] ; | ||
139 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
140 | + sp:subject | ||
141 | + [ sp:varName "flowRef"^^xsd:string | ||
142 | + ] | ||
143 | + ] [ sp:object | ||
144 | + [ sp:varName "flowKind"^^xsd:string | ||
145 | + ] ; | ||
146 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
147 | + sp:subject | ||
148 | + [ sp:varName "flowRef"^^xsd:string | ||
149 | + ] | ||
150 | + ] [ sp:object | ||
151 | + [ sp:varName "flowDirection"^^xsd:string | ||
152 | + ] ; | ||
153 | + sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ; | ||
154 | + sp:subject | ||
155 | + [ sp:varName "flowRef"^^xsd:string | ||
156 | + ] | ||
157 | + ] [ rdf:type sp:Optional ; | ||
158 | + sp:elements ([ sp:object | ||
159 | + [ sp:varName "flowQualifier"^^xsd:string | ||
160 | + ] ; | ||
161 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
162 | + sp:subject | ||
163 | + [ sp:varName "flowRef"^^xsd:string | ||
164 | + ] | ||
165 | + ]) | ||
166 | + ] [ rdf:type sp:Bind ; | ||
167 | + sp:expression | ||
168 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
169 | + sp:arg1 [ sp:varName "facilityName"^^xsd:string | ||
170 | + ] | ||
171 | + ] ; | ||
172 | + sp:variable | ||
173 | + [ sp:varName "normalizedFacilityName"^^xsd:string | ||
174 | + ] | ||
175 | + ] [ rdf:type sp:Bind ; | ||
176 | + sp:expression | ||
177 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
178 | + sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string | ||
179 | + ] | ||
180 | + ] ; | ||
181 | + sp:variable | ||
182 | + [ sp:varName "productionFacility"^^xsd:string | ||
183 | + ] | ||
184 | + ] [ rdf:type sp:Bind ; | ||
185 | + sp:expression | ||
186 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
187 | + sp:arg1 [ sp:varName "flowName"^^xsd:string | ||
188 | + ] | ||
189 | + ] ; | ||
190 | + sp:variable | ||
191 | + [ sp:varName "normalizedFlowName"^^xsd:string | ||
192 | + ] | ||
193 | + ] [ rdf:type sp:Bind ; | ||
194 | + sp:expression | ||
195 | + [ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ; | ||
196 | + sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string | ||
197 | + ] | ||
198 | + ] ; | ||
199 | + sp:variable | ||
200 | + [ sp:varName "productionFlow"^^xsd:string | ||
201 | + ] | ||
202 | + ] [ rdf:type sp:Bind ; | ||
203 | + sp:expression | ||
204 | + [ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ; | ||
205 | + sp:arg1 [ sp:varName "flowKind"^^xsd:string | ||
206 | + ] | ||
207 | + ] ; | ||
208 | + sp:variable | ||
209 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
210 | + ] | ||
211 | + ] [ rdf:type sp:Bind ; | ||
212 | + sp:expression | ||
213 | + [ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ; | ||
214 | + sp:arg1 [ sp:varName "flowQualifier"^^xsd:string | ||
215 | + ] | ||
216 | + ] ; | ||
217 | + sp:variable | ||
218 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
219 | + ] | ||
220 | + ] [ rdf:type sp:Bind ; | ||
221 | + sp:expression | ||
222 | + [ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ; | ||
223 | + sp:arg1 [ sp:varName "flowDirection"^^xsd:string | ||
224 | + ] | ||
225 | + ] ; | ||
226 | + sp:variable | ||
227 | + [ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string | ||
228 | + ] | ||
229 | + ]) | ||
230 | + ] ; | ||
231 | + spin:rule | ||
232 | + [ rdf:type sp:Construct ; | ||
24 | rdfs:comment """STEP 20102 Record the Facility that has the flows | 233 | rdfs:comment """STEP 20102 Record the Facility that has the flows |
25 | Nothing is done with the namingSystem!"""^^xsd:string ; | 234 | Nothing is done with the namingSystem!"""^^xsd:string ; |
26 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 235 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
... | @@ -117,5 +326,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; | ... | @@ -117,5 +326,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; |
117 | 326 | ||
118 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> | 327 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> |
119 | rdf:type owl:Ontology ; | 328 | rdf:type owl:Ontology ; |
120 | - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; | 329 | + owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; |
121 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 330 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
... | @@ -20,6 +20,80 @@ | ... | @@ -20,6 +20,80 @@ |
20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 20 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
21 | spin:rule | 21 | spin:rule |
22 | [ rdf:type sp:Construct ; | 22 | [ rdf:type sp:Construct ; |
23 | + rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | ||
24 | + sp:templates ([ sp:object | ||
25 | + [ sp:varName "state"^^xsd:string | ||
26 | + ] ; | ||
27 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
28 | + sp:subject | ||
29 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
30 | + ] | ||
31 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
32 | + sp:predicate rdf:type ; | ||
33 | + sp:subject | ||
34 | + [ sp:varName "state"^^xsd:string | ||
35 | + ] | ||
36 | + ] [ sp:object | ||
37 | + [ sp:varName "stateName"^^xsd:string | ||
38 | + ] ; | ||
39 | + sp:predicate rdfs:label ; | ||
40 | + sp:subject | ||
41 | + [ sp:varName "state"^^xsd:string | ||
42 | + ] | ||
43 | + ]) ; | ||
44 | + sp:where ([ sp:object | ||
45 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
46 | + ] ; | ||
47 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
48 | + sp:subject spin:_this | ||
49 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
50 | + sp:predicate rdf:type ; | ||
51 | + sp:subject | ||
52 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
53 | + ] | ||
54 | + ] [ sp:object | ||
55 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
56 | + ] ; | ||
57 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
58 | + sp:subject | ||
59 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
60 | + ] | ||
61 | + ] [ sp:object | ||
62 | + [ sp:varName "stateName"^^xsd:string | ||
63 | + ] ; | ||
64 | + sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
65 | + sp:subject | ||
66 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
67 | + ] | ||
68 | + ] [ sp:object | ||
69 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
70 | + ] ; | ||
71 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
72 | + sp:subject | ||
73 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
74 | + ] | ||
75 | + ] [ rdf:type sp:Bind ; | ||
76 | + sp:expression | ||
77 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
78 | + sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
79 | + ] | ||
80 | + ] ; | ||
81 | + sp:variable | ||
82 | + [ sp:varName "normalizedStateName"^^xsd:string | ||
83 | + ] | ||
84 | + ] [ rdf:type sp:Bind ; | ||
85 | + sp:expression | ||
86 | + [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
87 | + sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
88 | + ] | ||
89 | + ] ; | ||
90 | + sp:variable | ||
91 | + [ sp:varName "state"^^xsd:string | ||
92 | + ] | ||
93 | + ]) | ||
94 | + ] ; | ||
95 | + spin:rule | ||
96 | + [ rdf:type sp:Construct ; | ||
23 | rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ; | 97 | rdfs:comment "STEP 20002a Record the end date-time"^^xsd:string ; |
24 | sp:templates ([ sp:object | 98 | sp:templates ([ sp:object |
25 | [ sp:varName "dTimStart"^^xsd:string | 99 | [ sp:varName "dTimStart"^^xsd:string |
... | @@ -176,95 +250,6 @@ | ... | @@ -176,95 +250,6 @@ |
176 | ] ; | 250 | ] ; |
177 | spin:rule | 251 | spin:rule |
178 | [ rdf:type sp:Construct ; | 252 | [ rdf:type sp:Construct ; |
179 | - rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist | ||
180 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
181 | - sp:templates ([ sp:object | ||
182 | - [ sp:varName "operator"^^xsd:string | ||
183 | - ] ; | ||
184 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
185 | - sp:subject | ||
186 | - [ sp:varName "productionFacility"^^xsd:string | ||
187 | - ] | ||
188 | - ]) ; | ||
189 | - sp:where ([ sp:object | ||
190 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
191 | - ] ; | ||
192 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
193 | - sp:subject spin:_this | ||
194 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
195 | - sp:predicate rdf:type ; | ||
196 | - sp:subject | ||
197 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
198 | - ] | ||
199 | - ] [ sp:object | ||
200 | - [ sp:varName "operatorRef"^^xsd:string | ||
201 | - ] ; | ||
202 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
203 | - sp:subject | ||
204 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
205 | - ] | ||
206 | - ] [ sp:object | ||
207 | - [ sp:varName "operatorName"^^xsd:string | ||
208 | - ] ; | ||
209 | - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
210 | - sp:subject | ||
211 | - [ sp:varName "operatorRef"^^xsd:string | ||
212 | - ] | ||
213 | - ] [ sp:object | ||
214 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
215 | - ] ; | ||
216 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
217 | - sp:subject | ||
218 | - [ sp:varName "productionFlow"^^xsd:string | ||
219 | - ] | ||
220 | - ] [ sp:object | ||
221 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
222 | - ] ; | ||
223 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
224 | - sp:subject | ||
225 | - [ sp:varName "productionFlow"^^xsd:string | ||
226 | - ] | ||
227 | - ] [ sp:object | ||
228 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
229 | - ] ; | ||
230 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
231 | - sp:subject | ||
232 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
233 | - ] | ||
234 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
235 | - sp:predicate rdf:type ; | ||
236 | - sp:subject | ||
237 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
238 | - ] | ||
239 | - ] [ sp:object | ||
240 | - [ sp:varName "productionFacility"^^xsd:string | ||
241 | - ] ; | ||
242 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
243 | - sp:subject | ||
244 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
245 | - ] | ||
246 | - ] [ rdf:type sp:Bind ; | ||
247 | - sp:expression | ||
248 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
249 | - sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
250 | - ] | ||
251 | - ] ; | ||
252 | - sp:variable | ||
253 | - [ sp:varName "normalizedOperatorName"^^xsd:string | ||
254 | - ] | ||
255 | - ] [ rdf:type sp:Bind ; | ||
256 | - sp:expression | ||
257 | - [ rdf:type rhspin:companyById ; | ||
258 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
259 | - ] | ||
260 | - ] ; | ||
261 | - sp:variable | ||
262 | - [ sp:varName "operator"^^xsd:string | ||
263 | - ] | ||
264 | - ]) | ||
265 | - ] ; | ||
266 | - spin:rule | ||
267 | - [ rdf:type sp:Construct ; | ||
268 | rdfs:comment "STEP 20008 Set the geographic context - offshore location"^^xsd:string ; | 253 | rdfs:comment "STEP 20008 Set the geographic context - offshore location"^^xsd:string ; |
269 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/geography#OffshoreLocation> ; | 254 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/geography#OffshoreLocation> ; |
270 | sp:predicate rdf:type ; | 255 | sp:predicate rdf:type ; |
... | @@ -392,26 +377,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -392,26 +377,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
392 | ] ; | 377 | ] ; |
393 | spin:rule | 378 | spin:rule |
394 | [ rdf:type sp:Construct ; | 379 | [ rdf:type sp:Construct ; |
395 | - rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ; | 380 | + rdfs:comment "STEP 20003 Set the installation"^^xsd:string ; |
396 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 381 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
397 | sp:predicate rdf:type ; | 382 | sp:predicate rdf:type ; |
398 | - sp:subject | 383 | + sp:subject _:b1 |
399 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
400 | - ] | ||
401 | ] [ sp:object | 384 | ] [ sp:object |
402 | - [ sp:varName "productionContextFacilityType"^^xsd:string | 385 | + [ sp:varName "productionFacility"^^xsd:string |
403 | ] ; | 386 | ] ; |
387 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
388 | + sp:subject _:b1 | ||
389 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
404 | sp:predicate rdf:type ; | 390 | sp:predicate rdf:type ; |
405 | sp:subject | 391 | sp:subject |
406 | - [ sp:varName "productionContextFacility"^^xsd:string | 392 | + [ sp:varName "productionFacility"^^xsd:string |
407 | ] | 393 | ] |
408 | ] [ sp:object | 394 | ] [ sp:object |
409 | - [ sp:varName "productionFacility"^^xsd:string | 395 | + [ sp:varName "productionFacilityType"^^xsd:string |
410 | ] ; | 396 | ] ; |
411 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 397 | + sp:predicate rdf:type ; |
412 | sp:subject | 398 | sp:subject |
413 | - [ sp:varName "productionContextFacility"^^xsd:string | 399 | + [ sp:varName "productionFacility"^^xsd:string |
414 | ] | 400 | ] |
401 | + ] [ sp:object | ||
402 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
403 | + ] ; | ||
404 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
405 | + sp:subject _:b1 | ||
415 | ]) ; | 406 | ]) ; |
416 | sp:where ([ sp:object | 407 | sp:where ([ sp:object |
417 | [ sp:varName "productVolumeRef"^^xsd:string | 408 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -424,26 +415,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -424,26 +415,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
424 | [ sp:varName "productVolumeRef"^^xsd:string | 415 | [ sp:varName "productVolumeRef"^^xsd:string |
425 | ] | 416 | ] |
426 | ] [ sp:object | 417 | ] [ sp:object |
427 | - [ sp:varName "contextFacilityRef"^^xsd:string | 418 | + [ sp:varName "installationRef"^^xsd:string |
428 | ] ; | 419 | ] ; |
429 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 420 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
430 | sp:subject | 421 | sp:subject |
431 | [ sp:varName "productVolumeRef"^^xsd:string | 422 | [ sp:varName "productVolumeRef"^^xsd:string |
432 | ] | 423 | ] |
433 | ] [ sp:object | 424 | ] [ sp:object |
434 | - [ sp:varName "contextFacilityName"^^xsd:string | 425 | + [ sp:varName "installationName"^^xsd:string |
435 | ] ; | 426 | ] ; |
436 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 427 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
437 | sp:subject | 428 | sp:subject |
438 | - [ sp:varName "contextFacilityRef"^^xsd:string | 429 | + [ sp:varName "installationRef"^^xsd:string |
439 | ] | 430 | ] |
440 | ] [ rdf:type sp:Optional ; | 431 | ] [ rdf:type sp:Optional ; |
441 | sp:elements ([ sp:object | 432 | sp:elements ([ sp:object |
442 | - [ sp:varName "contextFacilityKind"^^xsd:string | 433 | + [ sp:varName "installationKind"^^xsd:string |
443 | ] ; | 434 | ] ; |
444 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 435 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
445 | sp:subject | 436 | sp:subject |
446 | - [ sp:varName "contextFacilityRef"^^xsd:string | 437 | + [ sp:varName "installationRef"^^xsd:string |
447 | ] | 438 | ] |
448 | ]) | 439 | ]) |
449 | ] [ sp:object | 440 | ] [ sp:object |
... | @@ -460,146 +451,63 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -460,146 +451,63 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
460 | sp:subject | 451 | sp:subject |
461 | [ sp:varName "productionFlow"^^xsd:string | 452 | [ sp:varName "productionFlow"^^xsd:string |
462 | ] | 453 | ] |
463 | - ] [ sp:object | ||
464 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
465 | - ] ; | ||
466 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
467 | - sp:subject | ||
468 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
469 | - ] | ||
470 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
471 | - sp:predicate rdf:type ; | ||
472 | - sp:subject | ||
473 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
474 | - ] | ||
475 | - ] [ sp:object | ||
476 | - [ sp:varName "productionFacility"^^xsd:string | ||
477 | - ] ; | ||
478 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
479 | - sp:subject | ||
480 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
481 | - ] | ||
482 | ] [ rdf:type sp:Bind ; | 454 | ] [ rdf:type sp:Bind ; |
483 | sp:expression | 455 | sp:expression |
484 | [ rdf:type ep-spin-lib:normalizeString ; | 456 | [ rdf:type ep-spin-lib:normalizeString ; |
485 | - sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | 457 | + sp:arg1 [ sp:varName "installationName"^^xsd:string |
486 | ] | 458 | ] |
487 | ] ; | 459 | ] ; |
488 | sp:variable | 460 | sp:variable |
489 | - [ sp:varName "normalizedContextFacilityName"^^xsd:string | 461 | + [ sp:varName "normalizedInstallationName"^^xsd:string |
490 | ] | 462 | ] |
491 | ] [ rdf:type sp:Bind ; | 463 | ] [ rdf:type sp:Bind ; |
492 | sp:expression | 464 | sp:expression |
493 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 465 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
494 | - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | 466 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
495 | ] | 467 | ] |
496 | ] ; | 468 | ] ; |
497 | sp:variable | 469 | sp:variable |
498 | - [ sp:varName "productionContextFacility"^^xsd:string | 470 | + [ sp:varName "productionFacility"^^xsd:string |
499 | ] | 471 | ] |
500 | ] [ rdf:type sp:Bind ; | 472 | ] [ rdf:type sp:Bind ; |
501 | sp:expression | 473 | sp:expression |
502 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 474 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
503 | - sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | 475 | + sp:arg1 [ sp:varName "installationKind"^^xsd:string |
504 | ] | 476 | ] |
505 | ] ; | 477 | ] ; |
506 | sp:variable | 478 | sp:variable |
507 | - [ sp:varName "productionContextFacilityType"^^xsd:string | 479 | + [ sp:varName "productionFacilityType"^^xsd:string |
508 | ] | 480 | ] |
509 | ]) | 481 | ]) |
510 | ] ; | 482 | ] ; |
511 | spin:rule | 483 | spin:rule |
512 | [ rdf:type sp:Construct ; | 484 | [ rdf:type sp:Construct ; |
513 | - rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; | 485 | + rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ; |
514 | - sp:templates ([ sp:object | 486 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
515 | - [ sp:varName "field"^^xsd:string | 487 | + sp:predicate rdf:type ; |
488 | + sp:subject _:b2 | ||
489 | + ] [ sp:object _:b3 ; | ||
490 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
491 | + sp:subject _:b2 | ||
492 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
493 | + sp:predicate rdf:type ; | ||
494 | + sp:subject _:b3 | ||
495 | + ] [ sp:object | ||
496 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
516 | ] ; | 497 | ] ; |
498 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
499 | + sp:subject _:b2 | ||
500 | + ] [ sp:object _:b4 ; | ||
517 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 501 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
518 | - sp:subject | 502 | + sp:subject _:b3 |
519 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 503 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; |
520 | - ] | ||
521 | - ]) ; | ||
522 | - sp:where ([ sp:object | ||
523 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
524 | - ] ; | ||
525 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
526 | - sp:subject spin:_this | ||
527 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
528 | sp:predicate rdf:type ; | 504 | sp:predicate rdf:type ; |
529 | - sp:subject | 505 | + sp:subject _:b4 |
530 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
531 | - ] | ||
532 | - ] [ sp:object | ||
533 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
534 | - ] ; | ||
535 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
536 | - sp:subject | ||
537 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
538 | - ] | ||
539 | - ] [ sp:object | ||
540 | - [ sp:varName "fieldRef"^^xsd:string | ||
541 | - ] ; | ||
542 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
543 | - sp:subject | ||
544 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
545 | - ] | ||
546 | - ] [ sp:object | ||
547 | - [ sp:varName "fieldName"^^xsd:string | ||
548 | - ] ; | ||
549 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
550 | - sp:subject | ||
551 | - [ sp:varName "fieldRef"^^xsd:string | ||
552 | - ] | ||
553 | ] [ sp:object | 506 | ] [ sp:object |
554 | [ sp:varName "geographicContextRef"^^xsd:string | 507 | [ sp:varName "geographicContextRef"^^xsd:string |
555 | ] ; | 508 | ] ; |
556 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 509 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
557 | - sp:subject | 510 | + sp:subject _:b4 |
558 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
559 | - ] | ||
560 | - ] [ rdf:type sp:Bind ; | ||
561 | - sp:expression | ||
562 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
563 | - sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
564 | - ] | ||
565 | - ] ; | ||
566 | - sp:variable | ||
567 | - [ sp:varName "normalizedFieldName"^^xsd:string | ||
568 | - ] | ||
569 | - ] [ rdf:type sp:Bind ; | ||
570 | - sp:expression | ||
571 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
572 | - sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
573 | - ] | ||
574 | - ] ; | ||
575 | - sp:variable | ||
576 | - [ sp:varName "field"^^xsd:string | ||
577 | - ] | ||
578 | - ]) | ||
579 | - ] ; | ||
580 | - spin:rule | ||
581 | - [ rdf:type sp:Construct ; | ||
582 | - rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist | ||
583 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
584 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
585 | - sp:predicate rdf:type ; | ||
586 | - sp:subject _:b1 | ||
587 | - ] [ sp:object _:b2 ; | ||
588 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
589 | - sp:subject _:b1 | ||
590 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
591 | - sp:predicate rdf:type ; | ||
592 | - sp:subject _:b2 | ||
593 | - ] [ sp:object | ||
594 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
595 | - ] ; | ||
596 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
597 | - sp:subject _:b1 | ||
598 | - ] [ sp:object | ||
599 | - [ sp:varName "operator"^^xsd:string | ||
600 | - ] ; | ||
601 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
602 | - sp:subject _:b2 | ||
603 | ]) ; | 511 | ]) ; |
604 | sp:where ([ sp:object | 512 | sp:where ([ sp:object |
605 | [ sp:varName "productVolumeRef"^^xsd:string | 513 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -612,19 +520,21 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -612,19 +520,21 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
612 | [ sp:varName "productVolumeRef"^^xsd:string | 520 | [ sp:varName "productVolumeRef"^^xsd:string |
613 | ] | 521 | ] |
614 | ] [ sp:object | 522 | ] [ sp:object |
615 | - [ sp:varName "operatorRef"^^xsd:string | 523 | + [ sp:varName "geographicContextRef"^^xsd:string |
616 | ] ; | 524 | ] ; |
617 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 525 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; |
618 | sp:subject | 526 | sp:subject |
619 | [ sp:varName "productVolumeRef"^^xsd:string | 527 | [ sp:varName "productVolumeRef"^^xsd:string |
620 | ] | 528 | ] |
621 | - ] [ sp:object | 529 | + ] [ rdf:type sp:Optional ; |
622 | - [ sp:varName "operatorName"^^xsd:string | 530 | + sp:elements ([ sp:object |
623 | - ] ; | 531 | + [ sp:varName "comment"^^xsd:string |
624 | - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | 532 | + ] ; |
625 | - sp:subject | 533 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; |
626 | - [ sp:varName "operatorRef"^^xsd:string | 534 | + sp:subject |
627 | - ] | 535 | + [ sp:varName "geographicContextRef"^^xsd:string |
536 | + ] | ||
537 | + ]) | ||
628 | ] [ sp:object | 538 | ] [ sp:object |
629 | [ sp:varName "productVolumeRef"^^xsd:string | 539 | [ sp:varName "productVolumeRef"^^xsd:string |
630 | ] ; | 540 | ] ; |
... | @@ -660,93 +570,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -660,93 +570,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
660 | [ sp:varName "productionFacilityToDate"^^xsd:string | 570 | [ sp:varName "productionFacilityToDate"^^xsd:string |
661 | ] | 571 | ] |
662 | ]) | 572 | ]) |
663 | - ] [ rdf:type sp:Bind ; | ||
664 | - sp:expression | ||
665 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
666 | - sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
667 | - ] | ||
668 | - ] ; | ||
669 | - sp:variable | ||
670 | - [ sp:varName "normalizedOperatorName"^^xsd:string | ||
671 | - ] | ||
672 | - ] [ rdf:type sp:Bind ; | ||
673 | - sp:expression | ||
674 | - [ rdf:type rhspin:companyById ; | ||
675 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
676 | - ] | ||
677 | - ] ; | ||
678 | - sp:variable | ||
679 | - [ sp:varName "operator"^^xsd:string | ||
680 | - ] | ||
681 | - ]) | ||
682 | - ] ; | ||
683 | - spin:rule | ||
684 | - [ rdf:type sp:Construct ; | ||
685 | - rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ; | ||
686 | - sp:templates ([ sp:object | ||
687 | - [ sp:varName "block"^^xsd:string | ||
688 | - ] ; | ||
689 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
690 | - sp:subject | ||
691 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
692 | - ] | ||
693 | - ]) ; | ||
694 | - sp:where ([ sp:object | ||
695 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
696 | - ] ; | ||
697 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
698 | - sp:subject spin:_this | ||
699 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
700 | - sp:predicate rdf:type ; | ||
701 | - sp:subject | ||
702 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
703 | - ] | ||
704 | - ] [ sp:object | ||
705 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
706 | - ] ; | ||
707 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
708 | - sp:subject | ||
709 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
710 | - ] | ||
711 | - ] [ sp:object | ||
712 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
713 | - ] ; | ||
714 | - sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
715 | - sp:subject | ||
716 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
717 | - ] | ||
718 | - ] [ sp:object | ||
719 | - [ sp:varName "blockId"^^xsd:string | ||
720 | - ] ; | ||
721 | - sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ; | ||
722 | - sp:subject | ||
723 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
724 | - ] | ||
725 | - ] [ sp:object | ||
726 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
727 | - ] ; | ||
728 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
729 | - sp:subject | ||
730 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
731 | - ] | ||
732 | - ] [ rdf:type sp:Bind ; | ||
733 | - sp:expression | ||
734 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
735 | - sp:arg1 [ sp:varName "blockId"^^xsd:string | ||
736 | - ] | ||
737 | - ] ; | ||
738 | - sp:variable | ||
739 | - [ sp:varName "normalizedBlockId"^^xsd:string | ||
740 | - ] | ||
741 | - ] [ rdf:type sp:Bind ; | ||
742 | - sp:expression | ||
743 | - [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
744 | - sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
745 | - ] | ||
746 | - ] ; | ||
747 | - sp:variable | ||
748 | - [ sp:varName "block"^^xsd:string | ||
749 | - ] | ||
750 | ]) | 573 | ]) |
751 | ] ; | 574 | ] ; |
752 | spin:rule | 575 | spin:rule |
... | @@ -816,24 +639,12 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -816,24 +639,12 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
816 | ] ; | 639 | ] ; |
817 | spin:rule | 640 | spin:rule |
818 | [ rdf:type sp:Construct ; | 641 | [ rdf:type sp:Construct ; |
819 | - rdfs:comment "STEP 20006b Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility not already defined"^^xsd:string ; | 642 | + rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ; |
820 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 643 | + sp:templates ([ sp:object _:b5 ; |
821 | - sp:predicate rdf:type ; | 644 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; |
822 | - sp:subject _:b3 | 645 | + sp:subject |
823 | - ] [ sp:object _:b4 ; | 646 | + [ sp:varName "productionFacility"^^xsd:string |
824 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 647 | + ] |
825 | - sp:subject _:b3 | ||
826 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
827 | - sp:predicate rdf:type ; | ||
828 | - sp:subject _:b4 | ||
829 | - ] [ sp:object | ||
830 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
831 | - ] ; | ||
832 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
833 | - sp:subject _:b3 | ||
834 | - ] [ sp:object _:b5 ; | ||
835 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
836 | - sp:subject _:b4 | ||
837 | ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | 648 | ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; |
838 | sp:predicate rdf:type ; | 649 | sp:predicate rdf:type ; |
839 | sp:subject _:b5 | 650 | sp:subject _:b5 |
... | @@ -842,6 +653,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -842,6 +653,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
842 | ] ; | 653 | ] ; |
843 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 654 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
844 | sp:subject _:b5 | 655 | sp:subject _:b5 |
656 | + ] [ sp:object | ||
657 | + [ sp:varName "comment"^^xsd:string | ||
658 | + ] ; | ||
659 | + sp:predicate rdfs:comment ; | ||
660 | + sp:subject _:b5 | ||
845 | ]) ; | 661 | ]) ; |
846 | sp:where ([ sp:object | 662 | sp:where ([ sp:object |
847 | [ sp:varName "productVolumeRef"^^xsd:string | 663 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -883,131 +699,38 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -883,131 +699,38 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
883 | sp:subject | 699 | sp:subject |
884 | [ sp:varName "productionFlow"^^xsd:string | 700 | [ sp:varName "productionFlow"^^xsd:string |
885 | ] | 701 | ] |
886 | - ] [ rdf:type sp:NotExists ; | 702 | + ] [ sp:object |
887 | - sp:elements ([ sp:object | 703 | + [ sp:varName "productionFlowToDate"^^xsd:string |
888 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
889 | - ] ; | ||
890 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
891 | - sp:subject | ||
892 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
893 | - ] | ||
894 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
895 | - sp:predicate rdf:type ; | ||
896 | - sp:subject | ||
897 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
898 | - ] | ||
899 | - ] [ sp:object | ||
900 | - [ sp:varName "productionFacility"^^xsd:string | ||
901 | - ] ; | ||
902 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
903 | - sp:subject | ||
904 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
905 | - ] | ||
906 | - ]) | ||
907 | - ]) | ||
908 | - ] ; | ||
909 | - spin:rule | ||
910 | - [ rdf:type sp:Construct ; | ||
911 | - rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | ||
912 | - sp:templates ([ sp:object | ||
913 | - [ sp:varName "state"^^xsd:string | ||
914 | ] ; | 704 | ] ; |
915 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 705 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
916 | sp:subject | 706 | sp:subject |
917 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 707 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
918 | ] | 708 | ] |
919 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | 709 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
920 | sp:predicate rdf:type ; | 710 | sp:predicate rdf:type ; |
921 | sp:subject | 711 | sp:subject |
922 | - [ sp:varName "state"^^xsd:string | 712 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
923 | ] | 713 | ] |
924 | ] [ sp:object | 714 | ] [ sp:object |
925 | - [ sp:varName "stateName"^^xsd:string | 715 | + [ sp:varName "productionFacility"^^xsd:string |
926 | ] ; | 716 | ] ; |
927 | - sp:predicate rdfs:label ; | 717 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
928 | sp:subject | 718 | sp:subject |
929 | - [ sp:varName "state"^^xsd:string | 719 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
930 | - ] | ||
931 | - ]) ; | ||
932 | - sp:where ([ sp:object | ||
933 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
934 | - ] ; | ||
935 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
936 | - sp:subject spin:_this | ||
937 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
938 | - sp:predicate rdf:type ; | ||
939 | - sp:subject | ||
940 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
941 | - ] | ||
942 | - ] [ sp:object | ||
943 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
944 | - ] ; | ||
945 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
946 | - sp:subject | ||
947 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
948 | - ] | ||
949 | - ] [ sp:object | ||
950 | - [ sp:varName "stateName"^^xsd:string | ||
951 | - ] ; | ||
952 | - sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
953 | - sp:subject | ||
954 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
955 | - ] | ||
956 | - ] [ sp:object | ||
957 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
958 | - ] ; | ||
959 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
960 | - sp:subject | ||
961 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
962 | - ] | ||
963 | - ] [ rdf:type sp:Bind ; | ||
964 | - sp:expression | ||
965 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
966 | - sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
967 | - ] | ||
968 | - ] ; | ||
969 | - sp:variable | ||
970 | - [ sp:varName "normalizedStateName"^^xsd:string | ||
971 | - ] | ||
972 | - ] [ rdf:type sp:Bind ; | ||
973 | - sp:expression | ||
974 | - [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
975 | - sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
976 | - ] | ||
977 | - ] ; | ||
978 | - sp:variable | ||
979 | - [ sp:varName "state"^^xsd:string | ||
980 | ] | 720 | ] |
981 | ]) | 721 | ]) |
982 | ] ; | 722 | ] ; |
983 | spin:rule | 723 | spin:rule |
984 | [ rdf:type sp:Construct ; | 724 | [ rdf:type sp:Construct ; |
985 | - rdfs:comment "STEP 20003 Set the installation"^^xsd:string ; | 725 | + rdfs:comment """STEP 20005a Set the facility operator- installation or context facility exist |
986 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 726 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
987 | - sp:predicate rdf:type ; | 727 | + sp:templates ([ sp:object |
988 | - sp:subject _:b6 | 728 | + [ sp:varName "operator"^^xsd:string |
989 | - ] [ sp:object | ||
990 | - [ sp:varName "productionFacility"^^xsd:string | ||
991 | - ] ; | ||
992 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
993 | - sp:subject _:b6 | ||
994 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
995 | - sp:predicate rdf:type ; | ||
996 | - sp:subject | ||
997 | - [ sp:varName "productionFacility"^^xsd:string | ||
998 | - ] | ||
999 | - ] [ sp:object | ||
1000 | - [ sp:varName "productionFacilityType"^^xsd:string | ||
1001 | ] ; | 729 | ] ; |
1002 | - sp:predicate rdf:type ; | 730 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
1003 | sp:subject | 731 | sp:subject |
1004 | [ sp:varName "productionFacility"^^xsd:string | 732 | [ sp:varName "productionFacility"^^xsd:string |
1005 | ] | 733 | ] |
1006 | - ] [ sp:object | ||
1007 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
1008 | - ] ; | ||
1009 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
1010 | - sp:subject _:b6 | ||
1011 | ]) ; | 734 | ]) ; |
1012 | sp:where ([ sp:object | 735 | sp:where ([ sp:object |
1013 | [ sp:varName "productVolumeRef"^^xsd:string | 736 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -1020,28 +743,19 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1020,28 +743,19 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1020 | [ sp:varName "productVolumeRef"^^xsd:string | 743 | [ sp:varName "productVolumeRef"^^xsd:string |
1021 | ] | 744 | ] |
1022 | ] [ sp:object | 745 | ] [ sp:object |
1023 | - [ sp:varName "installationRef"^^xsd:string | 746 | + [ sp:varName "operatorRef"^^xsd:string |
1024 | ] ; | 747 | ] ; |
1025 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 748 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
1026 | sp:subject | 749 | sp:subject |
1027 | [ sp:varName "productVolumeRef"^^xsd:string | 750 | [ sp:varName "productVolumeRef"^^xsd:string |
1028 | ] | 751 | ] |
1029 | ] [ sp:object | 752 | ] [ sp:object |
1030 | - [ sp:varName "installationName"^^xsd:string | 753 | + [ sp:varName "operatorName"^^xsd:string |
1031 | ] ; | 754 | ] ; |
1032 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 755 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
1033 | sp:subject | 756 | sp:subject |
1034 | - [ sp:varName "installationRef"^^xsd:string | 757 | + [ sp:varName "operatorRef"^^xsd:string |
1035 | ] | 758 | ] |
1036 | - ] [ rdf:type sp:Optional ; | ||
1037 | - sp:elements ([ sp:object | ||
1038 | - [ sp:varName "installationKind"^^xsd:string | ||
1039 | - ] ; | ||
1040 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
1041 | - sp:subject | ||
1042 | - [ sp:varName "installationRef"^^xsd:string | ||
1043 | - ] | ||
1044 | - ]) | ||
1045 | ] [ sp:object | 759 | ] [ sp:object |
1046 | [ sp:varName "productVolumeRef"^^xsd:string | 760 | [ sp:varName "productVolumeRef"^^xsd:string |
1047 | ] ; | 761 | ] ; |
... | @@ -1056,32 +770,42 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1056,32 +770,42 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1056 | sp:subject | 770 | sp:subject |
1057 | [ sp:varName "productionFlow"^^xsd:string | 771 | [ sp:varName "productionFlow"^^xsd:string |
1058 | ] | 772 | ] |
1059 | - ] [ rdf:type sp:Bind ; | 773 | + ] [ sp:object |
1060 | - sp:expression | 774 | + [ sp:varName "productionFlowToDate"^^xsd:string |
1061 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
1062 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
1063 | - ] | ||
1064 | ] ; | 775 | ] ; |
1065 | - sp:variable | 776 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
1066 | - [ sp:varName "normalizedInstallationName"^^xsd:string | 777 | + sp:subject |
778 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
779 | + ] | ||
780 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
781 | + sp:predicate rdf:type ; | ||
782 | + sp:subject | ||
783 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
784 | + ] | ||
785 | + ] [ sp:object | ||
786 | + [ sp:varName "productionFacility"^^xsd:string | ||
787 | + ] ; | ||
788 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
789 | + sp:subject | ||
790 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1067 | ] | 791 | ] |
1068 | ] [ rdf:type sp:Bind ; | 792 | ] [ rdf:type sp:Bind ; |
1069 | sp:expression | 793 | sp:expression |
1070 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 794 | + [ rdf:type ep-spin-lib:normalizeString ; |
1071 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 795 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string |
1072 | ] | 796 | ] |
1073 | ] ; | 797 | ] ; |
1074 | sp:variable | 798 | sp:variable |
1075 | - [ sp:varName "productionFacility"^^xsd:string | 799 | + [ sp:varName "normalizedOperatorName"^^xsd:string |
1076 | ] | 800 | ] |
1077 | ] [ rdf:type sp:Bind ; | 801 | ] [ rdf:type sp:Bind ; |
1078 | sp:expression | 802 | sp:expression |
1079 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 803 | + [ rdf:type rhspin:companyById ; |
1080 | - sp:arg1 [ sp:varName "installationKind"^^xsd:string | 804 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string |
1081 | ] | 805 | ] |
1082 | ] ; | 806 | ] ; |
1083 | sp:variable | 807 | sp:variable |
1084 | - [ sp:varName "productionFacilityType"^^xsd:string | 808 | + [ sp:varName "operator"^^xsd:string |
1085 | ] | 809 | ] |
1086 | ]) | 810 | ]) |
1087 | ] ; | 811 | ] ; |
... | @@ -1090,18 +814,18 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1090,18 +814,18 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1090 | rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ; | 814 | rdfs:comment "STEP 20004b Set the context facility - installation does not exist"^^xsd:string ; |
1091 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 815 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
1092 | sp:predicate rdf:type ; | 816 | sp:predicate rdf:type ; |
1093 | - sp:subject _:b7 | 817 | + sp:subject _:b6 |
1094 | - ] [ sp:object _:b8 ; | 818 | + ] [ sp:object _:b7 ; |
1095 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 819 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1096 | - sp:subject _:b7 | 820 | + sp:subject _:b6 |
1097 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 821 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
1098 | sp:predicate rdf:type ; | 822 | sp:predicate rdf:type ; |
1099 | - sp:subject _:b8 | 823 | + sp:subject _:b7 |
1100 | ] [ sp:object | 824 | ] [ sp:object |
1101 | [ sp:varName "productionFlowToDate"^^xsd:string | 825 | [ sp:varName "productionFlowToDate"^^xsd:string |
1102 | ] ; | 826 | ] ; |
1103 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 827 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
1104 | - sp:subject _:b7 | 828 | + sp:subject _:b6 |
1105 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 829 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
1106 | sp:predicate rdf:type ; | 830 | sp:predicate rdf:type ; |
1107 | sp:subject | 831 | sp:subject |
... | @@ -1114,7 +838,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1114,7 +838,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1114 | sp:subject | 838 | sp:subject |
1115 | [ sp:varName "productionContextFacility"^^xsd:string | 839 | [ sp:varName "productionContextFacility"^^xsd:string |
1116 | ] | 840 | ] |
1117 | - ] [ sp:object _:b8 ; | 841 | + ] [ sp:object _:b7 ; |
1118 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 842 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
1119 | sp:subject | 843 | sp:subject |
1120 | [ sp:varName "productionContextFacility"^^xsd:string | 844 | [ sp:varName "productionContextFacility"^^xsd:string |
... | @@ -1219,25 +943,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1219,25 +943,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1219 | ] ; | 943 | ] ; |
1220 | spin:rule | 944 | spin:rule |
1221 | [ rdf:type sp:Construct ; | 945 | [ rdf:type sp:Construct ; |
1222 | - rdfs:comment "STEP 20006a Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext - productionFacility already defined"^^xsd:string ; | 946 | + rdfs:comment "STEP 20009 Set the geographic context - offshore location - blockId"^^xsd:string ; |
1223 | - sp:templates ([ sp:object _:b9 ; | 947 | + sp:templates ([ sp:object |
1224 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | 948 | + [ sp:varName "block"^^xsd:string |
949 | + ] ; | ||
950 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1225 | sp:subject | 951 | sp:subject |
1226 | - [ sp:varName "productionFacility"^^xsd:string | 952 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
1227 | ] | 953 | ] |
1228 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
1229 | - sp:predicate rdf:type ; | ||
1230 | - sp:subject _:b9 | ||
1231 | - ] [ sp:object | ||
1232 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1233 | - ] ; | ||
1234 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1235 | - sp:subject _:b9 | ||
1236 | - ] [ sp:object | ||
1237 | - [ sp:varName "comment"^^xsd:string | ||
1238 | - ] ; | ||
1239 | - sp:predicate rdfs:comment ; | ||
1240 | - sp:subject _:b9 | ||
1241 | ]) ; | 954 | ]) ; |
1242 | sp:where ([ sp:object | 955 | sp:where ([ sp:object |
1243 | [ sp:varName "productVolumeRef"^^xsd:string | 956 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -1256,47 +969,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1256,47 +969,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1256 | sp:subject | 969 | sp:subject |
1257 | [ sp:varName "productVolumeRef"^^xsd:string | 970 | [ sp:varName "productVolumeRef"^^xsd:string |
1258 | ] | 971 | ] |
1259 | - ] [ rdf:type sp:Optional ; | ||
1260 | - sp:elements ([ sp:object | ||
1261 | - [ sp:varName "comment"^^xsd:string | ||
1262 | - ] ; | ||
1263 | - sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
1264 | - sp:subject | ||
1265 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1266 | - ] | ||
1267 | - ]) | ||
1268 | ] [ sp:object | 972 | ] [ sp:object |
1269 | - [ sp:varName "productVolumeRef"^^xsd:string | 973 | + [ sp:varName "offshoreLocationRef"^^xsd:string |
1270 | ] ; | 974 | ] ; |
1271 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 975 | + sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; |
1272 | sp:subject | 976 | sp:subject |
1273 | - [ sp:varName "productionFlow"^^xsd:string | 977 | + [ sp:varName "geographicContextRef"^^xsd:string |
1274 | ] | 978 | ] |
1275 | ] [ sp:object | 979 | ] [ sp:object |
1276 | - [ sp:varName "productionFlowToDate"^^xsd:string | 980 | + [ sp:varName "blockId"^^xsd:string |
1277 | ] ; | 981 | ] ; |
1278 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 982 | + sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ; |
1279 | sp:subject | 983 | sp:subject |
1280 | - [ sp:varName "productionFlow"^^xsd:string | 984 | + [ sp:varName "offshoreLocationRef"^^xsd:string |
1281 | ] | 985 | ] |
1282 | ] [ sp:object | 986 | ] [ sp:object |
1283 | - [ sp:varName "productionFlowToDate"^^xsd:string | 987 | + [ sp:varName "geographicContextRef"^^xsd:string |
1284 | ] ; | 988 | ] ; |
1285 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 989 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
1286 | sp:subject | 990 | sp:subject |
1287 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 991 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
1288 | ] | 992 | ] |
1289 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 993 | + ] [ rdf:type sp:Bind ; |
1290 | - sp:predicate rdf:type ; | 994 | + sp:expression |
1291 | - sp:subject | 995 | + [ rdf:type ep-spin-lib:normalizeString ; |
1292 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 996 | + sp:arg1 [ sp:varName "blockId"^^xsd:string |
997 | + ] | ||
998 | + ] ; | ||
999 | + sp:variable | ||
1000 | + [ sp:varName "normalizedBlockId"^^xsd:string | ||
1293 | ] | 1001 | ] |
1294 | - ] [ sp:object | 1002 | + ] [ rdf:type sp:Bind ; |
1295 | - [ sp:varName "productionFacility"^^xsd:string | 1003 | + sp:expression |
1004 | + [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
1005 | + sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
1006 | + ] | ||
1296 | ] ; | 1007 | ] ; |
1297 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1008 | + sp:variable |
1298 | - sp:subject | 1009 | + [ sp:varName "block"^^xsd:string |
1299 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1300 | ] | 1010 | ] |
1301 | ]) | 1011 | ]) |
1302 | ] ; | 1012 | ] ; |
... | @@ -1305,44 +1015,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1305,44 +1015,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1305 | rdfs:comment "STEP 20001a Create the ProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ; | 1015 | rdfs:comment "STEP 20001a Create the ProductVolumeReport, the DailyProductionFlow and the ProductionFlowToDate ."^^xsd:string ; |
1306 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | 1016 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; |
1307 | sp:predicate rdf:type ; | 1017 | sp:predicate rdf:type ; |
1308 | - sp:subject _:b10 | 1018 | + sp:subject _:b8 |
1309 | ] [ sp:object | 1019 | ] [ sp:object |
1310 | [ sp:varName "productionReport"^^xsd:string | 1020 | [ sp:varName "productionReport"^^xsd:string |
1311 | ] ; | 1021 | ] ; |
1312 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 1022 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
1313 | - sp:subject _:b10 | 1023 | + sp:subject _:b8 |
1314 | ] [ sp:object | 1024 | ] [ sp:object |
1315 | [ sp:varName "name"^^xsd:string | 1025 | [ sp:varName "name"^^xsd:string |
1316 | ] ; | 1026 | ] ; |
1317 | sp:predicate rdfs:label ; | 1027 | sp:predicate rdfs:label ; |
1318 | - sp:subject _:b10 | 1028 | + sp:subject _:b8 |
1319 | ] [ sp:object | 1029 | ] [ sp:object |
1320 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string | 1030 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string |
1321 | ] ; | 1031 | ] ; |
1322 | sp:predicate rdf:type ; | 1032 | sp:predicate rdf:type ; |
1323 | - sp:subject _:b10 | 1033 | + sp:subject _:b8 |
1324 | - ] [ sp:object _:b11 ; | 1034 | + ] [ sp:object _:b9 ; |
1325 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 1035 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
1326 | - sp:subject _:b10 | 1036 | + sp:subject _:b8 |
1327 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 1037 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductionFlow> ; |
1328 | sp:predicate rdf:type ; | 1038 | sp:predicate rdf:type ; |
1329 | - sp:subject _:b11 | 1039 | + sp:subject _:b9 |
1330 | ] [ sp:object | 1040 | ] [ sp:object |
1331 | [ sp:varName "productVolumeRef"^^xsd:string | 1041 | [ sp:varName "productVolumeRef"^^xsd:string |
1332 | ] ; | 1042 | ] ; |
1333 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1043 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
1334 | - sp:subject _:b11 | 1044 | + sp:subject _:b9 |
1335 | - ] [ sp:object _:b12 ; | 1045 | + ] [ sp:object _:b10 ; |
1336 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1046 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1337 | - sp:subject _:b11 | 1047 | + sp:subject _:b9 |
1338 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 1048 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
1339 | sp:predicate rdf:type ; | 1049 | sp:predicate rdf:type ; |
1340 | - sp:subject _:b12 | 1050 | + sp:subject _:b10 |
1341 | ] [ sp:object | 1051 | ] [ sp:object |
1342 | [ sp:varName "title"^^xsd:string | 1052 | [ sp:varName "title"^^xsd:string |
1343 | ] ; | 1053 | ] ; |
1344 | sp:predicate <http://purl.org/dc/elements/1.1/title> ; | 1054 | sp:predicate <http://purl.org/dc/elements/1.1/title> ; |
1345 | - sp:subject _:b10 | 1055 | + sp:subject _:b8 |
1346 | ]) ; | 1056 | ]) ; |
1347 | sp:where ([ sp:object spin:_this ; | 1057 | sp:where ([ sp:object spin:_this ; |
1348 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1058 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -1411,6 +1121,296 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1411,6 +1121,296 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1411 | ] ; | 1121 | ] ; |
1412 | spin:rule | 1122 | spin:rule |
1413 | [ rdf:type sp:Construct ; | 1123 | [ rdf:type sp:Construct ; |
1124 | + rdfs:comment """STEP 20005b Set the facility operator- installation or context facility do not exist | ||
1125 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
1126 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
1127 | + sp:predicate rdf:type ; | ||
1128 | + sp:subject _:b11 | ||
1129 | + ] [ sp:object _:b12 ; | ||
1130 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1131 | + sp:subject _:b11 | ||
1132 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
1133 | + sp:predicate rdf:type ; | ||
1134 | + sp:subject _:b12 | ||
1135 | + ] [ sp:object | ||
1136 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1137 | + ] ; | ||
1138 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
1139 | + sp:subject _:b11 | ||
1140 | + ] [ sp:object | ||
1141 | + [ sp:varName "operator"^^xsd:string | ||
1142 | + ] ; | ||
1143 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
1144 | + sp:subject _:b12 | ||
1145 | + ]) ; | ||
1146 | + sp:where ([ sp:object | ||
1147 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1148 | + ] ; | ||
1149 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1150 | + sp:subject spin:_this | ||
1151 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1152 | + sp:predicate rdf:type ; | ||
1153 | + sp:subject | ||
1154 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1155 | + ] | ||
1156 | + ] [ sp:object | ||
1157 | + [ sp:varName "operatorRef"^^xsd:string | ||
1158 | + ] ; | ||
1159 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
1160 | + sp:subject | ||
1161 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1162 | + ] | ||
1163 | + ] [ sp:object | ||
1164 | + [ sp:varName "operatorName"^^xsd:string | ||
1165 | + ] ; | ||
1166 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
1167 | + sp:subject | ||
1168 | + [ sp:varName "operatorRef"^^xsd:string | ||
1169 | + ] | ||
1170 | + ] [ sp:object | ||
1171 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1172 | + ] ; | ||
1173 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1174 | + sp:subject | ||
1175 | + [ sp:varName "productionFlow"^^xsd:string | ||
1176 | + ] | ||
1177 | + ] [ sp:object | ||
1178 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1179 | + ] ; | ||
1180 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1181 | + sp:subject | ||
1182 | + [ sp:varName "productionFlow"^^xsd:string | ||
1183 | + ] | ||
1184 | + ] [ rdf:type sp:NotExists ; | ||
1185 | + sp:elements ([ sp:object | ||
1186 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1187 | + ] ; | ||
1188 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
1189 | + sp:subject | ||
1190 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1191 | + ] | ||
1192 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
1193 | + sp:predicate rdf:type ; | ||
1194 | + sp:subject | ||
1195 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1196 | + ] | ||
1197 | + ] [ sp:object | ||
1198 | + [ sp:varName "productionFacility"^^xsd:string | ||
1199 | + ] ; | ||
1200 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1201 | + sp:subject | ||
1202 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1203 | + ] | ||
1204 | + ]) | ||
1205 | + ] [ rdf:type sp:Bind ; | ||
1206 | + sp:expression | ||
1207 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
1208 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
1209 | + ] | ||
1210 | + ] ; | ||
1211 | + sp:variable | ||
1212 | + [ sp:varName "normalizedOperatorName"^^xsd:string | ||
1213 | + ] | ||
1214 | + ] [ rdf:type sp:Bind ; | ||
1215 | + sp:expression | ||
1216 | + [ rdf:type rhspin:companyById ; | ||
1217 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
1218 | + ] | ||
1219 | + ] ; | ||
1220 | + sp:variable | ||
1221 | + [ sp:varName "operator"^^xsd:string | ||
1222 | + ] | ||
1223 | + ]) | ||
1224 | + ] ; | ||
1225 | + spin:rule | ||
1226 | + [ rdf:type sp:Construct ; | ||
1227 | + rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; | ||
1228 | + sp:templates ([ sp:object | ||
1229 | + [ sp:varName "field"^^xsd:string | ||
1230 | + ] ; | ||
1231 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1232 | + sp:subject | ||
1233 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1234 | + ] | ||
1235 | + ]) ; | ||
1236 | + sp:where ([ sp:object | ||
1237 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1238 | + ] ; | ||
1239 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1240 | + sp:subject spin:_this | ||
1241 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1242 | + sp:predicate rdf:type ; | ||
1243 | + sp:subject | ||
1244 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1245 | + ] | ||
1246 | + ] [ sp:object | ||
1247 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
1248 | + ] ; | ||
1249 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
1250 | + sp:subject | ||
1251 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1252 | + ] | ||
1253 | + ] [ sp:object | ||
1254 | + [ sp:varName "fieldRef"^^xsd:string | ||
1255 | + ] ; | ||
1256 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
1257 | + sp:subject | ||
1258 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
1259 | + ] | ||
1260 | + ] [ sp:object | ||
1261 | + [ sp:varName "fieldName"^^xsd:string | ||
1262 | + ] ; | ||
1263 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
1264 | + sp:subject | ||
1265 | + [ sp:varName "fieldRef"^^xsd:string | ||
1266 | + ] | ||
1267 | + ] [ sp:object | ||
1268 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
1269 | + ] ; | ||
1270 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1271 | + sp:subject | ||
1272 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1273 | + ] | ||
1274 | + ] [ rdf:type sp:Bind ; | ||
1275 | + sp:expression | ||
1276 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
1277 | + sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
1278 | + ] | ||
1279 | + ] ; | ||
1280 | + sp:variable | ||
1281 | + [ sp:varName "normalizedFieldName"^^xsd:string | ||
1282 | + ] | ||
1283 | + ] [ rdf:type sp:Bind ; | ||
1284 | + sp:expression | ||
1285 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
1286 | + sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
1287 | + ] | ||
1288 | + ] ; | ||
1289 | + sp:variable | ||
1290 | + [ sp:varName "field"^^xsd:string | ||
1291 | + ] | ||
1292 | + ]) | ||
1293 | + ] ; | ||
1294 | + spin:rule | ||
1295 | + [ rdf:type sp:Construct ; | ||
1296 | + rdfs:comment "STEP 20004a Set the context facility - installation exists"^^xsd:string ; | ||
1297 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
1298 | + sp:predicate rdf:type ; | ||
1299 | + sp:subject | ||
1300 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
1301 | + ] | ||
1302 | + ] [ sp:object | ||
1303 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
1304 | + ] ; | ||
1305 | + sp:predicate rdf:type ; | ||
1306 | + sp:subject | ||
1307 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
1308 | + ] | ||
1309 | + ] [ sp:object | ||
1310 | + [ sp:varName "productionFacility"^^xsd:string | ||
1311 | + ] ; | ||
1312 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
1313 | + sp:subject | ||
1314 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
1315 | + ] | ||
1316 | + ]) ; | ||
1317 | + sp:where ([ sp:object | ||
1318 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1319 | + ] ; | ||
1320 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1321 | + sp:subject spin:_this | ||
1322 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1323 | + sp:predicate rdf:type ; | ||
1324 | + sp:subject | ||
1325 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1326 | + ] | ||
1327 | + ] [ sp:object | ||
1328 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
1329 | + ] ; | ||
1330 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
1331 | + sp:subject | ||
1332 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1333 | + ] | ||
1334 | + ] [ sp:object | ||
1335 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
1336 | + ] ; | ||
1337 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
1338 | + sp:subject | ||
1339 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
1340 | + ] | ||
1341 | + ] [ rdf:type sp:Optional ; | ||
1342 | + sp:elements ([ sp:object | ||
1343 | + [ sp:varName "contextFacilityKind"^^xsd:string | ||
1344 | + ] ; | ||
1345 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
1346 | + sp:subject | ||
1347 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
1348 | + ] | ||
1349 | + ]) | ||
1350 | + ] [ sp:object | ||
1351 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1352 | + ] ; | ||
1353 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1354 | + sp:subject | ||
1355 | + [ sp:varName "productionFlow"^^xsd:string | ||
1356 | + ] | ||
1357 | + ] [ sp:object | ||
1358 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1359 | + ] ; | ||
1360 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1361 | + sp:subject | ||
1362 | + [ sp:varName "productionFlow"^^xsd:string | ||
1363 | + ] | ||
1364 | + ] [ sp:object | ||
1365 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1366 | + ] ; | ||
1367 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
1368 | + sp:subject | ||
1369 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1370 | + ] | ||
1371 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
1372 | + sp:predicate rdf:type ; | ||
1373 | + sp:subject | ||
1374 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1375 | + ] | ||
1376 | + ] [ sp:object | ||
1377 | + [ sp:varName "productionFacility"^^xsd:string | ||
1378 | + ] ; | ||
1379 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1380 | + sp:subject | ||
1381 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1382 | + ] | ||
1383 | + ] [ rdf:type sp:Bind ; | ||
1384 | + sp:expression | ||
1385 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
1386 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
1387 | + ] | ||
1388 | + ] ; | ||
1389 | + sp:variable | ||
1390 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
1391 | + ] | ||
1392 | + ] [ rdf:type sp:Bind ; | ||
1393 | + sp:expression | ||
1394 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
1395 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
1396 | + ] | ||
1397 | + ] ; | ||
1398 | + sp:variable | ||
1399 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
1400 | + ] | ||
1401 | + ] [ rdf:type sp:Bind ; | ||
1402 | + sp:expression | ||
1403 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
1404 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
1405 | + ] | ||
1406 | + ] ; | ||
1407 | + sp:variable | ||
1408 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
1409 | + ] | ||
1410 | + ]) | ||
1411 | + ] ; | ||
1412 | + spin:rule | ||
1413 | + [ rdf:type sp:Construct ; | ||
1414 | rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; | 1414 | rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; |
1415 | sp:templates ([ sp:object | 1415 | sp:templates ([ sp:object |
1416 | [ sp:varName "country"^^xsd:string | 1416 | [ sp:varName "country"^^xsd:string |
... | @@ -1486,5 +1486,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1486,5 +1486,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1486 | 1486 | ||
1487 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 1487 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
1488 | rdf:type owl:Ontology ; | 1488 | rdf:type owl:Ontology ; |
1489 | - owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; | 1489 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; |
1490 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1490 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment