David Price

Remove company URIs for non validated company name use

1 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo
2 -# imports: http://spinrdf.org/spin 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 5 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
6 -# imports: http://www.witsml.org/schemas/1series 6 +# imports: http://www.witsml.org/schemas/1series
7 - 7 +
8 -@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo#> . 8 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo#> .
9 -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 9 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
10 -@prefix arg: <http://spinrdf.org/arg#> . 10 +@prefix arg: <http://spinrdf.org/arg#> .
11 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 15 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
16 -@prefix sp: <http://spinrdf.org/sp#> . 16 +@prefix sp: <http://spinrdf.org/sp#> .
17 -@prefix spin: <http://spinrdf.org/spin#> . 17 +@prefix spin: <http://spinrdf.org/spin#> .
18 -@prefix spl: <http://spinrdf.org/spl#> . 18 +@prefix spl: <http://spinrdf.org/spl#> .
19 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 19 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
20 - 20 +
21 -<http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo> 21 +<http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo>
22 - rdf:type owl:Ontology ; 22 + rdf:type owl:Ontology ;
23 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 23 + owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
24 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 24 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
25 - 25 +
26 -<http://www.witsml.org/schemas/1series#Obj_drillReport> 26 +<http://www.witsml.org/schemas/1series#Obj_drillReport>
27 - spin:rule 27 + spin:rule
28 - [ rdf:type sp:Construct ; 28 + [ rdf:type sp:Construct ;
29 - rdfs:comment "STEP 190 Create a well bore log activity"^^xsd:string ; 29 + rdfs:comment "STEP 190 Create a well bore log activity"^^xsd:string ;
30 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ; 30 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ;
31 - sp:predicate rdf:type ; 31 + sp:predicate rdf:type ;
32 - sp:subject 32 + sp:subject
33 - [ sp:varName "wellBoreLogRun"^^xsd:string 33 + [ sp:varName "wellBoreLogRun"^^xsd:string
34 - ] 34 + ]
35 - ] [ sp:object 35 + ] [ sp:object
36 - [ sp:varName "wellBoreLogRun"^^xsd:string 36 + [ sp:varName "wellBoreLogRun"^^xsd:string
37 - ] ; 37 + ] ;
38 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 38 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
39 - sp:subject 39 + sp:subject
40 - [ sp:varName "dailyDrillingActivity"^^xsd:string 40 + [ sp:varName "dailyDrillingActivity"^^xsd:string
41 - ] 41 + ]
42 - ] [ sp:object _:b1 ; 42 + ] [ sp:object _:b1 ;
43 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 43 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
44 - sp:subject 44 + sp:subject
45 - [ sp:varName "wellBoreLogRun"^^xsd:string 45 + [ sp:varName "wellBoreLogRun"^^xsd:string
46 - ] 46 + ]
47 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; 47 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
48 - sp:predicate rdf:type ; 48 + sp:predicate rdf:type ;
49 - sp:subject _:b1 49 + sp:subject _:b1
50 - ] [ sp:object 50 + ] [ sp:object
51 - [ sp:varName "dailyTemporalPartOfAWellBore"^^xsd:string 51 + [ sp:varName "dailyTemporalPartOfAWellBore"^^xsd:string
52 - ] ; 52 + ] ;
53 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 53 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
54 - sp:subject _:b1 54 + sp:subject _:b1
55 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ; 55 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ;
56 - sp:predicate rdf:type ; 56 + sp:predicate rdf:type ;
57 - sp:subject _:b2 57 + sp:subject _:b2
58 - ] [ sp:object _:b1 ; 58 + ] [ sp:object _:b1 ;
59 - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 59 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
60 - sp:subject _:b2 60 + sp:subject _:b2
61 - ] [ sp:object 61 + ] [ sp:object
62 - [ sp:varName "runNumber"^^xsd:string 62 + [ sp:varName "runNumber"^^xsd:string
63 - ] ; 63 + ] ;
64 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#logRunNumber> ; 64 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#logRunNumber> ;
65 - sp:subject 65 + sp:subject
66 - [ sp:varName "wellBoreLogRun"^^xsd:string 66 + [ sp:varName "wellBoreLogRun"^^xsd:string
67 - ] 67 + ]
68 - ] [ sp:object 68 + ] [ sp:object
69 - [ sp:varName "dTimEnd"^^xsd:string 69 + [ sp:varName "dTimEnd"^^xsd:string
70 - ] ; 70 + ] ;
71 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 71 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
72 - sp:subject 72 + sp:subject
73 - [ sp:varName "wellBoreLogRun"^^xsd:string 73 + [ sp:varName "wellBoreLogRun"^^xsd:string
74 - ] 74 + ]
75 - ] [ sp:object _:b3 ; 75 + ] [ sp:object _:b3 ;
76 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#serviceCompany> ; 76 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#serviceCompany> ;
77 - sp:subject 77 + sp:subject
78 - [ sp:varName "wellBoreLogRun"^^xsd:string 78 + [ sp:varName "wellBoreLogRun"^^xsd:string
79 - ] 79 + ]
80 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; 80 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ;
81 - sp:predicate rdf:type ; 81 + sp:predicate rdf:type ;
82 - sp:subject _:b3 82 + sp:subject _:b3
83 - ] [ sp:object 83 + ] [ sp:object
84 - [ sp:varName "serviceCompany"^^xsd:string 84 + [ sp:varName "nameServiceCompany"^^xsd:string
85 - ] ; 85 + ] ;
86 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 86 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
87 - sp:subject _:b3 87 + sp:subject _:b3
88 - ] [ sp:object 88 + ] [ sp:object _:b4 ;
89 - [ sp:varName "nameServiceCompany"^^xsd:string 89 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#wellBoreLoggingTool> ;
90 - ] ; 90 + sp:subject
91 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 91 + [ sp:varName "wellBoreLogRun"^^xsd:string
92 - sp:subject 92 + ]
93 - [ sp:varName "serviceCompany"^^xsd:string 93 + ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ;
94 - ] 94 + sp:predicate rdf:type ;
95 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ; 95 + sp:subject _:b4
96 - sp:predicate rdf:type ; 96 + ] [ sp:object _:b5 ;
97 - sp:subject 97 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
98 - [ sp:varName "serviceCompany"^^xsd:string 98 + sp:subject _:b4
99 - ] 99 + ] [ sp:object _:b6 ;
100 - ] [ sp:object _:b4 ; 100 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
101 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#wellBoreLoggingTool> ; 101 + sp:subject _:b4
102 - sp:subject 102 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
103 - [ sp:varName "wellBoreLogRun"^^xsd:string 103 + sp:predicate rdf:type ;
104 - ] 104 + sp:subject _:b6
105 - ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ; 105 + ] [ sp:object
106 - sp:predicate rdf:type ; 106 + [ sp:varName "realMdTool"^^xsd:string
107 - sp:subject _:b4 107 + ] ;
108 - ] [ sp:object _:b5 ; 108 + sp:predicate
109 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 109 + [ sp:varName "lengthScaleMdTool"^^xsd:string
110 - sp:subject _:b4 110 + ] ;
111 - ] [ sp:object _:b6 ; 111 + sp:subject _:b6
112 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ; 112 + ] [ sp:object _:b7 ;
113 - sp:subject _:b4 113 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
114 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 114 + sp:subject _:b4
115 - sp:predicate rdf:type ; 115 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
116 - sp:subject _:b6 116 + sp:predicate rdf:type ;
117 - ] [ sp:object 117 + sp:subject _:b7
118 - [ sp:varName "realMdTool"^^xsd:string 118 + ] [ sp:object
119 - ] ; 119 + [ sp:varName "realTvdTool"^^xsd:string
120 - sp:predicate 120 + ] ;
121 - [ sp:varName "lengthScaleMdTool"^^xsd:string 121 + sp:predicate
122 - ] ; 122 + [ sp:varName "lengthScaleTvdTool"^^xsd:string
123 - sp:subject _:b6 123 + ] ;
124 - ] [ sp:object _:b7 ; 124 + sp:subject _:b7
125 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ; 125 + ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#WellBoreLoggingTool> ;
126 - sp:subject _:b4 126 + sp:predicate rdf:type ;
127 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 127 + sp:subject _:b5
128 - sp:predicate rdf:type ; 128 + ] [ sp:object
129 - sp:subject _:b7 129 + [ sp:varName "toolDescription"^^xsd:string
130 - ] [ sp:object 130 + ] ;
131 - [ sp:varName "realTvdTool"^^xsd:string 131 + sp:predicate rdfs:comment ;
132 - ] ; 132 + sp:subject _:b5
133 - sp:predicate 133 + ] [ sp:object _:b8 ;
134 - [ sp:varName "lengthScaleTvdTool"^^xsd:string 134 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ;
135 - ] ; 135 + sp:subject _:b2
136 - sp:subject _:b7 136 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
137 - ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#WellBoreLoggingTool> ; 137 + sp:predicate rdf:type ;
138 - sp:predicate rdf:type ; 138 + sp:subject _:b8
139 - sp:subject _:b5 139 + ] [ sp:object
140 - ] [ sp:object 140 + [ sp:varName "realMdTop"^^xsd:string
141 - [ sp:varName "toolDescription"^^xsd:string 141 + ] ;
142 - ] ; 142 + sp:predicate
143 - sp:predicate rdfs:comment ; 143 + [ sp:varName "lengthScaleMdTop"^^xsd:string
144 - sp:subject _:b5 144 + ] ;
145 - ] [ sp:object _:b8 ; 145 + sp:subject _:b8
146 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ; 146 + ] [ sp:object _:b9 ;
147 - sp:subject _:b2 147 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ;
148 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 148 + sp:subject _:b2
149 - sp:predicate rdf:type ; 149 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
150 - sp:subject _:b8 150 + sp:predicate rdf:type ;
151 - ] [ sp:object 151 + sp:subject _:b9
152 - [ sp:varName "realMdTop"^^xsd:string 152 + ] [ sp:object
153 - ] ; 153 + [ sp:varName "realMdBottom"^^xsd:string
154 - sp:predicate 154 + ] ;
155 - [ sp:varName "lengthScaleMdTop"^^xsd:string 155 + sp:predicate
156 - ] ; 156 + [ sp:varName "lengthScaleMdBottom"^^xsd:string
157 - sp:subject _:b8 157 + ] ;
158 - ] [ sp:object _:b9 ; 158 + sp:subject _:b9
159 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ; 159 + ] [ sp:object _:b10 ;
160 - sp:subject _:b2 160 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ;
161 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 161 + sp:subject _:b2
162 - sp:predicate rdf:type ; 162 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
163 - sp:subject _:b9 163 + sp:predicate rdf:type ;
164 - ] [ sp:object 164 + sp:subject _:b10
165 - [ sp:varName "realMdBottom"^^xsd:string 165 + ] [ sp:object
166 - ] ; 166 + [ sp:varName "realTvdTop"^^xsd:string
167 - sp:predicate 167 + ] ;
168 - [ sp:varName "lengthScaleMdBottom"^^xsd:string 168 + sp:predicate
169 - ] ; 169 + [ sp:varName "lengthScaleTvdTop"^^xsd:string
170 - sp:subject _:b9 170 + ] ;
171 - ] [ sp:object _:b10 ; 171 + sp:subject _:b10
172 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ; 172 + ] [ sp:object _:b11 ;
173 - sp:subject _:b2 173 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ;
174 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 174 + sp:subject _:b2
175 - sp:predicate rdf:type ; 175 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
176 - sp:subject _:b10 176 + sp:predicate rdf:type ;
177 - ] [ sp:object 177 + sp:subject _:b11
178 - [ sp:varName "realTvdTop"^^xsd:string 178 + ] [ sp:object
179 - ] ; 179 + [ sp:varName "realTvdBottom"^^xsd:string
180 - sp:predicate 180 + ] ;
181 - [ sp:varName "lengthScaleTvdTop"^^xsd:string 181 + sp:predicate
182 - ] ; 182 + [ sp:varName "lengthScaleTvdBottom"^^xsd:string
183 - sp:subject _:b10 183 + ] ;
184 - ] [ sp:object _:b11 ; 184 + sp:subject _:b11
185 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ; 185 + ]) ;
186 - sp:subject _:b2 186 + sp:where ([ sp:object
187 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 187 + [ sp:varName "nameWellBore"^^xsd:string
188 - sp:predicate rdf:type ; 188 + ] ;
189 - sp:subject _:b11 189 + sp:predicate ep-spin-lib:nameWellbore ;
190 - ] [ sp:object 190 + sp:subject spin:_this
191 - [ sp:varName "realTvdBottom"^^xsd:string 191 + ] [ sp:object
192 - ] ; 192 + [ sp:varName "dTimStart"^^xsd:string
193 - sp:predicate 193 + ] ;
194 - [ sp:varName "lengthScaleTvdBottom"^^xsd:string 194 + sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
195 - ] ; 195 + sp:subject spin:_this
196 - sp:subject _:b11 196 + ] [ sp:object
197 - ]) ; 197 + [ sp:varName "dailyTemporalPartOfAWellBore"^^xsd:string
198 - sp:where ([ sp:object 198 + ] ;
199 - [ sp:varName "nameWellBore"^^xsd:string 199 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
200 - ] ; 200 + sp:subject
201 - sp:predicate ep-spin-lib:nameWellbore ; 201 + [ sp:varName "dailyDrillingActivity"^^xsd:string
202 - sp:subject spin:_this 202 + ]
203 - ] [ sp:object 203 + ] [ sp:object
204 - [ sp:varName "dTimStart"^^xsd:string 204 + [ sp:varName "logInfo"^^xsd:string
205 - ] ; 205 + ] ;
206 - sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ; 206 + sp:predicate <http://www.witsml.org/schemas/1series#logInfoRef> ;
207 - sp:subject spin:_this 207 + sp:subject spin:_this
208 - ] [ sp:object 208 + ] [ sp:object
209 - [ sp:varName "dailyTemporalPartOfAWellBore"^^xsd:string 209 + [ sp:varName "runNumber"^^xsd:string
210 - ] ; 210 + ] ;
211 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 211 + sp:predicate <http://www.witsml.org/schemas/1series#runNumber> ;
212 - sp:subject 212 + sp:subject
213 - [ sp:varName "dailyDrillingActivity"^^xsd:string 213 + [ sp:varName "logInfo"^^xsd:string
214 - ] 214 + ]
215 - ] [ sp:object 215 + ] [ sp:object
216 - [ sp:varName "logInfo"^^xsd:string 216 + [ sp:varName "toolDescription"^^xsd:string
217 - ] ; 217 + ] ;
218 - sp:predicate <http://www.witsml.org/schemas/1series#logInfoRef> ; 218 + sp:predicate <http://www.witsml.org/schemas/1series#tool> ;
219 - sp:subject spin:_this 219 + sp:subject
220 - ] [ sp:object 220 + [ sp:varName "logInfo"^^xsd:string
221 - [ sp:varName "runNumber"^^xsd:string 221 + ]
222 - ] ; 222 + ] [ rdf:type sp:Optional ;
223 - sp:predicate <http://www.witsml.org/schemas/1series#runNumber> ; 223 + sp:elements ([ sp:object
224 - sp:subject 224 + [ sp:varName "dTimEnd"^^xsd:string
225 - [ sp:varName "logInfo"^^xsd:string 225 + ] ;
226 - ] 226 + sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
227 - ] [ sp:object 227 + sp:subject
228 - [ sp:varName "toolDescription"^^xsd:string 228 + [ sp:varName "logInfo"^^xsd:string
229 - ] ; 229 + ]
230 - sp:predicate <http://www.witsml.org/schemas/1series#tool> ; 230 + ])
231 - sp:subject 231 + ] [ sp:object
232 - [ sp:varName "logInfo"^^xsd:string 232 + [ sp:varName "mdTop"^^xsd:string
233 - ] 233 + ] ;
234 - ] [ rdf:type sp:Optional ; 234 + sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
235 - sp:elements ([ sp:object 235 + sp:subject
236 - [ sp:varName "dTimEnd"^^xsd:string 236 + [ sp:varName "logInfo"^^xsd:string
237 - ] ; 237 + ]
238 - sp:predicate <http://www.witsml.org/schemas/1series#dTim> ; 238 + ] [ sp:object
239 - sp:subject 239 + [ sp:varName "uomMdTop"^^xsd:string
240 - [ sp:varName "logInfo"^^xsd:string 240 + ] ;
241 - ] 241 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
242 - ]) 242 + sp:subject
243 - ] [ sp:object 243 + [ sp:varName "mdTop"^^xsd:string
244 - [ sp:varName "mdTop"^^xsd:string 244 + ]
245 - ] ; 245 + ] [ sp:object
246 - sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ; 246 + [ sp:varName "realMdTop"^^xsd:string
247 - sp:subject 247 + ] ;
248 - [ sp:varName "logInfo"^^xsd:string 248 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
249 - ] 249 + sp:subject
250 - ] [ sp:object 250 + [ sp:varName "mdTop"^^xsd:string
251 - [ sp:varName "uomMdTop"^^xsd:string 251 + ]
252 - ] ; 252 + ] [ sp:object
253 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 253 + [ sp:varName "mdBottom"^^xsd:string
254 - sp:subject 254 + ] ;
255 - [ sp:varName "mdTop"^^xsd:string 255 + sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
256 - ] 256 + sp:subject
257 - ] [ sp:object 257 + [ sp:varName "logInfo"^^xsd:string
258 - [ sp:varName "realMdTop"^^xsd:string 258 + ]
259 - ] ; 259 + ] [ sp:object
260 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 260 + [ sp:varName "uomMdBottom"^^xsd:string
261 - sp:subject 261 + ] ;
262 - [ sp:varName "mdTop"^^xsd:string 262 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
263 - ] 263 + sp:subject
264 - ] [ sp:object 264 + [ sp:varName "mdBottom"^^xsd:string
265 - [ sp:varName "mdBottom"^^xsd:string 265 + ]
266 - ] ; 266 + ] [ sp:object
267 - sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ; 267 + [ sp:varName "realMdBottom"^^xsd:string
268 - sp:subject 268 + ] ;
269 - [ sp:varName "logInfo"^^xsd:string 269 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
270 - ] 270 + sp:subject
271 - ] [ sp:object 271 + [ sp:varName "mdBottom"^^xsd:string
272 - [ sp:varName "uomMdBottom"^^xsd:string 272 + ]
273 - ] ; 273 + ] [ rdf:type sp:Optional ;
274 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 274 + sp:elements ([ sp:object
275 - sp:subject 275 + [ sp:varName "tvdTop"^^xsd:string
276 - [ sp:varName "mdBottom"^^xsd:string 276 + ] ;
277 - ] 277 + sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ;
278 - ] [ sp:object 278 + sp:subject
279 - [ sp:varName "realMdBottom"^^xsd:string 279 + [ sp:varName "logInfo"^^xsd:string
280 - ] ; 280 + ]
281 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 281 + ] [ sp:object
282 - sp:subject 282 + [ sp:varName "uomTvdTop"^^xsd:string
283 - [ sp:varName "mdBottom"^^xsd:string 283 + ] ;
284 - ] 284 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
285 - ] [ rdf:type sp:Optional ; 285 + sp:subject
286 - sp:elements ([ sp:object 286 + [ sp:varName "tvdTop"^^xsd:string
287 - [ sp:varName "tvdTop"^^xsd:string 287 + ]
288 - ] ; 288 + ] [ sp:object
289 - sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ; 289 + [ sp:varName "realTvdTop"^^xsd:string
290 - sp:subject 290 + ] ;
291 - [ sp:varName "logInfo"^^xsd:string 291 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
292 - ] 292 + sp:subject
293 - ] [ sp:object 293 + [ sp:varName "tvdTop"^^xsd:string
294 - [ sp:varName "uomTvdTop"^^xsd:string 294 + ]
295 - ] ; 295 + ])
296 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 296 + ] [ rdf:type sp:Optional ;
297 - sp:subject 297 + sp:elements ([ sp:object
298 - [ sp:varName "tvdTop"^^xsd:string 298 + [ sp:varName "tvdBottom"^^xsd:string
299 - ] 299 + ] ;
300 - ] [ sp:object 300 + sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ;
301 - [ sp:varName "realTvdTop"^^xsd:string 301 + sp:subject
302 - ] ; 302 + [ sp:varName "logInfo"^^xsd:string
303 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 303 + ]
304 - sp:subject 304 + ] [ sp:object
305 - [ sp:varName "tvdTop"^^xsd:string 305 + [ sp:varName "uomTvdBottom"^^xsd:string
306 - ] 306 + ] ;
307 - ]) 307 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
308 - ] [ rdf:type sp:Optional ; 308 + sp:subject
309 - sp:elements ([ sp:object 309 + [ sp:varName "tvdBottom"^^xsd:string
310 - [ sp:varName "tvdBottom"^^xsd:string 310 + ]
311 - ] ; 311 + ] [ sp:object
312 - sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ; 312 + [ sp:varName "realTvdBottom"^^xsd:string
313 - sp:subject 313 + ] ;
314 - [ sp:varName "logInfo"^^xsd:string 314 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
315 - ] 315 + sp:subject
316 - ] [ sp:object 316 + [ sp:varName "tvdBottom"^^xsd:string
317 - [ sp:varName "uomTvdBottom"^^xsd:string 317 + ]
318 - ] ; 318 + ])
319 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 319 + ] [ sp:object
320 - sp:subject 320 + [ sp:varName "nameServiceCompany"^^xsd:string
321 - [ sp:varName "tvdBottom"^^xsd:string 321 + ] ;
322 - ] 322 + sp:predicate <http://www.witsml.org/schemas/1series#serviceCompany> ;
323 - ] [ sp:object 323 + sp:subject
324 - [ sp:varName "realTvdBottom"^^xsd:string 324 + [ sp:varName "logInfo"^^xsd:string
325 - ] ; 325 + ]
326 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 326 + ] [ sp:object
327 - sp:subject 327 + [ sp:varName "mdTempTool"^^xsd:string
328 - [ sp:varName "tvdBottom"^^xsd:string 328 + ] ;
329 - ] 329 + sp:predicate <http://www.witsml.org/schemas/1series#mdTempToolRef> ;
330 - ]) 330 + sp:subject
331 - ] [ sp:object 331 + [ sp:varName "logInfo"^^xsd:string
332 - [ sp:varName "nameServiceCompany"^^xsd:string 332 + ]
333 - ] ; 333 + ] [ sp:object
334 - sp:predicate <http://www.witsml.org/schemas/1series#serviceCompany> ; 334 + [ sp:varName "uomMdTool"^^xsd:string
335 - sp:subject 335 + ] ;
336 - [ sp:varName "logInfo"^^xsd:string 336 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
337 - ] 337 + sp:subject
338 - ] [ sp:object 338 + [ sp:varName "mdTempTool"^^xsd:string
339 - [ sp:varName "mdTempTool"^^xsd:string 339 + ]
340 - ] ; 340 + ] [ sp:object
341 - sp:predicate <http://www.witsml.org/schemas/1series#mdTempToolRef> ; 341 + [ sp:varName "realMdTool"^^xsd:string
342 - sp:subject 342 + ] ;
343 - [ sp:varName "logInfo"^^xsd:string 343 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
344 - ] 344 + sp:subject
345 - ] [ sp:object 345 + [ sp:varName "mdTempTool"^^xsd:string
346 - [ sp:varName "uomMdTool"^^xsd:string 346 + ]
347 - ] ; 347 + ] [ rdf:type sp:Optional ;
348 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 348 + sp:elements ([ sp:object
349 - sp:subject 349 + [ sp:varName "tvdTempTool"^^xsd:string
350 - [ sp:varName "mdTempTool"^^xsd:string 350 + ] ;
351 - ] 351 + sp:predicate <http://www.witsml.org/schemas/1series#tvdTempToolRef> ;
352 - ] [ sp:object 352 + sp:subject
353 - [ sp:varName "realMdTool"^^xsd:string 353 + [ sp:varName "logInfo"^^xsd:string
354 - ] ; 354 + ]
355 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 355 + ] [ sp:object
356 - sp:subject 356 + [ sp:varName "uomTvdTool"^^xsd:string
357 - [ sp:varName "mdTempTool"^^xsd:string 357 + ] ;
358 - ] 358 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
359 - ] [ rdf:type sp:Optional ; 359 + sp:subject
360 - sp:elements ([ sp:object 360 + [ sp:varName "tvdTempTool"^^xsd:string
361 - [ sp:varName "tvdTempTool"^^xsd:string 361 + ]
362 - ] ; 362 + ] [ sp:object
363 - sp:predicate <http://www.witsml.org/schemas/1series#tvdTempToolRef> ; 363 + [ sp:varName "realTvdTool"^^xsd:string
364 - sp:subject 364 + ] ;
365 - [ sp:varName "logInfo"^^xsd:string 365 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
366 - ] 366 + sp:subject
367 - ] [ sp:object 367 + [ sp:varName "tvdTempTool"^^xsd:string
368 - [ sp:varName "uomTvdTool"^^xsd:string 368 + ]
369 - ] ; 369 + ])
370 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 370 + ] [ rdf:type sp:Bind ;
371 - sp:subject 371 + sp:expression
372 - [ sp:varName "tvdTempTool"^^xsd:string 372 + [ rdf:type ep-spin-lib:normalizeString ;
373 - ] 373 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
374 - ] [ sp:object 374 + ]
375 - [ sp:varName "realTvdTool"^^xsd:string 375 + ] ;
376 - ] ; 376 + sp:variable
377 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 377 + [ sp:varName "normalizedWellBoreName"^^xsd:string
378 - sp:subject 378 + ]
379 - [ sp:varName "tvdTempTool"^^xsd:string 379 + ] [ rdf:type sp:Bind ;
380 - ] 380 + sp:expression
381 - ]) 381 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
382 - ] [ rdf:type sp:Bind ; 382 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
383 - sp:expression 383 + ] ;
384 - [ rdf:type ep-spin-lib:normalizeString ; 384 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
385 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 385 + ]
386 - ] 386 + ] ;
387 - ] ; 387 + sp:variable
388 - sp:variable 388 + [ sp:varName "dailyDrillingActivity"^^xsd:string
389 - [ sp:varName "normalizedWellBoreName"^^xsd:string 389 + ]
390 - ] 390 + ] [ rdf:type sp:Bind ;
391 - ] [ rdf:type sp:Bind ; 391 + sp:expression
392 - sp:expression 392 + [ rdf:type afn:localname ;
393 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 393 + sp:arg1 [ sp:varName "logInfo"^^xsd:string
394 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 394 + ]
395 - ] ; 395 + ] ;
396 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 396 + sp:variable
397 - ] 397 + [ sp:varName "localname"^^xsd:string
398 - ] ; 398 + ]
399 - sp:variable 399 + ] [ rdf:type sp:Bind ;
400 - [ sp:varName "dailyDrillingActivity"^^xsd:string 400 + sp:expression
401 - ] 401 + [ rdf:type ep-spin-lib:buildWellBoreLogRunURI ;
402 - ] [ rdf:type sp:Bind ; 402 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
403 - sp:expression 403 + ] ;
404 - [ rdf:type afn:localname ; 404 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
405 - sp:arg1 [ sp:varName "logInfo"^^xsd:string 405 + ] ;
406 - ] 406 + sp:arg3 [ sp:varName "localname"^^xsd:string
407 - ] ; 407 + ]
408 - sp:variable 408 + ] ;
409 - [ sp:varName "localname"^^xsd:string 409 + sp:variable
410 - ] 410 + [ sp:varName "wellBoreLogRun"^^xsd:string
411 - ] [ rdf:type sp:Bind ; 411 + ]
412 - sp:expression 412 + ] [ rdf:type sp:Bind ;
413 - [ rdf:type ep-spin-lib:buildWellBoreLogRunURI ; 413 + sp:expression
414 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 414 + [ rdf:type ep-spin-lib:selectLengthScale ;
415 - ] ; 415 + sp:arg1 [ sp:varName "uomMdTop"^^xsd:string
416 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 416 + ]
417 - ] ; 417 + ] ;
418 - sp:arg3 [ sp:varName "localname"^^xsd:string 418 + sp:variable
419 - ] 419 + [ sp:varName "lengthScaleMdTop"^^xsd:string
420 - ] ; 420 + ]
421 - sp:variable 421 + ] [ rdf:type sp:Bind ;
422 - [ sp:varName "wellBoreLogRun"^^xsd:string 422 + sp:expression
423 - ] 423 + [ rdf:type ep-spin-lib:selectLengthScale ;
424 - ] [ rdf:type sp:Bind ; 424 + sp:arg1 [ sp:varName "uomTvdTop"^^xsd:string
425 - sp:expression 425 + ]
426 - [ rdf:type ep-spin-lib:selectLengthScale ; 426 + ] ;
427 - sp:arg1 [ sp:varName "uomMdTop"^^xsd:string 427 + sp:variable
428 - ] 428 + [ sp:varName "lengthScaleTvdTop"^^xsd:string
429 - ] ; 429 + ]
430 - sp:variable 430 + ] [ rdf:type sp:Bind ;
431 - [ sp:varName "lengthScaleMdTop"^^xsd:string 431 + sp:expression
432 - ] 432 + [ rdf:type ep-spin-lib:selectLengthScale ;
433 - ] [ rdf:type sp:Bind ; 433 + sp:arg1 [ sp:varName "uomMdBottom"^^xsd:string
434 - sp:expression 434 + ]
435 - [ rdf:type ep-spin-lib:selectLengthScale ; 435 + ] ;
436 - sp:arg1 [ sp:varName "uomTvdTop"^^xsd:string 436 + sp:variable
437 - ] 437 + [ sp:varName "lengthScaleMdBottom"^^xsd:string
438 - ] ; 438 + ]
439 - sp:variable 439 + ] [ rdf:type sp:Bind ;
440 - [ sp:varName "lengthScaleTvdTop"^^xsd:string 440 + sp:expression
441 - ] 441 + [ rdf:type ep-spin-lib:selectLengthScale ;
442 - ] [ rdf:type sp:Bind ; 442 + sp:arg1 [ sp:varName "uomTvdBottom"^^xsd:string
443 - sp:expression 443 + ]
444 - [ rdf:type ep-spin-lib:selectLengthScale ; 444 + ] ;
445 - sp:arg1 [ sp:varName "uomMdBottom"^^xsd:string 445 + sp:variable
446 - ] 446 + [ sp:varName "lengthScaleTvdBottom"^^xsd:string
447 - ] ; 447 + ]
448 - sp:variable 448 + ] [ rdf:type sp:Bind ;
449 - [ sp:varName "lengthScaleMdBottom"^^xsd:string 449 + sp:expression
450 - ] 450 + [ rdf:type ep-spin-lib:selectLengthScale ;
451 - ] [ rdf:type sp:Bind ; 451 + sp:arg1 [ sp:varName "uomMdTool"^^xsd:string
452 - sp:expression 452 + ]
453 - [ rdf:type ep-spin-lib:selectLengthScale ; 453 + ] ;
454 - sp:arg1 [ sp:varName "uomTvdBottom"^^xsd:string 454 + sp:variable
455 - ] 455 + [ sp:varName "lengthScaleMdTool"^^xsd:string
456 - ] ; 456 + ]
457 - sp:variable 457 + ] [ rdf:type sp:Bind ;
458 - [ sp:varName "lengthScaleTvdBottom"^^xsd:string 458 + sp:expression
459 - ] 459 + [ rdf:type ep-spin-lib:selectLengthScale ;
460 - ] [ rdf:type sp:Bind ; 460 + sp:arg1 [ sp:varName "uomTvdTool"^^xsd:string
461 - sp:expression 461 + ]
462 - [ rdf:type ep-spin-lib:selectLengthScale ; 462 + ] ;
463 - sp:arg1 [ sp:varName "uomMdTool"^^xsd:string 463 + sp:variable
464 - ] 464 + [ sp:varName "lengthScaleTvdTool"^^xsd:string
465 - ] ; 465 + ]
466 - sp:variable 466 + ])
467 - [ sp:varName "lengthScaleMdTool"^^xsd:string 467 + ] ;
468 - ] 468 + spin:rule
469 - ] [ rdf:type sp:Bind ; 469 + [ rdf:type sp:Construct ;
470 - sp:expression 470 + rdfs:comment "STEP 191 Create a well bore log activity - circulating temperature"^^xsd:string ;
471 - [ rdf:type ep-spin-lib:selectLengthScale ; 471 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreWithCirculation> ;
472 - sp:arg1 [ sp:varName "uomTvdTool"^^xsd:string 472 + sp:predicate rdf:type ;
473 - ] 473 + sp:subject _:b12
474 - ] ; 474 + ] [ sp:object _:b13 ;
475 - sp:variable 475 + sp:predicate <http://www.reportinghub.no/ep/schema/well#bottomHoleTemperature> ;
476 - [ sp:varName "lengthScaleTvdTool"^^xsd:string 476 + sp:subject _:b12
477 - ] 477 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
478 - ] [ rdf:type sp:Bind ; 478 + sp:predicate rdf:type ;
479 - sp:expression 479 + sp:subject _:b13
480 - [ rdf:type ep-spin-lib:normalizeString ; 480 + ] [ sp:object
481 - sp:arg1 [ sp:varName "nameServiceCompany"^^xsd:string 481 + [ sp:varName "realCirculating"^^xsd:string
482 - ] 482 + ] ;
483 - ] ; 483 + sp:predicate
484 - sp:variable 484 + [ sp:varName "temperatureScaleCirculating"^^xsd:string
485 - [ sp:varName "normalizedNameServiceCompany"^^xsd:string 485 + ] ;
486 - ] 486 + sp:subject _:b13
487 - ] [ rdf:type sp:Bind ; 487 + ] [ sp:object
488 - sp:expression 488 + [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string
489 - [ rdf:type rhspin:companyById ; 489 + ] ;
490 - arg:id [ sp:varName "normalizedNameServiceCompany"^^xsd:string 490 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
491 - ] 491 + sp:subject _:b12
492 - ] ; 492 + ]) ;
493 - sp:variable 493 + sp:where ([ sp:object
494 - [ sp:varName "serviceCompany"^^xsd:string 494 + [ sp:varName "nameWellBore"^^xsd:string
495 - ] 495 + ] ;
496 - ]) 496 + sp:predicate ep-spin-lib:nameWellbore ;
497 - ] ; 497 + sp:subject spin:_this
498 - spin:rule 498 + ] [ sp:object
499 - [ rdf:type sp:Construct ; 499 + [ sp:varName "dTimStart"^^xsd:string
500 - rdfs:comment "STEP 191 Create a well bore log activity - circulating temperature"^^xsd:string ; 500 + ] ;
501 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreWithCirculation> ; 501 + sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
502 - sp:predicate rdf:type ; 502 + sp:subject spin:_this
503 - sp:subject _:b12 503 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ;
504 - ] [ sp:object _:b13 ; 504 + sp:predicate rdf:type ;
505 - sp:predicate <http://www.reportinghub.no/ep/schema/well#bottomHoleTemperature> ; 505 + sp:subject
506 - sp:subject _:b12 506 + [ sp:varName "wellBoreLogRun"^^xsd:string
507 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 507 + ]
508 - sp:predicate rdf:type ; 508 + ] [ sp:object
509 - sp:subject _:b13 509 + [ sp:varName "wellBoreLogRun"^^xsd:string
510 - ] [ sp:object 510 + ] ;
511 - [ sp:varName "realCirculating"^^xsd:string 511 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
512 - ] ; 512 + sp:subject
513 - sp:predicate 513 + [ sp:varName "dailyDrillingActivity"^^xsd:string
514 - [ sp:varName "temperatureScaleCirculating"^^xsd:string 514 + ]
515 - ] ; 515 + ] [ sp:object
516 - sp:subject _:b13 516 + [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string
517 - ] [ sp:object 517 + ] ;
518 - [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string 518 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
519 - ] ; 519 + sp:subject
520 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 520 + [ sp:varName "wellBoreLogRun"^^xsd:string
521 - sp:subject _:b12 521 + ]
522 - ]) ; 522 + ] [ sp:object
523 - sp:where ([ sp:object 523 + [ sp:varName "tempBHCT"^^xsd:string
524 - [ sp:varName "nameWellBore"^^xsd:string 524 + ] ;
525 - ] ; 525 + sp:predicate <http://www.witsml.org/schemas/1series#tempBHCTRef> ;
526 - sp:predicate ep-spin-lib:nameWellbore ; 526 + sp:subject
527 - sp:subject spin:_this 527 + [ sp:varName "logInfo"^^xsd:string
528 - ] [ sp:object 528 + ]
529 - [ sp:varName "dTimStart"^^xsd:string 529 + ] [ sp:object
530 - ] ; 530 + [ sp:varName "uomCirculating"^^xsd:string
531 - sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ; 531 + ] ;
532 - sp:subject spin:_this 532 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
533 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ; 533 + sp:subject
534 - sp:predicate rdf:type ; 534 + [ sp:varName "tempBHCT"^^xsd:string
535 - sp:subject 535 + ]
536 - [ sp:varName "wellBoreLogRun"^^xsd:string 536 + ] [ sp:object
537 - ] 537 + [ sp:varName "realCirculating"^^xsd:string
538 - ] [ sp:object 538 + ] ;
539 - [ sp:varName "wellBoreLogRun"^^xsd:string 539 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
540 - ] ; 540 + sp:subject
541 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 541 + [ sp:varName "tempBHCT"^^xsd:string
542 - sp:subject 542 + ]
543 - [ sp:varName "dailyDrillingActivity"^^xsd:string 543 + ] [ rdf:type sp:Bind ;
544 - ] 544 + sp:expression
545 - ] [ sp:object 545 + [ rdf:type ep-spin-lib:normalizeString ;
546 - [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string 546 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
547 - ] ; 547 + ]
548 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 548 + ] ;
549 - sp:subject 549 + sp:variable
550 - [ sp:varName "wellBoreLogRun"^^xsd:string 550 + [ sp:varName "normalizedWellBoreName"^^xsd:string
551 - ] 551 + ]
552 - ] [ sp:object 552 + ] [ rdf:type sp:Bind ;
553 - [ sp:varName "tempBHCT"^^xsd:string 553 + sp:expression
554 - ] ; 554 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
555 - sp:predicate <http://www.witsml.org/schemas/1series#tempBHCTRef> ; 555 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
556 - sp:subject 556 + ] ;
557 - [ sp:varName "logInfo"^^xsd:string 557 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
558 - ] 558 + ]
559 - ] [ sp:object 559 + ] ;
560 - [ sp:varName "uomCirculating"^^xsd:string 560 + sp:variable
561 - ] ; 561 + [ sp:varName "dailyDrillingActivity"^^xsd:string
562 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 562 + ]
563 - sp:subject 563 + ] [ rdf:type sp:Bind ;
564 - [ sp:varName "tempBHCT"^^xsd:string 564 + sp:expression
565 - ] 565 + [ rdf:type ep-spin-lib:selectTemperatureScale ;
566 - ] [ sp:object 566 + sp:arg1 [ sp:varName "uomCirculating"^^xsd:string
567 - [ sp:varName "realCirculating"^^xsd:string 567 + ]
568 - ] ; 568 + ] ;
569 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 569 + sp:variable
570 - sp:subject 570 + [ sp:varName "temperatureScaleCirculating"^^xsd:string
571 - [ sp:varName "tempBHCT"^^xsd:string 571 + ]
572 - ] 572 + ])
573 - ] [ rdf:type sp:Bind ; 573 + ] ;
574 - sp:expression 574 + spin:rule
575 - [ rdf:type ep-spin-lib:normalizeString ; 575 + [ rdf:type sp:Construct ;
576 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 576 + rdfs:comment "STEP 192 Create a well bore log activity - static temperature"^^xsd:string ;
577 - ] 577 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreWithoutCirculation> ;
578 - ] ; 578 + sp:predicate rdf:type ;
579 - sp:variable 579 + sp:subject _:b14
580 - [ sp:varName "normalizedWellBoreName"^^xsd:string 580 + ] [ sp:object _:b15 ;
581 - ] 581 + sp:predicate <http://www.reportinghub.no/ep/schema/well#bottomHoleTemperature> ;
582 - ] [ rdf:type sp:Bind ; 582 + sp:subject _:b14
583 - sp:expression 583 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
584 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 584 + sp:predicate rdf:type ;
585 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 585 + sp:subject _:b15
586 - ] ; 586 + ] [ sp:object
587 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 587 + [ sp:varName "realStatic"^^xsd:string
588 - ] 588 + ] ;
589 - ] ; 589 + sp:predicate
590 - sp:variable 590 + [ sp:varName "temperatureScaleStatic"^^xsd:string
591 - [ sp:varName "dailyDrillingActivity"^^xsd:string 591 + ] ;
592 - ] 592 + sp:subject _:b15
593 - ] [ rdf:type sp:Bind ; 593 + ] [ sp:object _:b16 ;
594 - sp:expression 594 + sp:predicate rdf:type ;
595 - [ rdf:type ep-spin-lib:selectTemperatureScale ; 595 + sp:subject _:b14
596 - sp:arg1 [ sp:varName "uomCirculating"^^xsd:string 596 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
597 - ] 597 + sp:predicate rdf:type ;
598 - ] ; 598 + sp:subject _:b16
599 - sp:variable 599 + ] [ sp:object
600 - [ sp:varName "temperatureScaleCirculating"^^xsd:string 600 + [ sp:varName "realDuration"^^xsd:string
601 - ] 601 + ] ;
602 - ]) 602 + sp:predicate
603 - ] ; 603 + [ sp:varName "durationScale"^^xsd:string
604 - spin:rule 604 + ] ;
605 - [ rdf:type sp:Construct ; 605 + sp:subject _:b16
606 - rdfs:comment "STEP 192 Create a well bore log activity - static temperature"^^xsd:string ; 606 + ] [ sp:object
607 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreWithoutCirculation> ; 607 + [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string
608 - sp:predicate rdf:type ; 608 + ] ;
609 - sp:subject _:b14 609 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
610 - ] [ sp:object _:b15 ; 610 + sp:subject _:b14
611 - sp:predicate <http://www.reportinghub.no/ep/schema/well#bottomHoleTemperature> ; 611 + ]) ;
612 - sp:subject _:b14 612 + sp:where ([ sp:object
613 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; 613 + [ sp:varName "nameWellBore"^^xsd:string
614 - sp:predicate rdf:type ; 614 + ] ;
615 - sp:subject _:b15 615 + sp:predicate ep-spin-lib:nameWellbore ;
616 - ] [ sp:object 616 + sp:subject spin:_this
617 - [ sp:varName "realStatic"^^xsd:string 617 + ] [ sp:object
618 - ] ; 618 + [ sp:varName "dTimStart"^^xsd:string
619 - sp:predicate 619 + ] ;
620 - [ sp:varName "temperatureScaleStatic"^^xsd:string 620 + sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
621 - ] ; 621 + sp:subject spin:_this
622 - sp:subject _:b15 622 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ;
623 - ] [ sp:object _:b16 ; 623 + sp:predicate rdf:type ;
624 - sp:predicate rdf:type ; 624 + sp:subject
625 - sp:subject _:b14 625 + [ sp:varName "wellBoreLogRun"^^xsd:string
626 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ; 626 + ]
627 - sp:predicate rdf:type ; 627 + ] [ sp:object
628 - sp:subject _:b16 628 + [ sp:varName "wellBoreLogRun"^^xsd:string
629 - ] [ sp:object 629 + ] ;
630 - [ sp:varName "realDuration"^^xsd:string 630 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
631 - ] ; 631 + sp:subject
632 - sp:predicate 632 + [ sp:varName "dailyDrillingActivity"^^xsd:string
633 - [ sp:varName "durationScale"^^xsd:string 633 + ]
634 - ] ; 634 + ] [ sp:object
635 - sp:subject _:b16 635 + [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string
636 - ] [ sp:object 636 + ] ;
637 - [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string 637 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
638 - ] ; 638 + sp:subject
639 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 639 + [ sp:varName "wellBoreLogRun"^^xsd:string
640 - sp:subject _:b14 640 + ]
641 - ]) ; 641 + ] [ rdf:type sp:Optional ;
642 - sp:where ([ sp:object 642 + sp:elements ([ sp:object
643 - [ sp:varName "nameWellBore"^^xsd:string 643 + [ sp:varName "eTimStatic"^^xsd:string
644 - ] ; 644 + ] ;
645 - sp:predicate ep-spin-lib:nameWellbore ; 645 + sp:predicate <http://www.witsml.org/schemas/1series#eTimStaticRef> ;
646 - sp:subject spin:_this 646 + sp:subject
647 - ] [ sp:object 647 + [ sp:varName "logInfo"^^xsd:string
648 - [ sp:varName "dTimStart"^^xsd:string 648 + ]
649 - ] ; 649 + ] [ sp:object
650 - sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ; 650 + [ sp:varName "uomDuration"^^xsd:string
651 - sp:subject spin:_this 651 + ] ;
652 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreLogRun> ; 652 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
653 - sp:predicate rdf:type ; 653 + sp:subject
654 - sp:subject 654 + [ sp:varName "eTimStatic"^^xsd:string
655 - [ sp:varName "wellBoreLogRun"^^xsd:string 655 + ]
656 - ] 656 + ] [ sp:object
657 - ] [ sp:object 657 + [ sp:varName "realDuration"^^xsd:string
658 - [ sp:varName "wellBoreLogRun"^^xsd:string 658 + ] ;
659 - ] ; 659 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
660 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 660 + sp:subject
661 - sp:subject 661 + [ sp:varName "eTimStatic"^^xsd:string
662 - [ sp:varName "dailyDrillingActivity"^^xsd:string 662 + ]
663 - ] 663 + ])
664 - ] [ sp:object 664 + ] [ sp:object
665 - [ sp:varName "loggedTemporalPartOfAWellBore"^^xsd:string 665 + [ sp:varName "tempBHST"^^xsd:string
666 - ] ; 666 + ] ;
667 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 667 + sp:predicate <http://www.witsml.org/schemas/1series#tempBHSTRef> ;
668 - sp:subject 668 + sp:subject
669 - [ sp:varName "wellBoreLogRun"^^xsd:string 669 + [ sp:varName "logInfo"^^xsd:string
670 - ] 670 + ]
671 - ] [ rdf:type sp:Optional ; 671 + ] [ sp:object
672 - sp:elements ([ sp:object 672 + [ sp:varName "uomStatic"^^xsd:string
673 - [ sp:varName "eTimStatic"^^xsd:string 673 + ] ;
674 - ] ; 674 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
675 - sp:predicate <http://www.witsml.org/schemas/1series#eTimStaticRef> ; 675 + sp:subject
676 - sp:subject 676 + [ sp:varName "tempBHST"^^xsd:string
677 - [ sp:varName "logInfo"^^xsd:string 677 + ]
678 - ] 678 + ] [ sp:object
679 - ] [ sp:object 679 + [ sp:varName "realStatic"^^xsd:string
680 - [ sp:varName "uomDuration"^^xsd:string 680 + ] ;
681 - ] ; 681 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
682 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 682 + sp:subject
683 - sp:subject 683 + [ sp:varName "tempBHST"^^xsd:string
684 - [ sp:varName "eTimStatic"^^xsd:string 684 + ]
685 - ] 685 + ] [ rdf:type sp:Bind ;
686 - ] [ sp:object 686 + sp:expression
687 - [ sp:varName "realDuration"^^xsd:string 687 + [ rdf:type ep-spin-lib:normalizeString ;
688 - ] ; 688 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
689 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 689 + ]
690 - sp:subject 690 + ] ;
691 - [ sp:varName "eTimStatic"^^xsd:string 691 + sp:variable
692 - ] 692 + [ sp:varName "normalizedWellBoreName"^^xsd:string
693 - ]) 693 + ]
694 - ] [ sp:object 694 + ] [ rdf:type sp:Bind ;
695 - [ sp:varName "tempBHST"^^xsd:string 695 + sp:expression
696 - ] ; 696 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
697 - sp:predicate <http://www.witsml.org/schemas/1series#tempBHSTRef> ; 697 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
698 - sp:subject 698 + ] ;
699 - [ sp:varName "logInfo"^^xsd:string 699 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
700 - ] 700 + ]
701 - ] [ sp:object 701 + ] ;
702 - [ sp:varName "uomStatic"^^xsd:string 702 + sp:variable
703 - ] ; 703 + [ sp:varName "dailyDrillingActivity"^^xsd:string
704 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 704 + ]
705 - sp:subject 705 + ] [ rdf:type sp:Bind ;
706 - [ sp:varName "tempBHST"^^xsd:string 706 + sp:expression
707 - ] 707 + [ rdf:type ep-spin-lib:selectTimeDurationScale ;
708 - ] [ sp:object 708 + sp:arg1 [ sp:varName "uomDuration"^^xsd:string
709 - [ sp:varName "realStatic"^^xsd:string 709 + ]
710 - ] ; 710 + ] ;
711 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 711 + sp:variable
712 - sp:subject 712 + [ sp:varName "durationScale"^^xsd:string
713 - [ sp:varName "tempBHST"^^xsd:string 713 + ]
714 - ] 714 + ] [ rdf:type sp:Bind ;
715 - ] [ rdf:type sp:Bind ; 715 + sp:expression
716 - sp:expression 716 + [ rdf:type ep-spin-lib:selectTemperatureScale ;
717 - [ rdf:type ep-spin-lib:normalizeString ; 717 + sp:arg1 [ sp:varName "uomStatic"^^xsd:string
718 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 718 + ]
719 - ] 719 + ] ;
720 - ] ; 720 + sp:variable
721 - sp:variable 721 + [ sp:varName "temperatureScaleStatic"^^xsd:string
722 - [ sp:varName "normalizedWellBoreName"^^xsd:string 722 + ]
723 - ] 723 + ])
724 - ] [ rdf:type sp:Bind ; 724 + ] .
725 - sp:expression
726 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
727 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
728 - ] ;
729 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
730 - ]
731 - ] ;
732 - sp:variable
733 - [ sp:varName "dailyDrillingActivity"^^xsd:string
734 - ]
735 - ] [ rdf:type sp:Bind ;
736 - sp:expression
737 - [ rdf:type ep-spin-lib:selectTimeDurationScale ;
738 - sp:arg1 [ sp:varName "uomDuration"^^xsd:string
739 - ]
740 - ] ;
741 - sp:variable
742 - [ sp:varName "durationScale"^^xsd:string
743 - ]
744 - ] [ rdf:type sp:Bind ;
745 - sp:expression
746 - [ rdf:type ep-spin-lib:selectTemperatureScale ;
747 - sp:arg1 [ sp:varName "uomStatic"^^xsd:string
748 - ]
749 - ] ;
750 - sp:variable
751 - [ sp:varName "temperatureScaleStatic"^^xsd:string
752 - ]
753 - ])
754 - ] .
......
1 -# Saved by TopBraid on Mon Oct 03 12:54:15 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo 1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
2 +# imports: http://spinrdf.org/spin
3 # imports: http://www.reportinghub.no/ep/schema/1.0/organization 3 # imports: http://www.reportinghub.no/ep/schema/1.0/organization
4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
5 # imports: http://www.witsml.org/schemas/1series 5 # imports: http://www.witsml.org/schemas/1series
6 -# imports: http://spinrdf.org/spin
7 6
8 @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . 7 @prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
9 @prefix arg: <http://spinrdf.org/arg#> . 8 @prefix arg: <http://spinrdf.org/arg#> .
...@@ -26,35 +25,93 @@ ...@@ -26,35 +25,93 @@
26 25
27 <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> 26 <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
28 rdf:type owl:Ontology ; 27 rdf:type owl:Ontology ;
29 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://spinrdf.org/spin> ; 28 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
30 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 29 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
31 30
32 ddr:Obj_drillReport 31 ddr:Obj_drillReport
33 spin:rule 32 spin:rule
34 [ rdf:type sp:Construct ; 33 [ rdf:type sp:Construct ;
34 + rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
35 + sp:templates ([ sp:object _:b1 ;
36 + sp:predicate ep-activity:onRig ;
37 + sp:subject _:b2
38 + ] [ sp:object ep-facility:TemporalPartOfARig ;
39 + sp:predicate rdf:type ;
40 + sp:subject _:b1
41 + ] [ sp:object _:b3 ;
42 + sp:predicate ep-core:temporalPartOf ;
43 + sp:subject _:b1
44 + ] [ sp:object ep-facility:Rig ;
45 + sp:predicate rdf:type ;
46 + sp:subject _:b3
47 + ]) ;
48 + sp:where ([ sp:object _:b4 ;
49 + sp:predicate ep-spin-lib:nameWellbore ;
50 + sp:subject spin:_this
51 + ] [ sp:object _:b5 ;
52 + sp:predicate ddr:dTimStart ;
53 + sp:subject spin:_this
54 + ] [ rdf:type sp:NotExists ;
55 + sp:elements ([ sp:object _:b6 ;
56 + sp:predicate ddr:wellboreInfoRef ;
57 + sp:subject spin:_this
58 + ] [ sp:object _:b7 ;
59 + sp:predicate ddr:rigAliasRef ;
60 + sp:subject _:b6
61 + ] [ sp:object
62 + [ sp:varName "code"^^xsd:string
63 + ] ;
64 + sp:predicate ddr:name ;
65 + sp:subject _:b7
66 + ] [ rdf:type sp:Union ;
67 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
68 + sp:predicate ddr:namingSystem ;
69 + sp:subject _:b7
70 + ]) ([ sp:object "NPD code"^^xsd:string ;
71 + sp:predicate ddr:namingSystem ;
72 + sp:subject _:b7
73 + ]))
74 + ])
75 + ] [ rdf:type sp:Bind ;
76 + sp:expression
77 + [ rdf:type ep-spin-lib:normalizeString ;
78 + sp:arg1 _:b4
79 + ] ;
80 + sp:variable _:b8
81 + ] [ rdf:type sp:Bind ;
82 + sp:expression
83 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
84 + sp:arg1 _:b8 ;
85 + sp:arg2 _:b5
86 + ] ;
87 + sp:variable _:b2
88 + ])
89 + ] ;
90 + spin:rule
91 + [ rdf:type sp:Construct ;
35 rdfs:comment """STEP 169a Transfer waterDepth 92 rdfs:comment """STEP 169a Transfer waterDepth
36 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 93 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
37 - sp:templates ([ sp:object _:b1 ; 94 + sp:templates ([ sp:object _:b9 ;
38 sp:predicate ep-core:hasPart ; 95 sp:predicate ep-core:hasPart ;
39 sp:subject 96 sp:subject
40 [ sp:varName "temporalPartOfARig"^^xsd:string 97 [ sp:varName "temporalPartOfARig"^^xsd:string
41 ] 98 ]
42 ] [ sp:object ep-facility:SurroundingWater ; 99 ] [ sp:object ep-facility:SurroundingWater ;
43 sp:predicate rdf:type ; 100 sp:predicate rdf:type ;
44 - sp:subject _:b1 101 + sp:subject _:b9
45 - ] [ sp:object _:b2 ; 102 + ] [ sp:object _:b10 ;
46 sp:predicate ep-facility:depthOfSurroundingWater ; 103 sp:predicate ep-facility:depthOfSurroundingWater ;
47 - sp:subject _:b1 104 + sp:subject _:b9
48 ] [ sp:object ep-core:Length ; 105 ] [ sp:object ep-core:Length ;
49 sp:predicate rdf:type ; 106 sp:predicate rdf:type ;
50 - sp:subject _:b2 107 + sp:subject _:b10
51 ] [ sp:object 108 ] [ sp:object
52 [ sp:varName "real"^^xsd:string 109 [ sp:varName "real"^^xsd:string
53 ] ; 110 ] ;
54 sp:predicate 111 sp:predicate
55 [ sp:varName "lengthScale"^^xsd:string 112 [ sp:varName "lengthScale"^^xsd:string
56 ] ; 113 ] ;
57 - sp:subject _:b2 114 + sp:subject _:b10
58 ]) ; 115 ]) ;
59 sp:where ([ sp:object 116 sp:where ([ sp:object
60 [ sp:varName "nameWellBore"^^xsd:string 117 [ sp:varName "nameWellBore"^^xsd:string
...@@ -132,6 +189,139 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -132,6 +189,139 @@ This rule processes data from statusInfo, but is here because it must be execute
132 ] ; 189 ] ;
133 spin:rule 190 spin:rule
134 [ rdf:type sp:Construct ; 191 [ rdf:type sp:Construct ;
192 + rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
193 + sp:templates ([ sp:object _:b11 ;
194 + sp:predicate ep-activity:drillingContractor ;
195 + sp:subject
196 + [ sp:varName "dailyDrillingActivity"^^xsd:string
197 + ]
198 + ] [ sp:object ep-org:Company ;
199 + sp:predicate rdf:type ;
200 + sp:subject _:b11
201 + ] [ sp:object
202 + [ sp:varName "nameContractor"^^xsd:string
203 + ] ;
204 + sp:predicate ep-core:name ;
205 + sp:subject _:b11
206 + ]) ;
207 + sp:where ([ sp:object
208 + [ sp:varName "nameWellBore"^^xsd:string
209 + ] ;
210 + sp:predicate ep-spin-lib:nameWellbore ;
211 + sp:subject spin:_this
212 + ] [ sp:object
213 + [ sp:varName "dTimStart"^^xsd:string
214 + ] ;
215 + sp:predicate ddr:dTimStart ;
216 + sp:subject spin:_this
217 + ] [ sp:object
218 + [ sp:varName "wellboreInfo"^^xsd:string
219 + ] ;
220 + sp:predicate ddr:wellboreInfoRef ;
221 + sp:subject spin:_this
222 + ] [ sp:object
223 + [ sp:varName "nameContractor"^^xsd:string
224 + ] ;
225 + sp:predicate ddr:drillContractor ;
226 + sp:subject
227 + [ sp:varName "wellboreInfo"^^xsd:string
228 + ]
229 + ] [ rdf:type sp:Bind ;
230 + sp:expression
231 + [ rdf:type ep-spin-lib:normalizeString ;
232 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
233 + ]
234 + ] ;
235 + sp:variable
236 + [ sp:varName "normalizedWellBoreName"^^xsd:string
237 + ]
238 + ] [ rdf:type sp:Bind ;
239 + sp:expression
240 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
241 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
242 + ] ;
243 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
244 + ]
245 + ] ;
246 + sp:variable
247 + [ sp:varName "dailyDrillingActivity"^^xsd:string
248 + ]
249 + ] [ rdf:type sp:Bind ;
250 + sp:expression
251 + [ rdf:type ep-spin-lib:normalizeString ;
252 + sp:arg1 [ sp:varName "nameContractor"^^xsd:string
253 + ]
254 + ] ;
255 + sp:variable
256 + [ sp:varName "normalizedContractorName"^^xsd:string
257 + ]
258 + ] [ rdf:type sp:Bind ;
259 + sp:expression
260 + [ rdf:type rhspin:companyById ;
261 + arg:id [ sp:varName "normalizedContractorName"^^xsd:string
262 + ]
263 + ] ;
264 + sp:variable
265 + [ sp:varName "contractor"^^xsd:string
266 + ]
267 + ])
268 + ] ;
269 + spin:rule
270 + [ rdf:type sp:Construct ;
271 + rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ;
272 + sp:templates ([ sp:object _:b12 ;
273 + sp:predicate ep-core:npdName ;
274 + sp:subject _:b13
275 + ]) ;
276 + sp:where ([ sp:object _:b14 ;
277 + sp:predicate ep-spin-lib:nameWellbore ;
278 + sp:subject spin:_this
279 + ] [ sp:object _:b15 ;
280 + sp:predicate ddr:dTimStart ;
281 + sp:subject spin:_this
282 + ] [ sp:object _:b16 ;
283 + sp:predicate ddr:wellboreInfoRef ;
284 + sp:subject spin:_this
285 + ] [ sp:object _:b17 ;
286 + sp:predicate ddr:rigAliasRef ;
287 + sp:subject _:b16
288 + ] [ sp:object _:b12 ;
289 + sp:predicate ddr:name ;
290 + sp:subject _:b17
291 + ] [ rdf:type sp:Union ;
292 + sp:elements (([ sp:object "NPD Name"^^xsd:string ;
293 + sp:predicate ddr:namingSystem ;
294 + sp:subject _:b17
295 + ]) ([ sp:object "NPD name"^^xsd:string ;
296 + sp:predicate ddr:namingSystem ;
297 + sp:subject _:b17
298 + ]))
299 + ] [ sp:object _:b18 ;
300 + sp:predicate ep-activity:onRig ;
301 + sp:subject _:b19
302 + ] [ sp:object _:b13 ;
303 + sp:predicate ep-core:temporalPartOf ;
304 + sp:subject _:b18
305 + ] [ sp:object ep-facility:Rig ;
306 + sp:predicate rdf:type ;
307 + sp:subject _:b13
308 + ] [ rdf:type sp:Bind ;
309 + sp:expression
310 + [ rdf:type ep-spin-lib:normalizeString ;
311 + sp:arg1 _:b14
312 + ] ;
313 + sp:variable _:b20
314 + ] [ rdf:type sp:Bind ;
315 + sp:expression
316 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
317 + sp:arg1 _:b20 ;
318 + sp:arg2 _:b15
319 + ] ;
320 + sp:variable _:b19
321 + ])
322 + ] ;
323 + spin:rule
324 + [ rdf:type sp:Construct ;
135 rdfs:comment """STEP 168 Transfer fixedRig 325 rdfs:comment """STEP 168 Transfer fixedRig
136 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 326 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
137 sp:templates ([ sp:object 327 sp:templates ([ sp:object
...@@ -216,65 +406,11 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -216,65 +406,11 @@ This rule processes data from statusInfo, but is here because it must be execute
216 ] ; 406 ] ;
217 spin:rule 407 spin:rule
218 [ rdf:type sp:Construct ; 408 [ rdf:type sp:Construct ;
219 - rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ; 409 + rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
220 - sp:templates ([ sp:object _:b3 ;
221 - sp:predicate ep-core:npdName ;
222 - sp:subject _:b4
223 - ]) ;
224 - sp:where ([ sp:object _:b5 ;
225 - sp:predicate ep-spin-lib:nameWellbore ;
226 - sp:subject spin:_this
227 - ] [ sp:object _:b6 ;
228 - sp:predicate ddr:dTimStart ;
229 - sp:subject spin:_this
230 - ] [ sp:object _:b7 ;
231 - sp:predicate ddr:wellboreInfoRef ;
232 - sp:subject spin:_this
233 - ] [ sp:object _:b8 ;
234 - sp:predicate ddr:rigAliasRef ;
235 - sp:subject _:b7
236 - ] [ sp:object _:b3 ;
237 - sp:predicate ddr:name ;
238 - sp:subject _:b8
239 - ] [ rdf:type sp:Union ;
240 - sp:elements (([ sp:object "NPD Name"^^xsd:string ;
241 - sp:predicate ddr:namingSystem ;
242 - sp:subject _:b8
243 - ]) ([ sp:object "NPD name"^^xsd:string ;
244 - sp:predicate ddr:namingSystem ;
245 - sp:subject _:b8
246 - ]))
247 - ] [ sp:object _:b9 ;
248 - sp:predicate ep-activity:onRig ;
249 - sp:subject _:b10
250 - ] [ sp:object _:b4 ;
251 - sp:predicate ep-core:temporalPartOf ;
252 - sp:subject _:b9
253 - ] [ sp:object ep-facility:Rig ;
254 - sp:predicate rdf:type ;
255 - sp:subject _:b4
256 - ] [ rdf:type sp:Bind ;
257 - sp:expression
258 - [ rdf:type ep-spin-lib:normalizeString ;
259 - sp:arg1 _:b5
260 - ] ;
261 - sp:variable _:b11
262 - ] [ rdf:type sp:Bind ;
263 - sp:expression
264 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
265 - sp:arg1 _:b11 ;
266 - sp:arg2 _:b6
267 - ] ;
268 - sp:variable _:b10
269 - ])
270 - ] ;
271 - spin:rule
272 - [ rdf:type sp:Construct ;
273 - rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
274 sp:templates ([ sp:object 410 sp:templates ([ sp:object
275 - [ sp:varName "preSpudDate"^^xsd:string 411 + [ sp:varName "dateDrillComplete"^^xsd:string
276 ] ; 412 ] ;
277 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ; 413 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
278 sp:subject 414 sp:subject
279 [ sp:varName "wellBore"^^xsd:string 415 [ sp:varName "wellBore"^^xsd:string
280 ] 416 ]
...@@ -295,9 +431,9 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -295,9 +431,9 @@ This rule processes data from statusInfo, but is here because it must be execute
295 sp:predicate ddr:wellboreInfoRef ; 431 sp:predicate ddr:wellboreInfoRef ;
296 sp:subject spin:_this 432 sp:subject spin:_this
297 ] [ sp:object 433 ] [ sp:object
298 - [ sp:varName "preSpudDate"^^xsd:string 434 + [ sp:varName "dateDrillComplete"^^xsd:string
299 ] ; 435 ] ;
300 - sp:predicate ddr:dTimPreSpud ; 436 + sp:predicate ddr:dateDrillComplete ;
301 sp:subject 437 sp:subject
302 [ sp:varName "wellboreInfo"^^xsd:string 438 [ sp:varName "wellboreInfo"^^xsd:string
303 ] 439 ]
...@@ -344,121 +480,40 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -344,121 +480,40 @@ This rule processes data from statusInfo, but is here because it must be execute
344 ] ; 480 ] ;
345 spin:rule 481 spin:rule
346 [ rdf:type sp:Construct ; 482 [ rdf:type sp:Construct ;
347 - rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; 483 + rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
348 - sp:templates ([ sp:object _:b12 ; 484 + sp:templates ([ sp:object _:b21 ;
349 - sp:predicate ep-activity:onRig ; 485 + sp:predicate ep-activity:drillingOperator ;
350 - sp:subject _:b13 486 + sp:subject
351 - ] [ sp:object ep-facility:TemporalPartOfARig ; 487 + [ sp:varName "dailyDrillingActivity"^^xsd:string
352 - sp:predicate rdf:type ; 488 + ]
353 - sp:subject _:b12 489 + ] [ sp:object ep-org:Company ;
354 - ] [ sp:object _:b14 ;
355 - sp:predicate ep-core:temporalPartOf ;
356 - sp:subject _:b12
357 - ] [ sp:object ep-facility:Rig ;
358 sp:predicate rdf:type ; 490 sp:predicate rdf:type ;
359 - sp:subject _:b14 491 + sp:subject _:b21
360 - ] [ sp:object _:b15 ; 492 + ] [ sp:object
361 - sp:predicate ep-core:npdCode ; 493 + [ sp:varName "nameOperator"^^xsd:string
362 - sp:subject _:b14 494 + ] ;
495 + sp:predicate ep-core:name ;
496 + sp:subject _:b21
363 ]) ; 497 ]) ;
364 - sp:where ([ sp:object _:b16 ; 498 + sp:where ([ sp:object
499 + [ sp:varName "nameWellBore"^^xsd:string
500 + ] ;
365 sp:predicate ep-spin-lib:nameWellbore ; 501 sp:predicate ep-spin-lib:nameWellbore ;
366 sp:subject spin:_this 502 sp:subject spin:_this
367 - ] [ sp:object _:b17 ; 503 + ] [ sp:object
504 + [ sp:varName "dTimStart"^^xsd:string
505 + ] ;
368 sp:predicate ddr:dTimStart ; 506 sp:predicate ddr:dTimStart ;
369 sp:subject spin:_this 507 sp:subject spin:_this
370 - ] [ sp:object _:b18 ; 508 + ] [ sp:object
509 + [ sp:varName "wellboreInfo"^^xsd:string
510 + ] ;
371 sp:predicate ddr:wellboreInfoRef ; 511 sp:predicate ddr:wellboreInfoRef ;
372 sp:subject spin:_this 512 sp:subject spin:_this
373 - ] [ sp:object _:b19 ;
374 - sp:predicate ddr:rigAliasRef ;
375 - sp:subject _:b18
376 - ] [ sp:object _:b15 ;
377 - sp:predicate ddr:name ;
378 - sp:subject _:b19
379 - ] [ rdf:type sp:Union ;
380 - sp:elements (([ sp:object "NPD Code"^^xsd:string ;
381 - sp:predicate ddr:namingSystem ;
382 - sp:subject _:b19
383 - ]) ([ sp:object "NPD code"^^xsd:string ;
384 - sp:predicate ddr:namingSystem ;
385 - sp:subject _:b19
386 - ]))
387 - ] [ rdf:type sp:Bind ;
388 - sp:expression
389 - [ rdf:type ep-spin-lib:normalizeString ;
390 - sp:arg1 _:b16
391 - ] ;
392 - sp:variable _:b20
393 - ] [ rdf:type sp:Bind ;
394 - sp:expression
395 - [ rdf:type ep-spin-lib:normalizeString ;
396 - sp:arg1 _:b15
397 - ] ;
398 - sp:variable _:b21
399 - ] [ rdf:type sp:Bind ;
400 - sp:expression
401 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
402 - sp:arg1 _:b20 ;
403 - sp:arg2 _:b17
404 - ] ;
405 - sp:variable _:b13
406 - ] [ rdf:type sp:Bind ;
407 - sp:expression
408 - [ rdf:type ep-spin-lib:buildRigURI ;
409 - sp:arg1 _:b21
410 - ] ;
411 - sp:variable _:b14
412 - ])
413 - ] ;
414 - spin:rule
415 - [ rdf:type sp:Construct ;
416 - rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
417 - sp:templates ([ sp:object _:b22 ;
418 - sp:predicate ep-activity:drillingContractor ;
419 - sp:subject
420 - [ sp:varName "dailyDrillingActivity"^^xsd:string
421 - ]
422 - ] [ sp:object
423 - [ sp:varName "contractor"^^xsd:string
424 - ] ;
425 - sp:predicate ep-core:temporalPartOf ;
426 - sp:subject _:b22
427 - ] [ sp:object ep-org:Organization ;
428 - sp:predicate rdf:type ;
429 - sp:subject _:b22
430 - ] [ sp:object
431 - [ sp:varName "nameContractor"^^xsd:string
432 - ] ;
433 - sp:predicate ep-core:name ;
434 - sp:subject
435 - [ sp:varName "contractor"^^xsd:string
436 - ]
437 - ] [ sp:object ep-org:Company ;
438 - sp:predicate rdf:type ;
439 - sp:subject
440 - [ sp:varName "contractor"^^xsd:string
441 - ]
442 - ]) ;
443 - sp:where ([ sp:object
444 - [ sp:varName "nameWellBore"^^xsd:string
445 - ] ;
446 - sp:predicate ep-spin-lib:nameWellbore ;
447 - sp:subject spin:_this
448 ] [ sp:object 513 ] [ sp:object
449 - [ sp:varName "dTimStart"^^xsd:string 514 + [ sp:varName "nameOperator"^^xsd:string
450 - ] ;
451 - sp:predicate ddr:dTimStart ;
452 - sp:subject spin:_this
453 - ] [ sp:object
454 - [ sp:varName "wellboreInfo"^^xsd:string
455 - ] ;
456 - sp:predicate ddr:wellboreInfoRef ;
457 - sp:subject spin:_this
458 - ] [ sp:object
459 - [ sp:varName "nameContractor"^^xsd:string
460 ] ; 515 ] ;
461 - sp:predicate ddr:drillContractor ; 516 + sp:predicate ddr:operator ;
462 sp:subject 517 sp:subject
463 [ sp:varName "wellboreInfo"^^xsd:string 518 [ sp:varName "wellboreInfo"^^xsd:string
464 ] 519 ]
...@@ -482,98 +537,75 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -482,98 +537,75 @@ This rule processes data from statusInfo, but is here because it must be execute
482 sp:variable 537 sp:variable
483 [ sp:varName "dailyDrillingActivity"^^xsd:string 538 [ sp:varName "dailyDrillingActivity"^^xsd:string
484 ] 539 ]
485 - ] [ rdf:type sp:Bind ;
486 - sp:expression
487 - [ rdf:type ep-spin-lib:normalizeString ;
488 - sp:arg1 [ sp:varName "nameContractor"^^xsd:string
489 - ]
490 - ] ;
491 - sp:variable
492 - [ sp:varName "normalizedContractorName"^^xsd:string
493 - ]
494 - ] [ rdf:type sp:Bind ;
495 - sp:expression
496 - [ rdf:type rhspin:companyById ;
497 - arg:id [ sp:varName "normalizedContractorName"^^xsd:string
498 - ]
499 - ] ;
500 - sp:variable
501 - [ sp:varName "contractor"^^xsd:string
502 - ]
503 ]) 540 ])
504 ] ; 541 ] ;
505 spin:rule 542 spin:rule
506 [ rdf:type sp:Construct ; 543 [ rdf:type sp:Construct ;
507 - rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ; 544 + rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
508 - sp:templates ([ sp:object 545 + sp:templates ([ sp:object _:b22 ;
509 - [ sp:varName "dateDrillComplete"^^xsd:string 546 + sp:predicate ep-activity:onRig ;
510 - ] ; 547 + sp:subject _:b23
511 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ; 548 + ] [ sp:object ep-facility:TemporalPartOfARig ;
512 - sp:subject 549 + sp:predicate rdf:type ;
513 - [ sp:varName "wellBore"^^xsd:string 550 + sp:subject _:b22
514 - ] 551 + ] [ sp:object _:b24 ;
552 + sp:predicate ep-core:temporalPartOf ;
553 + sp:subject _:b22
554 + ] [ sp:object ep-facility:Rig ;
555 + sp:predicate rdf:type ;
556 + sp:subject _:b24
557 + ] [ sp:object _:b25 ;
558 + sp:predicate ep-core:npdCode ;
559 + sp:subject _:b24
515 ]) ; 560 ]) ;
516 - sp:where ([ sp:object 561 + sp:where ([ sp:object _:b26 ;
517 - [ sp:varName "nameWellBore"^^xsd:string
518 - ] ;
519 sp:predicate ep-spin-lib:nameWellbore ; 562 sp:predicate ep-spin-lib:nameWellbore ;
520 sp:subject spin:_this 563 sp:subject spin:_this
521 - ] [ sp:object 564 + ] [ sp:object _:b27 ;
522 - [ sp:varName "dTimStart"^^xsd:string
523 - ] ;
524 sp:predicate ddr:dTimStart ; 565 sp:predicate ddr:dTimStart ;
525 sp:subject spin:_this 566 sp:subject spin:_this
526 - ] [ sp:object 567 + ] [ sp:object _:b28 ;
527 - [ sp:varName "wellboreInfo"^^xsd:string
528 - ] ;
529 sp:predicate ddr:wellboreInfoRef ; 568 sp:predicate ddr:wellboreInfoRef ;
530 sp:subject spin:_this 569 sp:subject spin:_this
531 - ] [ sp:object 570 + ] [ sp:object _:b29 ;
532 - [ sp:varName "dateDrillComplete"^^xsd:string 571 + sp:predicate ddr:rigAliasRef ;
533 - ] ; 572 + sp:subject _:b28
534 - sp:predicate ddr:dateDrillComplete ; 573 + ] [ sp:object _:b25 ;
535 - sp:subject 574 + sp:predicate ddr:name ;
536 - [ sp:varName "wellboreInfo"^^xsd:string 575 + sp:subject _:b29
537 - ] 576 + ] [ rdf:type sp:Union ;
538 - ] [ sp:object 577 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
539 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 578 + sp:predicate ddr:namingSystem ;
540 - ] ; 579 + sp:subject _:b29
541 - sp:predicate ep-activity:onWellBore ; 580 + ]) ([ sp:object "NPD code"^^xsd:string ;
542 - sp:subject 581 + sp:predicate ddr:namingSystem ;
543 - [ sp:varName "dailyDrillingActivity"^^xsd:string 582 + sp:subject _:b29
544 - ] 583 + ]))
545 - ] [ sp:object 584 + ] [ rdf:type sp:Bind ;
546 - [ sp:varName "wellBore"^^xsd:string 585 + sp:expression
586 + [ rdf:type ep-spin-lib:normalizeString ;
587 + sp:arg1 _:b26
547 ] ; 588 ] ;
548 - sp:predicate ep-core:temporalPartOf ; 589 + sp:variable _:b30
549 - sp:subject
550 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
551 - ]
552 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
553 - sp:predicate rdf:type ;
554 - sp:subject
555 - [ sp:varName "wellBore"^^xsd:string
556 - ]
557 ] [ rdf:type sp:Bind ; 590 ] [ rdf:type sp:Bind ;
558 sp:expression 591 sp:expression
559 [ rdf:type ep-spin-lib:normalizeString ; 592 [ rdf:type ep-spin-lib:normalizeString ;
560 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 593 + sp:arg1 _:b25
561 - ]
562 ] ; 594 ] ;
563 - sp:variable 595 + sp:variable _:b31
564 - [ sp:varName "normalizedWellBoreName"^^xsd:string
565 - ]
566 ] [ rdf:type sp:Bind ; 596 ] [ rdf:type sp:Bind ;
567 sp:expression 597 sp:expression
568 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 598 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
569 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 599 + sp:arg1 _:b30 ;
570 - ] ; 600 + sp:arg2 _:b27
571 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
572 - ]
573 ] ; 601 ] ;
574 - sp:variable 602 + sp:variable _:b23
575 - [ sp:varName "dailyDrillingActivity"^^xsd:string 603 + ] [ rdf:type sp:Bind ;
576 - ] 604 + sp:expression
605 + [ rdf:type ep-spin-lib:buildRigURI ;
606 + sp:arg1 _:b31
607 + ] ;
608 + sp:variable _:b24
577 ]) 609 ])
578 ] ; 610 ] ;
579 spin:rule 611 spin:rule
...@@ -652,120 +684,29 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -652,120 +684,29 @@ This rule processes data from statusInfo, but is here because it must be execute
652 ] ; 684 ] ;
653 spin:rule 685 spin:rule
654 [ rdf:type sp:Construct ; 686 [ rdf:type sp:Construct ;
655 - rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
656 - sp:templates ([ sp:object _:b23 ;
657 - sp:predicate ep-activity:drillingOperator ;
658 - sp:subject
659 - [ sp:varName "dailyDrillingActivity"^^xsd:string
660 - ]
661 - ] [ sp:object
662 - [ sp:varName "operator"^^xsd:string
663 - ] ;
664 - sp:predicate ep-core:temporalPartOf ;
665 - sp:subject _:b23
666 - ] [ sp:object ep-org:Organization ;
667 - sp:predicate rdf:type ;
668 - sp:subject _:b23
669 - ] [ sp:object
670 - [ sp:varName "nameOperator"^^xsd:string
671 - ] ;
672 - sp:predicate ep-core:name ;
673 - sp:subject
674 - [ sp:varName "operator"^^xsd:string
675 - ]
676 - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
677 - sp:predicate rdf:type ;
678 - sp:subject
679 - [ sp:varName "operator"^^xsd:string
680 - ]
681 - ]) ;
682 - sp:where ([ sp:object
683 - [ sp:varName "nameWellBore"^^xsd:string
684 - ] ;
685 - sp:predicate ep-spin-lib:nameWellbore ;
686 - sp:subject spin:_this
687 - ] [ sp:object
688 - [ sp:varName "dTimStart"^^xsd:string
689 - ] ;
690 - sp:predicate ddr:dTimStart ;
691 - sp:subject spin:_this
692 - ] [ sp:object
693 - [ sp:varName "wellboreInfo"^^xsd:string
694 - ] ;
695 - sp:predicate ddr:wellboreInfoRef ;
696 - sp:subject spin:_this
697 - ] [ sp:object
698 - [ sp:varName "nameOperator"^^xsd:string
699 - ] ;
700 - sp:predicate ddr:operator ;
701 - sp:subject
702 - [ sp:varName "wellboreInfo"^^xsd:string
703 - ]
704 - ] [ rdf:type sp:Bind ;
705 - sp:expression
706 - [ rdf:type ep-spin-lib:normalizeString ;
707 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
708 - ]
709 - ] ;
710 - sp:variable
711 - [ sp:varName "normalizedWellBoreName"^^xsd:string
712 - ]
713 - ] [ rdf:type sp:Bind ;
714 - sp:expression
715 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
716 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
717 - ] ;
718 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
719 - ]
720 - ] ;
721 - sp:variable
722 - [ sp:varName "dailyDrillingActivity"^^xsd:string
723 - ]
724 - ] [ rdf:type sp:Bind ;
725 - sp:expression
726 - [ rdf:type ep-spin-lib:normalizeString ;
727 - sp:arg1 [ sp:varName "nameOperator"^^xsd:string
728 - ]
729 - ] ;
730 - sp:variable
731 - [ sp:varName "normalizedOperatorName"^^xsd:string
732 - ]
733 - ] [ rdf:type sp:Bind ;
734 - sp:expression
735 - [ rdf:type rhspin:companyById ;
736 - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string
737 - ]
738 - ] ;
739 - sp:variable
740 - [ sp:varName "operator"^^xsd:string
741 - ]
742 - ])
743 - ] ;
744 - spin:rule
745 - [ rdf:type sp:Construct ;
746 rdfs:comment """STEP 169 Transfer elevKelly 687 rdfs:comment """STEP 169 Transfer elevKelly
747 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 688 This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
748 - sp:templates ([ sp:object _:b24 ; 689 + sp:templates ([ sp:object _:b32 ;
749 sp:predicate ep-core:hasPart ; 690 sp:predicate ep-core:hasPart ;
750 sp:subject 691 sp:subject
751 [ sp:varName "temporalPartOfARig"^^xsd:string 692 [ sp:varName "temporalPartOfARig"^^xsd:string
752 ] 693 ]
753 ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ; 694 ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
754 sp:predicate rdf:type ; 695 sp:predicate rdf:type ;
755 - sp:subject _:b24 696 + sp:subject _:b32
756 - ] [ sp:object _:b25 ; 697 + ] [ sp:object _:b33 ;
757 sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; 698 sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
758 - sp:subject _:b24 699 + sp:subject _:b32
759 ] [ sp:object ep-core:Length ; 700 ] [ sp:object ep-core:Length ;
760 sp:predicate rdf:type ; 701 sp:predicate rdf:type ;
761 - sp:subject _:b25 702 + sp:subject _:b33
762 ] [ sp:object 703 ] [ sp:object
763 [ sp:varName "real"^^xsd:string 704 [ sp:varName "real"^^xsd:string
764 ] ; 705 ] ;
765 sp:predicate 706 sp:predicate
766 [ sp:varName "lengthScale"^^xsd:string 707 [ sp:varName "lengthScale"^^xsd:string
767 ] ; 708 ] ;
768 - sp:subject _:b25 709 + sp:subject _:b33
769 ]) ; 710 ]) ;
770 sp:where ([ sp:object 711 sp:where ([ sp:object
771 [ sp:varName "nameWellBore"^^xsd:string 712 [ sp:varName "nameWellBore"^^xsd:string
...@@ -843,140 +784,157 @@ This rule processes data from statusInfo, but is here because it must be execute ...@@ -843,140 +784,157 @@ This rule processes data from statusInfo, but is here because it must be execute
843 ] ; 784 ] ;
844 spin:rule 785 spin:rule
845 [ rdf:type sp:Construct ; 786 [ rdf:type sp:Construct ;
846 - rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ; 787 + rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
847 - sp:templates ([ sp:object _:b26 ; 788 + sp:templates ([ sp:object
848 - sp:predicate ep-activity:onRig ; 789 + [ sp:varName "preSpudDate"^^xsd:string
849 - sp:subject _:b27 790 + ] ;
850 - ] [ sp:object ep-facility:TemporalPartOfARig ; 791 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
851 - sp:predicate rdf:type ; 792 + sp:subject
852 - sp:subject _:b26 793 + [ sp:varName "wellBore"^^xsd:string
853 - ] [ sp:object _:b28 ; 794 + ]
854 - sp:predicate ep-core:temporalPartOf ;
855 - sp:subject _:b26
856 - ] [ sp:object ep-facility:Rig ;
857 - sp:predicate rdf:type ;
858 - sp:subject _:b28
859 ]) ; 795 ]) ;
860 - sp:where ([ sp:object _:b29 ; 796 + sp:where ([ sp:object
797 + [ sp:varName "nameWellBore"^^xsd:string
798 + ] ;
861 sp:predicate ep-spin-lib:nameWellbore ; 799 sp:predicate ep-spin-lib:nameWellbore ;
862 sp:subject spin:_this 800 sp:subject spin:_this
863 - ] [ sp:object _:b30 ; 801 + ] [ sp:object
802 + [ sp:varName "dTimStart"^^xsd:string
803 + ] ;
864 sp:predicate ddr:dTimStart ; 804 sp:predicate ddr:dTimStart ;
865 sp:subject spin:_this 805 sp:subject spin:_this
866 - ] [ rdf:type sp:NotExists ; 806 + ] [ sp:object
867 - sp:elements ([ sp:object _:b31 ; 807 + [ sp:varName "wellboreInfo"^^xsd:string
868 - sp:predicate ddr:wellboreInfoRef ; 808 + ] ;
869 - sp:subject spin:_this 809 + sp:predicate ddr:wellboreInfoRef ;
870 - ] [ sp:object _:b32 ; 810 + sp:subject spin:_this
871 - sp:predicate ddr:rigAliasRef ; 811 + ] [ sp:object
872 - sp:subject _:b31 812 + [ sp:varName "preSpudDate"^^xsd:string
873 - ] [ sp:object 813 + ] ;
874 - [ sp:varName "code"^^xsd:string 814 + sp:predicate ddr:dTimPreSpud ;
875 - ] ; 815 + sp:subject
876 - sp:predicate ddr:name ; 816 + [ sp:varName "wellboreInfo"^^xsd:string
877 - sp:subject _:b32 817 + ]
878 - ] [ rdf:type sp:Union ; 818 + ] [ sp:object
879 - sp:elements (([ sp:object "NPD Code"^^xsd:string ; 819 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
880 - sp:predicate ddr:namingSystem ; 820 + ] ;
881 - sp:subject _:b32 821 + sp:predicate ep-activity:onWellBore ;
882 - ]) ([ sp:object "NPD code"^^xsd:string ; 822 + sp:subject
883 - sp:predicate ddr:namingSystem ; 823 + [ sp:varName "dailyDrillingActivity"^^xsd:string
884 - sp:subject _:b32 824 + ]
885 - ])) 825 + ] [ sp:object
886 - ]) 826 + [ sp:varName "wellBore"^^xsd:string
827 + ] ;
828 + sp:predicate ep-core:temporalPartOf ;
829 + sp:subject
830 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
831 + ]
832 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
833 + sp:predicate rdf:type ;
834 + sp:subject
835 + [ sp:varName "wellBore"^^xsd:string
836 + ]
887 ] [ rdf:type sp:Bind ; 837 ] [ rdf:type sp:Bind ;
888 sp:expression 838 sp:expression
889 [ rdf:type ep-spin-lib:normalizeString ; 839 [ rdf:type ep-spin-lib:normalizeString ;
890 - sp:arg1 _:b29 840 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
841 + ]
891 ] ; 842 ] ;
892 - sp:variable _:b33 843 + sp:variable
844 + [ sp:varName "normalizedWellBoreName"^^xsd:string
845 + ]
893 ] [ rdf:type sp:Bind ; 846 ] [ rdf:type sp:Bind ;
894 sp:expression 847 sp:expression
895 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 848 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
896 - sp:arg1 _:b33 ; 849 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
897 - sp:arg2 _:b30 850 + ] ;
851 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
852 + ]
898 ] ; 853 ] ;
899 - sp:variable _:b27 854 + sp:variable
855 + [ sp:varName "dailyDrillingActivity"^^xsd:string
856 + ]
900 ]) 857 ])
901 ] . 858 ] .
902 859
903 -[] rdf:type smf:regex . 860 +[] rdf:type sp:Modify .
904 -
905 -[] rdf:type smf:trim .
906 861
907 [] rdf:type fn:starts-with . 862 [] rdf:type fn:starts-with .
908 863
909 -[] rdf:type sp:Modify . 864 +[] rdf:type smf:trim .
910 865
911 -_:b5 sp:varName "nameWellBore"^^xsd:string . 866 +[] rdf:type smf:regex .
912 867
913 -_:b6 sp:varName "dTimStart"^^xsd:string . 868 +_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
914 869
915 -_:b7 sp:varName "wellboreInfo"^^xsd:string . 870 +_:b7 sp:varName "rigAlias"^^xsd:string .
916 871
917 -_:b8 sp:varName "rigAlias"^^xsd:string . 872 +_:b6 sp:varName "wellboreInfo"^^xsd:string .
918 873
919 -_:b3 sp:varName "name"^^xsd:string . 874 +_:b5 sp:varName "dTimStart"^^xsd:string .
920 875
921 -_:b10 876 +_:b4 sp:varName "nameWellBore"^^xsd:string .
922 - sp:varName "dailyDrillingActivity"^^xsd:string .
923 877
924 -_:b9 sp:varName "temporalPartOfARig"^^xsd:string . 878 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
925 879
926 -_:b4 sp:varName "rig"^^xsd:string . 880 +_:b31
881 + sp:varName "normalizedCode"^^xsd:string .
927 882
928 -_:b11 883 +_:b30
929 sp:varName "normalizedWellBoreName"^^xsd:string . 884 sp:varName "normalizedWellBoreName"^^xsd:string .
930 885
931 _:b29 886 _:b29
932 - sp:varName "nameWellBore"^^xsd:string . 887 + sp:varName "rigAlias"^^xsd:string .
933 888
934 -_:b30 889 +_:b28
890 + sp:varName "wellboreInfo"^^xsd:string .
891 +
892 +_:b27
935 sp:varName "dTimStart"^^xsd:string . 893 sp:varName "dTimStart"^^xsd:string .
936 894
937 -_:b31 895 +_:b26
938 - sp:varName "wellboreInfo"^^xsd:string . 896 + sp:varName "nameWellBore"^^xsd:string .
939 897
940 -_:b32 898 +_:b25
941 - sp:varName "rigAlias"^^xsd:string . 899 + sp:varName "code"^^xsd:string .
942 900
943 -_:b33 901 +_:b24
944 - sp:varName "normalizedWellBoreName"^^xsd:string . 902 + sp:varName "rig"^^xsd:string .
945 903
946 -_:b27 904 +_:b23
947 sp:varName "dailyDrillingActivity"^^xsd:string . 905 sp:varName "dailyDrillingActivity"^^xsd:string .
948 906
949 -_:b16 907 +_:b20
950 - sp:varName "nameWellBore"^^xsd:string . 908 + sp:varName "normalizedWellBoreName"^^xsd:string .
951 909
952 -_:b17 910 +_:b19
953 - sp:varName "dTimStart"^^xsd:string . 911 + sp:varName "dailyDrillingActivity"^^xsd:string .
954 912
955 _:b18 913 _:b18
956 - sp:varName "wellboreInfo"^^xsd:string . 914 + sp:varName "temporalPartOfARig"^^xsd:string .
957 915
958 -_:b19 916 +_:b17
959 sp:varName "rigAlias"^^xsd:string . 917 sp:varName "rigAlias"^^xsd:string .
960 918
961 -_:b15 919 +_:b16
962 - sp:varName "code"^^xsd:string . 920 + sp:varName "wellboreInfo"^^xsd:string .
963 921
964 -_:b20 922 +_:b15
965 - sp:varName "normalizedWellBoreName"^^xsd:string . 923 + sp:varName "dTimStart"^^xsd:string .
966 924
967 -_:b21 925 +_:b14
968 - sp:varName "normalizedCode"^^xsd:string . 926 + sp:varName "nameWellBore"^^xsd:string .
969 927
970 _:b13 928 _:b13
971 - sp:varName "dailyDrillingActivity"^^xsd:string .
972 -
973 -_:b14
974 sp:varName "rig"^^xsd:string . 929 sp:varName "rig"^^xsd:string .
975 930
931 +_:b12
932 + sp:varName "name"^^xsd:string .
933 +
934 +([]) .
935 +
976 ([]) . 936 ([]) .
977 937
978 ([] [] [ rdf:type sp:Filter 938 ([] [] [ rdf:type sp:Filter
979 ] [ rdf:type sp:Bind 939 ] [ rdf:type sp:Bind
980 ]) . 940 ]) .
981 -
982 -([]) .
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
26 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}" /> 26 <rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}" />
27 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}" /> 27 <rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}" />
28 <rhswp:NameValuePair arg:name="Status:" arg:value="{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}" /> 28 <rhswp:NameValuePair arg:name="Status:" arg:value="{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}" />
29 - <rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingOperator ?opCo . ?opCo ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName }}" /> 29 + <rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?operatorName WHERE {?activity ep-activity:drillingOperator ?operator . ?operator ep-core:name ?operatorName }}" />
30 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" /> 30 <rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" />
31 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }" /> 31 <rhswp:NameValuePair arg:name="Spud date:" arg:value="{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }" />
32 <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}" /> 32 <rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}" />
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
48 48
49 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}" /> 49 <rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}" />
50 <rhswp:NameValuePair arg:name="Created date:" arg:value="{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }" /> 50 <rhswp:NameValuePair arg:name="Created date:" arg:value="{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }" />
51 - <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?parentName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parentName}}" /> 51 + <rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?contractorName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:name ?contractorName}}" />
52 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" /> 52 <rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" />
53 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }" /> 53 <rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }" />
54 <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}" /> 54 <rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}" />
......