Showing
2 changed files
with
452 additions
and
453 deletions
1 | -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 1 | +# Saved by TopBraid on Wed Sep 28 18:18:02 BST 2011 |
2 | -# imports: http://spinrdf.org/spin | 2 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
3 | -# imports: http://www.energistics.org/schemas/abstract | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/report |
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | 4 | +# imports: http://www.reportinghub.no/ep/spin/1.1/lib |
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | 5 | +# imports: http://www.energistics.org/schemas/abstract |
6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 6 | +# imports: http://www.witsml.org/schemas/1series |
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | 7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/well |
8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/report | 8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
9 | -# imports: http://www.reportinghub.no/ep/schema/1.0/well | 9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment |
10 | -# imports: http://www.reportinghub.no/ep/spin/1.1/lib | 10 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose |
11 | -# imports: http://www.witsml.org/schemas/1series | 11 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity |
12 | - | 12 | +# imports: http://spinrdf.org/spin |
13 | -@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . | 13 | + |
14 | -@prefix arg: <http://spinrdf.org/arg#> . | 14 | +@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . |
15 | -@prefix ddr: <http://www.witsml.org/schemas/1series#> . | 15 | +@prefix arg: <http://spinrdf.org/arg#> . |
16 | -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 16 | +@prefix ddr: <http://www.witsml.org/schemas/1series#> . |
17 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 17 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
18 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 18 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
19 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 19 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
20 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 20 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
21 | -@prefix sp: <http://spinrdf.org/sp#> . | 21 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
22 | -@prefix spin: <http://spinrdf.org/spin#> . | 22 | +@prefix sp: <http://spinrdf.org/sp#> . |
23 | -@prefix spl: <http://spinrdf.org/spl#> . | 23 | +@prefix spin: <http://spinrdf.org/spin#> . |
24 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 24 | +@prefix spl: <http://spinrdf.org/spl#> . |
25 | - | 25 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
26 | -<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> | 26 | + |
27 | - rdf:type owl:Ontology ; | 27 | +<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> |
28 | - owl:imports <http://spinrdf.org/spin> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; | 28 | + rdf:type owl:Ontology ; |
29 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 29 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ; |
30 | - | 30 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
31 | -ddr:Obj_drillReport | 31 | + |
32 | - spin:rule | 32 | +ddr:Obj_drillReport |
33 | - [ rdf:type sp:Construct ; | 33 | + spin:rule |
34 | + [ rdf:type sp:Construct ; | ||
35 | + rdfs:comment """STEP 103a Set name of DailyDrillingReport as label | ||
36 | +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; | ||
37 | + sp:templates ([ sp:object _:b1 ; | ||
38 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | ||
39 | + sp:subject _:b2 | ||
40 | + ]) ; | ||
41 | + sp:where ([ sp:object _:b3 ; | ||
42 | + sp:predicate ddr:nameWellbore ; | ||
43 | + sp:subject spin:_this | ||
44 | + ] [ sp:object _:b1 ; | ||
45 | + sp:predicate ddr:name ; | ||
46 | + sp:subject spin:_this | ||
47 | + ] [ sp:object _:b4 ; | ||
48 | + sp:predicate ddr:createDate ; | ||
49 | + sp:subject spin:_this | ||
50 | + ] [ rdf:type sp:Bind ; | ||
51 | + sp:expression | ||
52 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
53 | + sp:arg1 _:b3 | ||
54 | + ] ; | ||
55 | + sp:variable _:b5 | ||
56 | + ] [ rdf:type sp:Bind ; | ||
57 | + sp:expression | ||
58 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
59 | + sp:arg1 _:b5 ; | ||
60 | + sp:arg2 _:b4 | ||
61 | + ] ; | ||
62 | + sp:variable _:b2 | ||
63 | + ]) | ||
64 | + ] ; | ||
65 | + spin:rule | ||
66 | + [ rdf:type sp:Construct ; | ||
67 | + rdfs:comment """STEP 105 | ||
68 | +Classify a DailyDrillingReport"""^^xsd:string ; | ||
69 | + sp:templates ([ sp:object _:b6 ; | ||
70 | + sp:predicate rdf:type ; | ||
71 | + sp:subject _:b7 | ||
72 | + ]) ; | ||
73 | + sp:where ([ sp:object _:b8 ; | ||
74 | + sp:predicate ddr:nameWellbore ; | ||
75 | + sp:subject spin:_this | ||
76 | + ] [ sp:object _:b9 ; | ||
77 | + sp:predicate ddr:createDate ; | ||
78 | + sp:subject spin:_this | ||
79 | + ] [ sp:object _:b10 ; | ||
80 | + sp:predicate ddr:versionKindRef ; | ||
81 | + sp:subject spin:_this | ||
82 | + ] [ rdf:type sp:Bind ; | ||
83 | + sp:expression | ||
84 | + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; | ||
85 | + sp:arg1 _:b10 | ||
86 | + ] ; | ||
87 | + sp:variable _:b6 | ||
88 | + ] [ rdf:type sp:Bind ; | ||
89 | + sp:expression | ||
90 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
91 | + sp:arg1 _:b8 | ||
92 | + ] ; | ||
93 | + sp:variable _:b11 | ||
94 | + ] [ rdf:type sp:Bind ; | ||
95 | + sp:expression | ||
96 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
97 | + sp:arg1 _:b11 ; | ||
98 | + sp:arg2 _:b9 | ||
99 | + ] ; | ||
100 | + sp:variable _:b7 | ||
101 | + ]) | ||
102 | + ] ; | ||
103 | + spin:rule | ||
104 | + [ rdf:type sp:Construct ; | ||
105 | + rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; | ||
106 | + sp:templates ([ sp:object _:b12 ; | ||
107 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
108 | + sp:subject _:b13 | ||
109 | + ]) ; | ||
110 | + sp:where ([ sp:object _:b14 ; | ||
111 | + sp:predicate ddr:nameWellbore ; | ||
112 | + sp:subject spin:_this | ||
113 | + ] [ sp:object _:b15 ; | ||
114 | + sp:predicate ddr:dTimStart ; | ||
115 | + sp:subject spin:_this | ||
116 | + ] [ sp:object _:b12 ; | ||
117 | + sp:predicate ddr:dTimEnd ; | ||
118 | + sp:subject spin:_this | ||
119 | + ] [ rdf:type sp:Bind ; | ||
120 | + sp:expression | ||
121 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
122 | + sp:arg1 _:b14 | ||
123 | + ] ; | ||
124 | + sp:variable _:b16 | ||
125 | + ] [ rdf:type sp:Bind ; | ||
126 | + sp:expression | ||
127 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
128 | + sp:arg1 _:b16 ; | ||
129 | + sp:arg2 _:b15 | ||
130 | + ] ; | ||
131 | + sp:variable _:b13 | ||
132 | + ]) | ||
133 | + ] ; | ||
134 | + spin:rule | ||
135 | + [ rdf:type sp:Construct ; | ||
136 | + rdfs:comment "STEP 106 Create Well"^^xsd:string ; | ||
137 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
138 | + sp:predicate rdf:type ; | ||
139 | + sp:subject _:b17 | ||
140 | + ] [ sp:object _:b18 ; | ||
141 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | ||
142 | + sp:subject _:b17 | ||
143 | + ] [ sp:object _:b19 ; | ||
144 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | ||
145 | + sp:subject _:b20 | ||
146 | + ] [ sp:object _:b17 ; | ||
147 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
148 | + sp:subject _:b19 | ||
149 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
150 | + sp:predicate rdf:type ; | ||
151 | + sp:subject _:b19 | ||
152 | + ] [ sp:object _:b21 ; | ||
153 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
154 | + sp:subject _:b17 | ||
155 | + ]) ; | ||
156 | + sp:where ([ sp:object _:b22 ; | ||
157 | + sp:predicate ddr:nameWellbore ; | ||
158 | + sp:subject spin:_this | ||
159 | + ] [ sp:object _:b18 ; | ||
160 | + sp:predicate ddr:nameWell ; | ||
161 | + sp:subject spin:_this | ||
162 | + ] [ sp:object _:b23 ; | ||
163 | + sp:predicate ddr:dTimStart ; | ||
164 | + sp:subject spin:_this | ||
165 | + ] [ sp:object _:b24 ; | ||
166 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
167 | + sp:subject _:b20 | ||
168 | + ] [ sp:object _:b21 ; | ||
169 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
170 | + sp:subject _:b24 | ||
171 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
172 | + sp:predicate rdf:type ; | ||
173 | + sp:subject _:b21 | ||
174 | + ] [ rdf:type sp:Bind ; | ||
175 | + sp:expression | ||
176 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
177 | + sp:arg1 _:b22 | ||
178 | + ] ; | ||
179 | + sp:variable _:b25 | ||
180 | + ] [ rdf:type sp:Bind ; | ||
181 | + sp:expression | ||
182 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
183 | + sp:arg1 _:b25 ; | ||
184 | + sp:arg2 _:b23 | ||
185 | + ] ; | ||
186 | + sp:variable _:b20 | ||
187 | + ] [ rdf:type sp:Bind ; | ||
188 | + sp:expression | ||
189 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
190 | + sp:arg1 _:b18 | ||
191 | + ] ; | ||
192 | + sp:variable _:b26 | ||
193 | + ] [ rdf:type sp:Bind ; | ||
194 | + sp:expression | ||
195 | + [ rdf:type rhspin:wellByName ; | ||
196 | + arg:wellName _:b26 | ||
197 | + ] ; | ||
198 | + sp:variable _:b17 | ||
199 | + ]) | ||
200 | + ] ; | ||
201 | + spin:rule | ||
202 | + [ rdf:type sp:Construct ; | ||
34 | rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore | 203 | rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore |
35 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore | 204 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore |
36 | Optional data - extendedReport | 205 | Optional data - extendedReport |
37 | -replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; | 206 | +replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; |
38 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; | 207 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; |
39 | - sp:predicate rdf:type ; | 208 | + sp:predicate rdf:type ; |
40 | - sp:subject | 209 | + sp:subject |
41 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 210 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
42 | - ] | 211 | + ] |
43 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; | 212 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; |
44 | - sp:predicate rdf:type ; | 213 | + sp:predicate rdf:type ; |
45 | - sp:subject | 214 | + sp:subject |
46 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 215 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
47 | - ] | 216 | + ] |
48 | - ] [ sp:object | 217 | + ] [ sp:object |
49 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 218 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
50 | - ] ; | 219 | + ] ; |
51 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 220 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
52 | - sp:subject | 221 | + sp:subject |
53 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 222 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
54 | - ] | 223 | + ] |
55 | - ] [ sp:object | 224 | + ] [ sp:object |
56 | - [ sp:varName "createDate"^^xsd:string | 225 | + [ sp:varName "createDate"^^xsd:string |
57 | - ] ; | 226 | + ] ; |
58 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 227 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
59 | - sp:subject | 228 | + sp:subject |
60 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 229 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
61 | - ] | 230 | + ] |
62 | - ] [ sp:object | 231 | + ] [ sp:object |
63 | - [ sp:varName "dTimStart"^^xsd:string | 232 | + [ sp:varName "dTimStart"^^xsd:string |
64 | - ] ; | 233 | + ] ; |
65 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 234 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
66 | - sp:subject | 235 | + sp:subject |
67 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 236 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
68 | - ] | 237 | + ] |
69 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | 238 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; |
70 | - sp:predicate rdf:type ; | 239 | + sp:predicate rdf:type ; |
71 | - sp:subject | 240 | + sp:subject |
72 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 241 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
73 | - ] | 242 | + ] |
74 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 243 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
75 | - sp:predicate rdf:type ; | 244 | + sp:predicate rdf:type ; |
76 | - sp:subject | 245 | + sp:subject |
77 | - [ sp:varName "wellBore"^^xsd:string | 246 | + [ sp:varName "wellBore"^^xsd:string |
78 | - ] | 247 | + ] |
79 | - ] [ sp:object | 248 | + ] [ sp:object |
80 | - [ sp:varName "wellBore"^^xsd:string | 249 | + [ sp:varName "wellBore"^^xsd:string |
81 | - ] ; | 250 | + ] ; |
82 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 251 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
83 | - sp:subject | 252 | + sp:subject |
84 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 253 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
85 | - ] | 254 | + ] |
86 | - ] [ sp:object | 255 | + ] [ sp:object |
87 | - [ sp:varName "nameWellBore"^^xsd:string | 256 | + [ sp:varName "nameWellBore"^^xsd:string |
88 | - ] ; | 257 | + ] ; |
89 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | 258 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
90 | - sp:subject | 259 | + sp:subject |
91 | - [ sp:varName "wellBore"^^xsd:string | 260 | + [ sp:varName "wellBore"^^xsd:string |
92 | - ] | 261 | + ] |
93 | - ] [ sp:object | 262 | + ] [ sp:object |
94 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 263 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
95 | - ] ; | 264 | + ] ; |
96 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 265 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
97 | - sp:subject | 266 | + sp:subject |
98 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 267 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
99 | - ] | 268 | + ] |
100 | - ] [ sp:object _:b1 ; | 269 | + ] [ sp:object _:b27 ; |
101 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; | 270 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; |
102 | - sp:subject | 271 | + sp:subject |
103 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 272 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
104 | - ] | 273 | + ] |
105 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | 274 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; |
106 | - sp:predicate rdf:type ; | 275 | + sp:predicate rdf:type ; |
107 | - sp:subject _:b1 | 276 | + sp:subject _:b27 |
108 | - ] [ sp:object | 277 | + ] [ sp:object |
109 | - [ sp:varName "extendedReportContent"^^xsd:string | 278 | + [ sp:varName "extendedReportContent"^^xsd:string |
110 | - ] ; | 279 | + ] ; |
111 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; | 280 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; |
112 | - sp:subject _:b1 | 281 | + sp:subject _:b27 |
113 | - ] [ sp:object | 282 | + ] [ sp:object |
114 | - [ sp:varName "dTimExtendedReport"^^xsd:string | 283 | + [ sp:varName "dTimExtendedReport"^^xsd:string |
115 | - ] ; | 284 | + ] ; |
116 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 285 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
117 | - sp:subject _:b1 | 286 | + sp:subject _:b27 |
118 | - ]) ; | 287 | + ]) ; |
119 | - sp:where ([ sp:object | 288 | + sp:where ([ sp:object |
120 | - [ sp:varName "nameWellBore"^^xsd:string | 289 | + [ sp:varName "nameWellBore"^^xsd:string |
121 | - ] ; | 290 | + ] ; |
122 | - sp:predicate ddr:nameWellbore ; | 291 | + sp:predicate ddr:nameWellbore ; |
123 | - sp:subject spin:_this | 292 | + sp:subject spin:_this |
124 | - ] [ sp:object | 293 | + ] [ sp:object |
125 | - [ sp:varName "dTimStart"^^xsd:string | 294 | + [ sp:varName "dTimStart"^^xsd:string |
126 | - ] ; | 295 | + ] ; |
127 | - sp:predicate ddr:dTimStart ; | 296 | + sp:predicate ddr:dTimStart ; |
128 | - sp:subject spin:_this | 297 | + sp:subject spin:_this |
129 | - ] [ sp:object | 298 | + ] [ sp:object |
130 | - [ sp:varName "dTimEnd"^^xsd:string | 299 | + [ sp:varName "dTimEnd"^^xsd:string |
131 | - ] ; | 300 | + ] ; |
132 | - sp:predicate ddr:dTimEnd ; | 301 | + sp:predicate ddr:dTimEnd ; |
133 | - sp:subject spin:_this | 302 | + sp:subject spin:_this |
134 | - ] [ sp:object | 303 | + ] [ sp:object |
135 | - [ sp:varName "createDate"^^xsd:string | 304 | + [ sp:varName "createDate"^^xsd:string |
136 | - ] ; | 305 | + ] ; |
137 | - sp:predicate ddr:createDate ; | 306 | + sp:predicate ddr:createDate ; |
138 | - sp:subject spin:_this | 307 | + sp:subject spin:_this |
139 | - ] [ rdf:type sp:Optional ; | 308 | + ] [ rdf:type sp:Optional ; |
140 | - sp:elements ([ sp:object | 309 | + sp:elements ([ sp:object |
141 | - [ sp:varName "extendedReport"^^xsd:string | 310 | + [ sp:varName "extendedReport"^^xsd:string |
142 | - ] ; | 311 | + ] ; |
143 | - sp:predicate ddr:extendedReportRef ; | 312 | + sp:predicate ddr:extendedReportRef ; |
144 | - sp:subject spin:_this | 313 | + sp:subject spin:_this |
145 | - ] [ sp:object | 314 | + ] [ sp:object |
146 | - [ sp:varName "extendedReportContent"^^xsd:string | 315 | + [ sp:varName "extendedReportContent"^^xsd:string |
147 | - ] ; | 316 | + ] ; |
148 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 317 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
149 | - sp:subject | 318 | + sp:subject |
150 | - [ sp:varName "extendedReport"^^xsd:string | 319 | + [ sp:varName "extendedReport"^^xsd:string |
151 | - ] | 320 | + ] |
152 | - ] [ rdf:type sp:Optional ; | 321 | + ] [ rdf:type sp:Optional ; |
153 | - sp:elements ([ sp:object | 322 | + sp:elements ([ sp:object |
154 | - [ sp:varName "dTimExtendedReport"^^xsd:string | 323 | + [ sp:varName "dTimExtendedReport"^^xsd:string |
155 | - ] ; | 324 | + ] ; |
156 | - sp:predicate ddr:dTim ; | 325 | + sp:predicate ddr:dTim ; |
157 | - sp:subject | 326 | + sp:subject |
158 | - [ sp:varName "extendedReport"^^xsd:string | 327 | + [ sp:varName "extendedReport"^^xsd:string |
159 | - ] | 328 | + ] |
160 | - ]) | 329 | + ]) |
161 | - ]) | 330 | + ]) |
162 | - ] [ rdf:type sp:Bind ; | 331 | + ] [ rdf:type sp:Bind ; |
163 | - sp:expression | 332 | + sp:expression |
164 | - [ rdf:type ep-spin-lib:normalizeString ; | 333 | + [ rdf:type ep-spin-lib:normalizeString ; |
165 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 334 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
166 | - ] | 335 | + ] |
167 | - ] ; | 336 | + ] ; |
168 | - sp:variable | 337 | + sp:variable |
169 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | 338 | + [ sp:varName "normalizedWellBoreName"^^xsd:string |
170 | - ] | 339 | + ] |
171 | - ] [ rdf:type sp:Bind ; | 340 | + ] [ rdf:type sp:Bind ; |
172 | - sp:expression | 341 | + sp:expression |
173 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | 342 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; |
174 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 343 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
175 | - ] ; | 344 | + ] ; |
176 | - sp:arg2 [ sp:varName "createDate"^^xsd:string | 345 | + sp:arg2 [ sp:varName "createDate"^^xsd:string |
177 | - ] | 346 | + ] |
178 | - ] ; | 347 | + ] ; |
179 | - sp:variable | 348 | + sp:variable |
180 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 349 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
181 | - ] | 350 | + ] |
182 | - ] [ rdf:type sp:Bind ; | 351 | + ] [ rdf:type sp:Bind ; |
183 | - sp:expression | 352 | + sp:expression |
184 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 353 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
185 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 354 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
186 | - ] ; | 355 | + ] ; |
187 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | 356 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string |
188 | - ] | 357 | + ] |
189 | - ] ; | 358 | + ] ; |
190 | - sp:variable | 359 | + sp:variable |
191 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 360 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
192 | - ] | 361 | + ] |
193 | - ] [ rdf:type sp:Bind ; | 362 | + ] [ rdf:type sp:Bind ; |
194 | - sp:expression | 363 | + sp:expression |
195 | - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; | 364 | + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; |
196 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 365 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
197 | - ] ; | 366 | + ] ; |
198 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | 367 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string |
199 | - ] ; | 368 | + ] ; |
200 | - sp:arg3 [ sp:varName "dTimEnd"^^xsd:string | 369 | + sp:arg3 [ sp:varName "dTimEnd"^^xsd:string |
201 | - ] | 370 | + ] |
202 | - ] ; | 371 | + ] ; |
203 | - sp:variable | 372 | + sp:variable |
204 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 373 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
205 | - ] | 374 | + ] |
206 | - ] [ rdf:type sp:Bind ; | 375 | + ] [ rdf:type sp:Bind ; |
207 | - sp:expression | 376 | + sp:expression |
208 | - [ rdf:type rhspin:wellBoreByName ; | 377 | + [ rdf:type rhspin:wellBoreByName ; |
209 | - arg:wellBoreName | 378 | + arg:wellBoreName |
210 | - [ rdf:type xsd:string ; | 379 | + [ rdf:type xsd:string ; |
211 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 380 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
212 | - ] | 381 | + ] |
213 | - ] | 382 | + ] |
214 | - ] ; | 383 | + ] ; |
215 | - sp:variable | 384 | + sp:variable |
216 | - [ sp:varName "wellBore"^^xsd:string | 385 | + [ sp:varName "wellBore"^^xsd:string |
217 | - ] | 386 | + ] |
218 | - ]) | 387 | + ]) |
219 | - ] ; | 388 | + ] . |
220 | - spin:rule | 389 | + |
221 | - [ rdf:type sp:Construct ; | 390 | +_:b11 |
222 | - rdfs:comment "STEP 106 Create Well"^^xsd:string ; | 391 | + sp:varName "normalizedWellBoreName"^^xsd:string . |
223 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 392 | + |
224 | - sp:predicate rdf:type ; | 393 | +_:b10 |
225 | - sp:subject _:b2 | 394 | + sp:varName "versionKind"^^xsd:string . |
226 | - ] [ sp:object _:b3 ; | 395 | + |
227 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | 396 | +_:b9 sp:varName "createDate"^^xsd:string . |
228 | - sp:subject _:b2 | 397 | + |
229 | - ] [ sp:object _:b4 ; | 398 | +_:b8 sp:varName "nameWellBore"^^xsd:string . |
230 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | 399 | + |
231 | - sp:subject _:b5 | 400 | +_:b7 sp:varName "dailyDrillingReport"^^xsd:string . |
232 | - ] [ sp:object _:b2 ; | 401 | + |
233 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 402 | +_:b6 sp:varName "dailyDrillingReportType"^^xsd:string . |
234 | - sp:subject _:b4 | 403 | + |
235 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | 404 | +_:b16 |
236 | - sp:predicate rdf:type ; | 405 | + sp:varName "normalizedWellBoreName"^^xsd:string . |
237 | - sp:subject _:b4 | 406 | + |
238 | - ] [ sp:object _:b6 ; | 407 | +_:b15 |
239 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 408 | + sp:varName "dTimStart"^^xsd:string . |
240 | - sp:subject _:b2 | 409 | + |
241 | - ]) ; | 410 | +_:b14 |
242 | - sp:where ([ sp:object _:b7 ; | 411 | + sp:varName "nameWellBore"^^xsd:string . |
243 | - sp:predicate ddr:nameWellbore ; | 412 | + |
244 | - sp:subject spin:_this | 413 | +_:b13 |
245 | - ] [ sp:object _:b3 ; | 414 | + sp:varName "dailyDrillingActivity"^^xsd:string . |
246 | - sp:predicate ddr:nameWell ; | 415 | + |
247 | - sp:subject spin:_this | 416 | +_:b12 |
248 | - ] [ sp:object _:b8 ; | 417 | + sp:varName "dTimEnd"^^xsd:string . |
249 | - sp:predicate ddr:dTimStart ; | 418 | + |
250 | - sp:subject spin:_this | 419 | +_:b26 |
251 | - ] [ sp:object _:b9 ; | 420 | + sp:varName "normalizedWellName"^^xsd:string . |
252 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 421 | + |
253 | - sp:subject _:b5 | 422 | +_:b25 |
254 | - ] [ sp:object _:b6 ; | 423 | + sp:varName "normalizedWellBoreName"^^xsd:string . |
255 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 424 | + |
256 | - sp:subject _:b9 | 425 | +_:b24 |
257 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 426 | + sp:varName "temporalPartOfAWellBore"^^xsd:string . |
258 | - sp:predicate rdf:type ; | 427 | + |
259 | - sp:subject _:b6 | 428 | +_:b23 |
260 | - ] [ rdf:type sp:Bind ; | 429 | + sp:varName "dTimStart"^^xsd:string . |
261 | - sp:expression | 430 | + |
262 | - [ rdf:type ep-spin-lib:normalizeString ; | 431 | +_:b22 |
263 | - sp:arg1 _:b7 | 432 | + sp:varName "nameWellBore"^^xsd:string . |
264 | - ] ; | 433 | + |
265 | - sp:variable _:b10 | 434 | +_:b21 |
266 | - ] [ rdf:type sp:Bind ; | 435 | + sp:varName "wellBore"^^xsd:string . |
267 | - sp:expression | 436 | + |
268 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 437 | +_:b20 |
269 | - sp:arg1 _:b10 ; | 438 | + sp:varName "dailyDrillingActivity"^^xsd:string . |
270 | - sp:arg2 _:b8 | 439 | + |
271 | - ] ; | 440 | +_:b18 |
272 | - sp:variable _:b5 | 441 | + sp:varName "nameWell"^^xsd:string . |
273 | - ] [ rdf:type sp:Bind ; | 442 | + |
274 | - sp:expression | 443 | +_:b17 |
275 | - [ rdf:type ep-spin-lib:normalizeString ; | 444 | + sp:varName "well"^^xsd:string . |
276 | - sp:arg1 _:b3 | 445 | + |
277 | - ] ; | 446 | +_:b2 sp:varName "dailyDrillingReport"^^xsd:string . |
278 | - sp:variable _:b11 | 447 | + |
279 | - ] [ rdf:type sp:Bind ; | 448 | +_:b3 sp:varName "nameWellBore"^^xsd:string . |
280 | - sp:expression | 449 | + |
281 | - [ rdf:type rhspin:wellByName ; | 450 | +_:b1 sp:varName "nameDailyDrillingReport"^^xsd:string . |
282 | - arg:wellName _:b11 | 451 | + |
283 | - ] ; | 452 | +_:b4 sp:varName "createDate"^^xsd:string . |
284 | - sp:variable _:b2 | 453 | + |
285 | - ]) | 454 | +_:b5 sp:varName "normalizedWellBoreName"^^xsd:string . |
286 | - ] ; | ||
287 | - spin:rule | ||
288 | - [ rdf:type sp:Construct ; | ||
289 | - rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; | ||
290 | - sp:templates ([ sp:object _:b12 ; | ||
291 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
292 | - sp:subject _:b13 | ||
293 | - ]) ; | ||
294 | - sp:where ([ sp:object _:b14 ; | ||
295 | - sp:predicate ddr:nameWellbore ; | ||
296 | - sp:subject spin:_this | ||
297 | - ] [ sp:object _:b15 ; | ||
298 | - sp:predicate ddr:dTimStart ; | ||
299 | - sp:subject spin:_this | ||
300 | - ] [ sp:object _:b12 ; | ||
301 | - sp:predicate ddr:dTimEnd ; | ||
302 | - sp:subject spin:_this | ||
303 | - ] [ rdf:type sp:Bind ; | ||
304 | - sp:expression | ||
305 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
306 | - sp:arg1 _:b14 | ||
307 | - ] ; | ||
308 | - sp:variable _:b16 | ||
309 | - ] [ rdf:type sp:Bind ; | ||
310 | - sp:expression | ||
311 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
312 | - sp:arg1 _:b16 ; | ||
313 | - sp:arg2 _:b15 | ||
314 | - ] ; | ||
315 | - sp:variable _:b13 | ||
316 | - ]) | ||
317 | - ] ; | ||
318 | - spin:rule | ||
319 | - [ rdf:type sp:Construct ; | ||
320 | - rdfs:comment """STEP 105 | ||
321 | -Classify a DailyDrillingReport"""^^xsd:string ; | ||
322 | - sp:templates ([ sp:object _:b17 ; | ||
323 | - sp:predicate rdf:type ; | ||
324 | - sp:subject _:b18 | ||
325 | - ]) ; | ||
326 | - sp:where ([ sp:object _:b19 ; | ||
327 | - sp:predicate ddr:nameWellbore ; | ||
328 | - sp:subject spin:_this | ||
329 | - ] [ sp:object _:b20 ; | ||
330 | - sp:predicate ddr:createDate ; | ||
331 | - sp:subject spin:_this | ||
332 | - ] [ sp:object _:b21 ; | ||
333 | - sp:predicate ddr:versionKindRef ; | ||
334 | - sp:subject spin:_this | ||
335 | - ] [ rdf:type sp:Bind ; | ||
336 | - sp:expression | ||
337 | - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; | ||
338 | - sp:arg1 _:b21 | ||
339 | - ] ; | ||
340 | - sp:variable _:b17 | ||
341 | - ] [ rdf:type sp:Bind ; | ||
342 | - sp:expression | ||
343 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
344 | - sp:arg1 _:b19 | ||
345 | - ] ; | ||
346 | - sp:variable _:b22 | ||
347 | - ] [ rdf:type sp:Bind ; | ||
348 | - sp:expression | ||
349 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
350 | - sp:arg1 _:b22 ; | ||
351 | - sp:arg2 _:b20 | ||
352 | - ] ; | ||
353 | - sp:variable _:b18 | ||
354 | - ]) | ||
355 | - ] ; | ||
356 | - spin:rule | ||
357 | - [ rdf:type sp:Construct ; | ||
358 | - rdfs:comment """STEP 103a Set name of DailyDrillingReport as label | ||
359 | -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; | ||
360 | - sp:templates ([ sp:object _:b23 ; | ||
361 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
362 | - sp:subject _:b24 | ||
363 | - ]) ; | ||
364 | - sp:where ([ sp:object _:b25 ; | ||
365 | - sp:predicate ddr:nameWellbore ; | ||
366 | - sp:subject spin:_this | ||
367 | - ] [ sp:object _:b23 ; | ||
368 | - sp:predicate ddr:name ; | ||
369 | - sp:subject spin:_this | ||
370 | - ] [ sp:object _:b26 ; | ||
371 | - sp:predicate ddr:createDate ; | ||
372 | - sp:subject spin:_this | ||
373 | - ] [ rdf:type sp:Bind ; | ||
374 | - sp:expression | ||
375 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
376 | - sp:arg1 _:b25 | ||
377 | - ] ; | ||
378 | - sp:variable _:b27 | ||
379 | - ] [ rdf:type sp:Bind ; | ||
380 | - sp:expression | ||
381 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
382 | - sp:arg1 _:b27 ; | ||
383 | - sp:arg2 _:b26 | ||
384 | - ] ; | ||
385 | - sp:variable _:b24 | ||
386 | - ]) | ||
387 | - ] . | ||
388 | - | ||
389 | -_:b11 | ||
390 | - sp:varName "normalizedWellName"^^xsd:string . | ||
391 | - | ||
392 | -_:b10 | ||
393 | - sp:varName "normalizedWellBoreName"^^xsd:string . | ||
394 | - | ||
395 | -_:b9 sp:varName "temporalPartOfAWellBore"^^xsd:string . | ||
396 | - | ||
397 | -_:b8 sp:varName "dTimStart"^^xsd:string . | ||
398 | - | ||
399 | -_:b7 sp:varName "nameWellBore"^^xsd:string . | ||
400 | - | ||
401 | -_:b6 sp:varName "wellBore"^^xsd:string . | ||
402 | - | ||
403 | -_:b5 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
404 | - | ||
405 | -_:b3 sp:varName "nameWell"^^xsd:string . | ||
406 | - | ||
407 | -_:b2 sp:varName "well"^^xsd:string . | ||
408 | - | ||
409 | -_:b16 | ||
410 | - sp:varName "normalizedWellBoreName"^^xsd:string . | ||
411 | - | ||
412 | -_:b15 | ||
413 | - sp:varName "dTimStart"^^xsd:string . | ||
414 | - | ||
415 | -_:b14 | ||
416 | - sp:varName "nameWellBore"^^xsd:string . | ||
417 | - | ||
418 | -_:b13 | ||
419 | - sp:varName "dailyDrillingActivity"^^xsd:string . | ||
420 | - | ||
421 | -_:b12 | ||
422 | - sp:varName "dTimEnd"^^xsd:string . | ||
423 | - | ||
424 | -_:b22 | ||
425 | - sp:varName "normalizedWellBoreName"^^xsd:string . | ||
426 | - | ||
427 | -_:b21 | ||
428 | - sp:varName "versionKind"^^xsd:string . | ||
429 | - | ||
430 | -_:b20 | ||
431 | - sp:varName "createDate"^^xsd:string . | ||
432 | - | ||
433 | -_:b19 | ||
434 | - sp:varName "nameWellBore"^^xsd:string . | ||
435 | - | ||
436 | -_:b18 | ||
437 | - sp:varName "dailyDrillingReport"^^xsd:string . | ||
438 | - | ||
439 | -_:b17 | ||
440 | - sp:varName "dailyDrillingReportType"^^xsd:string . | ||
441 | - | ||
442 | -_:b27 | ||
443 | - sp:varName "normalizedWellBoreName"^^xsd:string . | ||
444 | - | ||
445 | -_:b26 | ||
446 | - sp:varName "createDate"^^xsd:string . | ||
447 | - | ||
448 | -_:b25 | ||
449 | - sp:varName "nameWellBore"^^xsd:string . | ||
450 | - | ||
451 | -_:b24 | ||
452 | - sp:varName "dailyDrillingReport"^^xsd:string . | ||
453 | - | ||
454 | -_:b23 | ||
455 | - sp:varName "nameDailyDrillingReport"^^xsd:string . | ... | ... |
1 | -# Saved by TopBraid on Sun Sep 25 18:41:25 BST 2011 | 1 | +# Saved by TopBraid on Wed Sep 28 18:18:02 BST 2011 |
2 | # baseURI: null | 2 | # baseURI: null |
3 | 3 | ||
4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | 4 | @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ... | ... |
-
Please register or login to post a comment