David Leal

Mapping of Well and WellBore aliases added

1 +# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011
1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/core 2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/core
2 # imports: http://www.linkedmodel.org/1.2/schema/vaem 3 # imports: http://www.linkedmodel.org/1.2/schema/vaem
3 4
...@@ -23,14 +24,26 @@ ep-core:PhysicalThing ...@@ -23,14 +24,26 @@ ep-core:PhysicalThing
23 rdfs:label "physical thing"^^xsd:string ; 24 rdfs:label "physical thing"^^xsd:string ;
24 rdfs:subClassOf owl:Thing . 25 rdfs:subClassOf owl:Thing .
25 26
27 +ep-core:apiName
28 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
29 + rdfs:label "API name"^^xsd:string ;
30 + rdfs:range xsd:string ;
31 + rdfs:subPropertyOf ep-core:name .
32 +
26 ep-core:basisFor 33 ep-core:basisFor
27 rdf:type owl:ObjectProperty ; 34 rdf:type owl:ObjectProperty ;
28 rdfs:label "basis for"^^xsd:string . 35 rdfs:label "basis for"^^xsd:string .
29 36
30 ep-core:derivedFrom 37 ep-core:derivedFrom
31 - rdf:type owl:TransitiveProperty , owl:ObjectProperty ; 38 + rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
32 rdfs:label "derived from"^^xsd:string . 39 rdfs:label "derived from"^^xsd:string .
33 40
41 +ep-core:dtiName
42 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
43 + rdfs:label "DTI name"^^xsd:string ;
44 + rdfs:range xsd:string ;
45 + rdfs:subPropertyOf ep-core:name .
46 +
34 ep-core:hasPart 47 ep-core:hasPart
35 rdf:type owl:TransitiveProperty ; 48 rdf:type owl:TransitiveProperty ;
36 rdfs:domain ep-core:PhysicalThing ; 49 rdfs:domain ep-core:PhysicalThing ;
...@@ -46,11 +59,29 @@ ep-core:hasTemporalPart ...@@ -46,11 +59,29 @@ ep-core:hasTemporalPart
46 rdfs:subPropertyOf ep-core:hasPart ; 59 rdfs:subPropertyOf ep-core:hasPart ;
47 owl:inverseOf ep-core:partOf . 60 owl:inverseOf ep-core:partOf .
48 61
62 +ep-core:localFieldName
63 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
64 + rdfs:label "local field name"^^xsd:string ;
65 + rdfs:range xsd:string ;
66 + rdfs:subPropertyOf ep-core:name .
67 +
49 ep-core:name 68 ep-core:name
50 rdf:type owl:DatatypeProperty ; 69 rdf:type owl:DatatypeProperty ;
51 rdfs:label "name"^^xsd:string ; 70 rdfs:label "name"^^xsd:string ;
52 rdfs:range xsd:string . 71 rdfs:range xsd:string .
53 72
73 +ep-core:npdCode
74 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
75 + rdfs:label "NPD code"^^xsd:string ;
76 + rdfs:range xsd:string ;
77 + rdfs:subPropertyOf ep-core:name .
78 +
79 +ep-core:npdNumber
80 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
81 + rdfs:label "NPD number"^^xsd:string ;
82 + rdfs:range xsd:string ;
83 + rdfs:subPropertyOf ep-core:name .
84 +
54 ep-core:partOf 85 ep-core:partOf
55 rdf:type owl:TransitiveProperty ; 86 rdf:type owl:TransitiveProperty ;
56 rdfs:domain ep-core:PhysicalThing ; 87 rdfs:domain ep-core:PhysicalThing ;
...@@ -58,6 +89,12 @@ ep-core:partOf ...@@ -58,6 +89,12 @@ ep-core:partOf
58 rdfs:range ep-core:PhysicalThing ; 89 rdfs:range ep-core:PhysicalThing ;
59 owl:inverseOf ep-core:hasPart . 90 owl:inverseOf ep-core:hasPart .
60 91
92 +ep-core:prospectName
93 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
94 + rdfs:label "prospect name"^^xsd:string ;
95 + rdfs:range xsd:string ;
96 + rdfs:subPropertyOf ep-core:name .
97 +
61 ep-core:temporalPartOf 98 ep-core:temporalPartOf
62 rdf:type owl:TransitiveProperty ; 99 rdf:type owl:TransitiveProperty ;
63 rdfs:domain ep-core:PhysicalThing ; 100 rdfs:domain ep-core:PhysicalThing ;
......
1 +# Saved by TopBraid on Tue Aug 09 20:54:10 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
3 +# imports: http://www.linkedmodel.org/1.2/schema/vaem
4 +# imports: http://www.reportinghub.no/ep/schema/organization
5 +# imports: http://www.reportinghub.no/ep/schema/equipment
6 +# imports: http://www.linkedmodel.org/1.1/schema/ordered
7 +# imports: http://www.reportinghub.no/ep/schema/1.1/core
8 +# imports: http://www.reportinghub.no/ep/schema/well
9 +
10 +@prefix : <http://www.reportinghub.no/ep/schema/1.1/activity#> .
11 +@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
12 +@prefix organization: <http://www.reportinghub.no/ep/schema/organization#> .
13 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
14 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
15 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
16 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
17 +
18 +<http://www.reportinghub.no/ep/schema/1.1/activity>
19 + rdf:type owl:Ontology ;
20 + owl:imports <http://www.reportinghub.no/ep/schema/organization> , <http://www.reportinghub.no/ep/schema/1.1/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/schema/well> ;
21 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
22 +
23 +ep-activity:Activity
24 + rdf:type owl:Class ;
25 + rdfs:label "Activity"^^xsd:string ;
26 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
27 + rdfs:subClassOf
28 + [ rdf:type owl:Restriction ;
29 + owl:allValuesFrom ep-activity:Activity ;
30 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
31 + ] ;
32 + rdfs:subClassOf
33 + [ rdf:type owl:Restriction ;
34 + owl:allValuesFrom ep-activity:Activity ;
35 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
36 + ] ;
37 + rdfs:subClassOf
38 + [ rdf:type owl:Restriction ;
39 + owl:allValuesFrom ep-activity:Activity ;
40 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
41 + ] ;
42 + rdfs:subClassOf
43 + [ rdf:type owl:Restriction ;
44 + owl:allValuesFrom ep-activity:Activity ;
45 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
46 + ] ;
47 + rdfs:subClassOf
48 + [ rdf:type owl:Restriction ;
49 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
50 + owl:onProperty ep-activity:startedAt
51 + ] ;
52 + rdfs:subClassOf
53 + [ rdf:type owl:Restriction ;
54 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
55 + owl:onProperty ep-activity:finishedAt
56 + ] .
57 +
58 +ep-activity:DailyDrillingActivity
59 + rdf:type owl:Class ;
60 + rdfs:label "Daily drilling activity"^^xsd:string ;
61 + rdfs:subClassOf ep-activity:DrillingActivity ;
62 + rdfs:subClassOf
63 + [ rdf:type owl:Restriction ;
64 + owl:allValuesFrom ep-activity:DrillingActivity ;
65 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
66 + ] ;
67 + rdfs:subClassOf
68 + [ rdf:type owl:Restriction ;
69 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
70 + owl:onProperty ep-activity:onWellBore
71 + ] ;
72 + rdfs:subClassOf
73 + [ rdf:type owl:Restriction ;
74 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
75 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
76 + ] ;
77 + rdfs:subClassOf
78 + [ rdf:type owl:Restriction ;
79 + owl:allValuesFrom ep-activity:DrillingActivity ;
80 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
81 + ] ;
82 + rdfs:subClassOf
83 + [ rdf:type owl:Restriction ;
84 + owl:allValuesFrom ep-activity:Activity ;
85 + owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
86 + ] .
87 +
88 +ep-activity:DailyDrillingReportFinalisationType
89 + rdf:type rdfs:Class ;
90 + rdfs:label "daily drilling report finalisation type"^^xsd:string ;
91 + rdfs:subClassOf owl:Class .
92 +
93 +ep-activity:DailyProductionActivity
94 + rdf:type owl:Class ;
95 + rdfs:label "Daily production activity"^^xsd:string ;
96 + rdfs:subClassOf ep-activity:ProductionActivity ;
97 + rdfs:subClassOf
98 + [ rdf:type owl:Restriction ;
99 + owl:allValuesFrom ep-activity:ProductionActivity ;
100 + owl:onProperty ep-activity:hasSubActivity
101 + ] .
102 +
103 +ep-activity:Drill-bypass
104 + rdf:type ep-activity:WellBoreDrillingType ;
105 + rdfs:label "drill bypass"^^xsd:string ;
106 + rdfs:subClassOf ep-activity:DrillingActivity .
107 +
108 +ep-activity:Drill-initial
109 + rdf:type ep-activity:WellBoreDrillingType ;
110 + rdfs:label "drill initial"^^xsd:string ;
111 + rdfs:subClassOf ep-activity:DrillingActivity .
112 +
113 +ep-activity:Drill-re-entry
114 + rdf:type ep-activity:WellBoreDrillingType ;
115 + rdfs:label "drill re-entry"^^xsd:string ;
116 + rdfs:subClassOf ep-activity:DrillingActivity .
117 +
118 +ep-activity:Drill-re-spud
119 + rdf:type ep-activity:WellBoreDrillingType ;
120 + rdfs:label "drill re-spud"^^xsd:string ;
121 + rdfs:subClassOf ep-activity:DrillingActivity .
122 +
123 +ep-activity:Drill-redrill
124 + rdf:type ep-activity:WellBoreDrillingType ;
125 + rdfs:label "redrill"^^xsd:string ;
126 + rdfs:subClassOf ep-activity:DrillingActivity .
127 +
128 +ep-activity:Drill-sidetrack
129 + rdf:type ep-activity:WellBoreDrillingType ;
130 + rdfs:label "drill sidetrack"^^xsd:string ;
131 + rdfs:subClassOf ep-activity:DrillingActivity .
132 +
133 +ep-activity:DrillingActivity
134 + rdf:type owl:Class ;
135 + rdfs:label "Drilling activity"^^xsd:string ;
136 + rdfs:subClassOf ep-activity:Activity .
137 +
138 +ep-activity:FormationIntegrityTest
139 + rdf:type ep-activity:PressureTestType , owl:Class ;
140 + rdfs:label "formation integrity test"^^xsd:string ;
141 + rdfs:subClassOf ep-activity:WellBorePressureTest ;
142 + owl:disjointWith ep-activity:LeakOffTest .
143 +
144 +ep-activity:LeakOffTest
145 + rdf:type ep-activity:PressureTestType , owl:Class ;
146 + rdfs:label "leak-off test"^^xsd:string ;
147 + rdfs:subClassOf ep-activity:WellBorePressureTest ;
148 + owl:disjointWith ep-activity:FormationIntegrityTest .
149 +
150 +ep-activity:MonthlyDrillingActivity
151 + rdf:type owl:Class ;
152 + rdfs:label "Weekly drilling activity"^^xsd:string ;
153 + rdfs:subClassOf ep-activity:DrillingActivity ;
154 + rdfs:subClassOf
155 + [ rdf:type owl:Restriction ;
156 + owl:allValuesFrom ep-activity:WeeklyDrillingActivity ;
157 + owl:onProperty ep-activity:hasSubActivity
158 + ] .
159 +
160 +ep-activity:MonthlyProductionActivity
161 + rdf:type owl:Class ;
162 + rdfs:label "Monthly production activity"^^xsd:string ;
163 + rdfs:subClassOf ep-activity:ProductionActivity ;
164 + rdfs:subClassOf
165 + [ rdf:type owl:Restriction ;
166 + owl:allValuesFrom ep-activity:WeeklyProductionActivity ;
167 + owl:onProperty ep-activity:hasSubActivity
168 + ] .
169 +
170 +ep-activity:OffshoreActivity
171 + rdf:type owl:Class ;
172 + rdfs:label "Offshore activity"^^xsd:string ;
173 + rdfs:subClassOf ep-activity:Activity .
174 +
175 +ep-activity:OffshoreWellActivity
176 + rdf:type owl:Class ;
177 + rdfs:label "Offshore well activity"^^xsd:string ;
178 + rdfs:subClassOf ep-activity:OffshoreActivity ;
179 + rdfs:subClassOf
180 + [ rdf:type owl:Restriction ;
181 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
182 + owl:onProperty ep-activity:onWell
183 + ] ;
184 + rdfs:subClassOf
185 + [ rdf:type owl:Restriction ;
186 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
187 + owl:onProperty ep-activity:onRig
188 + ] ;
189 + rdfs:subClassOf
190 + [ rdf:type owl:Restriction ;
191 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
192 + owl:onProperty ep-activity:onWell
193 + ] .
194 +
195 +ep-activity:PressureTestType
196 + rdf:type rdfs:Class ;
197 + rdfs:label "pressure test type"^^xsd:string ;
198 + rdfs:subClassOf owl:Class .
199 +
200 +ep-activity:ProductionActivity
201 + rdf:type owl:Class ;
202 + rdfs:label "Production activity"^^xsd:string ;
203 + rdfs:subClassOf ep-activity:Activity .
204 +
205 +ep-activity:WeeklyDrillingActivity
206 + rdf:type owl:Class ;
207 + rdfs:label "Weekly drilling activity"^^xsd:string ;
208 + rdfs:subClassOf ep-activity:DrillingActivity ;
209 + rdfs:subClassOf
210 + [ rdf:type owl:Restriction ;
211 + owl:allValuesFrom ep-activity:DailyDrillingActivity ;
212 + owl:onProperty ep-activity:hasSubActivity
213 + ] .
214 +
215 +ep-activity:WeeklyProductionActivity
216 + rdf:type owl:Class ;
217 + rdfs:label "Weekly production activity"^^xsd:string ;
218 + rdfs:subClassOf ep-activity:ProductionActivity ;
219 + rdfs:subClassOf
220 + [ rdf:type owl:Restriction ;
221 + owl:allValuesFrom ep-activity:DailyProductionActivity ;
222 + owl:onProperty ep-activity:hasSubActivity
223 + ] .
224 +
225 +ep-activity:WellBoreDrillingType
226 + rdf:type rdfs:Class ;
227 + rdfs:label "well bore drilling type"^^xsd:string ;
228 + rdfs:subClassOf owl:Class .
229 +
230 +ep-activity:WellBorePressureTest
231 + rdf:type owl:Class ;
232 + rdfs:label "well bore pressure test"^^xsd:string ;
233 + rdfs:subClassOf ep-activity:Activity .
234 +
235 +ep-activity:createdAt
236 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
237 + rdfs:label "created at"^^xsd:string ;
238 + rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
239 +
240 +ep-activity:finishedAt
241 + rdf:type owl:DatatypeProperty ;
242 + rdfs:label "finished at"^^xsd:string ;
243 + rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
244 +
245 +ep-activity:hasSubActivity
246 + rdf:type owl:ObjectProperty ;
247 + rdfs:label "has sub activity"^^xsd:string .
248 +
249 +ep-activity:onRig
250 + rdf:type owl:ObjectProperty ;
251 + rdfs:label "on rig"^^xsd:string .
252 +
253 +ep-activity:onWell
254 + rdf:type owl:ObjectProperty ;
255 + rdfs:label "on well"^^xsd:string .
256 +
257 +ep-activity:onWellBore
258 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
259 + rdfs:label "on WellBore"^^xsd:string .
260 +
261 +ep-activity:reportOn
262 + rdf:type owl:ObjectProperty ;
263 + rdfs:label "report on"^^xsd:string .
264 +
265 +ep-activity:startedAt
266 + rdf:type owl:DatatypeProperty ;
267 + rdfs:label "started at"^^xsd:string ;
268 + rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
269 +
270 +ep-activity:wellBoreDrillingType
271 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
272 + rdfs:domain ep-activity:DrillingActivity ;
273 + rdfs:label "has sub activity"^^xsd:string ;
274 + rdfs:range ep-activity:WellBoreDrillingType ;
275 + rdfs:subPropertyOf rdf:type .
276 +
277 +ep-activity:wellboreDrillingContractor
278 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
279 + rdfs:domain <http://www.reportinghub.no/ep/schema/well#WellBore> ;
280 + rdfs:label "wellbore drilling contractor"^^xsd:string ;
281 + rdfs:range organization:Company .
282 +
283 +ep-activity:wellboreOperator
284 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
285 + rdfs:domain <http://www.reportinghub.no/ep/schema/well#WellBore> ;
286 + rdfs:label "wellbore operator"^^xsd:string ;
287 + rdfs:range organization:Company .
288 +
289 +<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
290 + rdf:type ep-activity:DailyDrillingReportFinalisationType .
291 +
292 +<http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport>
293 + rdf:type ep-activity:DailyDrillingReportFinalisationType .
294 +
295 +<http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport>
296 + rdf:type ep-activity:DailyDrillingReportFinalisationType .
1 +# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
1 # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib 2 # baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
2 -# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 # imports: http://www.reportinghub.no/ep/schema/1.0/report 3 # imports: http://www.reportinghub.no/ep/schema/1.0/report
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
9 # imports: http://www.reportinghub.no/ep/schema/1.0/well 5 # imports: http://www.reportinghub.no/ep/schema/1.0/well
6 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
9 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
10 +# imports: http://spinrdf.org/spin
10 # imports: http://www.reportinghub.no/spin/rh 11 # imports: http://www.reportinghub.no/spin/rh
11 12
12 @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> . 13 @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
...@@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI ...@@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI
80 sp:where ([ rdf:type sp:Bind ; 81 sp:where ([ rdf:type sp:Bind ;
81 sp:expression 82 sp:expression
82 [ rdf:type ep-spin-lib:buildURI ; 83 [ rdf:type ep-spin-lib:buildURI ;
83 - sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport#" ; 84 + sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport/" ;
84 sp:arg2 [ rdf:type fn:concat ; 85 sp:arg2 [ rdf:type fn:concat ;
85 sp:arg1 spin:_arg1 ; 86 sp:arg1 spin:_arg1 ;
86 sp:arg2 "$" ; 87 sp:arg2 "$" ;
...@@ -871,13 +872,69 @@ ep-spin-lib:selectDrillingActivityPurposeType ...@@ -871,13 +872,69 @@ ep-spin-lib:selectDrillingActivityPurposeType
871 ]) 872 ])
872 ] . 873 ] .
873 874
875 +ep-spin-lib:selectLabelOfSystem
876 + rdf:type spin:Function ;
877 + rdfs:label "select DailyDrillingReportType"^^xsd:string ;
878 + rdfs:subClassOf ep-spin-lib:Function ;
879 + spin:body
880 + [ rdf:type sp:Select ;
881 + sp:resultVariables (_:b18) ;
882 + sp:where ([ rdf:type sp:Bind ;
883 + sp:expression
884 + [ rdf:type sp:if ;
885 + sp:arg1 [ rdf:type sp:eq ;
886 + sp:arg1 spin:_arg1 ;
887 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_API>
888 + ] ;
889 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#apiName> ;
890 + sp:arg3 [ rdf:type sp:if ;
891 + sp:arg1 [ rdf:type sp:eq ;
892 + sp:arg1 spin:_arg1 ;
893 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_DTI>
894 + ] ;
895 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#dtiName> ;
896 + sp:arg3 [ rdf:type sp:if ;
897 + sp:arg1 [ rdf:type sp:eq ;
898 + sp:arg1 spin:_arg1 ;
899 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDcode>
900 + ] ;
901 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdCode> ;
902 + sp:arg3 [ rdf:type sp:if ;
903 + sp:arg1 [ rdf:type sp:eq ;
904 + sp:arg1 spin:_arg1 ;
905 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDnumber>
906 + ] ;
907 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdNumber> ;
908 + sp:arg3 [ rdf:type sp:if ;
909 + sp:arg1 [ rdf:type sp:eq ;
910 + sp:arg1 spin:_arg1 ;
911 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_localfield>
912 + ] ;
913 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#localFieldName> ;
914 + sp:arg3 [ rdf:type sp:if ;
915 + sp:arg1 [ rdf:type sp:eq ;
916 + sp:arg1 spin:_arg1 ;
917 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_prospect>
918 + ] ;
919 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#prospectName> ;
920 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#name>
921 + ]
922 + ]
923 + ]
924 + ]
925 + ]
926 + ] ;
927 + sp:variable _:b18
928 + ])
929 + ] .
930 +
874 ep-spin-lib:selectPressureTestType 931 ep-spin-lib:selectPressureTestType
875 rdf:type spin:Function ; 932 rdf:type spin:Function ;
876 rdfs:label "select PressureTestType"^^xsd:string ; 933 rdfs:label "select PressureTestType"^^xsd:string ;
877 rdfs:subClassOf ep-spin-lib:Function ; 934 rdfs:subClassOf ep-spin-lib:Function ;
878 spin:body 935 spin:body
879 [ rdf:type sp:Select ; 936 [ rdf:type sp:Select ;
880 - sp:resultVariables (_:b18) ; 937 + sp:resultVariables (_:b19) ;
881 sp:where ([ rdf:type sp:Bind ; 938 sp:where ([ rdf:type sp:Bind ;
882 sp:expression 939 sp:expression
883 [ rdf:type smf:if ; 940 [ rdf:type smf:if ;
...@@ -894,7 +951,7 @@ ep-spin-lib:selectPressureTestType ...@@ -894,7 +951,7 @@ ep-spin-lib:selectPressureTestType
894 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> 951 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
895 ] 952 ]
896 ] ; 953 ] ;
897 - sp:variable _:b18 954 + sp:variable _:b19
898 ]) 955 ])
899 ] . 956 ] .
900 957
...@@ -904,57 +961,60 @@ ep-spin-lib:selectWellBoreDrillingType ...@@ -904,57 +961,60 @@ ep-spin-lib:selectWellBoreDrillingType
904 rdfs:subClassOf ep-spin-lib:Function ; 961 rdfs:subClassOf ep-spin-lib:Function ;
905 spin:body 962 spin:body
906 [ rdf:type sp:Select ; 963 [ rdf:type sp:Select ;
907 - sp:resultVariables (_:b19) ; 964 + sp:resultVariables (_:b20) ;
908 - sp:where ([ sp:object _:b19 ; 965 + sp:where ([ sp:object _:b20 ;
909 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; 966 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
910 sp:subject spin:_arg1 967 sp:subject spin:_arg1
911 ]) 968 ])
912 ] . 969 ] .
913 970
914 -_:b19 971 +_:b7 sp:varName "normalizedStr"^^xsd:string .
915 - sp:varName "wellBoreDrillingType"^^xsd:string .
916 972
917 -_:b16 973 +_:b8 sp:varName "s1"^^xsd:string .
918 - sp:varName "dailyDrillingReportType"^^xsd:string .
919 974
920 -_:b6 sp:varName "uri"^^xsd:string . 975 +_:b9 sp:varName "s2"^^xsd:string .
921 976
922 -_:b1 sp:varName "uri"^^xsd:string . 977 +_:b10
978 + sp:varName "t0a"^^xsd:string .
923 979
924 -_:b18 980 +_:b11
925 - sp:varName "pressureTestType"^^xsd:string . 981 + sp:varName "t0b"^^xsd:string .
926 982
927 -_:b17 983 +_:b12
928 - sp:varName "drillingActivityPurposeType"^^xsd:string . 984 + sp:varName "t1"^^xsd:string .
929 985
930 -_:b15 986 +_:b13
931 - sp:varName "t4"^^xsd:string . 987 + sp:varName "t2"^^xsd:string .
932 988
933 _:b14 989 _:b14
934 sp:varName "t3"^^xsd:string . 990 sp:varName "t3"^^xsd:string .
935 991
936 -_:b13 992 +_:b15
937 - sp:varName "t2"^^xsd:string . 993 + sp:varName "t4"^^xsd:string .
938 994
939 -_:b12 995 +_:b16
940 - sp:varName "t1"^^xsd:string . 996 + sp:varName "dailyDrillingReportType"^^xsd:string .
941 997
942 -_:b11 998 +_:b17
943 - sp:varName "t0b"^^xsd:string . 999 + sp:varName "drillingActivityPurposeType"^^xsd:string .
944 1000
945 -_:b10 1001 +_:b19
946 - sp:varName "t0a"^^xsd:string . 1002 + sp:varName "pressureTestType"^^xsd:string .
947 1003
948 -_:b9 sp:varName "s2"^^xsd:string . 1004 +_:b20
1005 + sp:varName "wellBoreDrillingType"^^xsd:string .
949 1006
950 -_:b8 sp:varName "s1"^^xsd:string . 1007 +_:b18
1008 + sp:varName "dailyDrillingReportType"^^xsd:string .
951 1009
952 -_:b7 sp:varName "normalizedStr"^^xsd:string . 1010 +_:b1 sp:varName "uri"^^xsd:string .
953 1011
954 -_:b5 sp:varName "uri"^^xsd:string . 1012 +_:b2 sp:varName "uri"^^xsd:string .
1013 +
1014 +_:b3 sp:varName "uri"^^xsd:string .
955 1015
956 _:b4 sp:varName "uri"^^xsd:string . 1016 _:b4 sp:varName "uri"^^xsd:string .
957 1017
958 -_:b3 sp:varName "uri"^^xsd:string . 1018 +_:b5 sp:varName "uri"^^xsd:string .
959 1019
960 -_:b2 sp:varName "uri"^^xsd:string . 1020 +_:b6 sp:varName "uri"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
1 +# Saved by TopBraid on Wed Aug 10 11:13:52 BST 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
2 -# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 # imports: http://www.reportinghub.no/ep/schema/1.0/report 3 # imports: http://www.reportinghub.no/ep/schema/1.0/report
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/well
10 # 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.reportinghub.no/ep/schema/1.0/well
6 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
9 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 10 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
11 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
12 +# imports: http://spinrdf.org/spin
12 13
13 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . 14 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
14 @prefix arg: <http://spinrdf.org/arg#> . 15 @prefix arg: <http://spinrdf.org/arg#> .
...@@ -31,120 +32,88 @@ ...@@ -31,120 +32,88 @@
31 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> 32 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
32 spin:rule 33 spin:rule
33 [ rdf:type sp:Construct ; 34 [ rdf:type sp:Construct ;
34 - rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore 35 + rdfs:comment "STEP 104 Create Well"^^xsd:string ;
35 -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; 36 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
36 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
37 sp:predicate rdf:type ; 37 sp:predicate rdf:type ;
38 sp:subject _:b1 38 sp:subject _:b1
39 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
40 - sp:predicate rdf:type ;
41 - sp:subject _:b2
42 ] [ sp:object _:b2 ; 39 ] [ sp:object _:b2 ;
43 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; 40 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
44 - sp:subject _:b1
45 - ] [ sp:object _:b3 ;
46 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
47 sp:subject _:b1 41 sp:subject _:b1
42 + ] [ sp:object _:b1 ;
43 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
44 + sp:subject _:b3
48 ] [ sp:object _:b4 ; 45 ] [ sp:object _:b4 ;
49 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 46 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
50 - sp:subject _:b2 47 + sp:subject _:b1
51 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
52 - sp:predicate rdf:type ;
53 - sp:subject _:b5
54 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
55 - sp:predicate rdf:type ;
56 - sp:subject _:b6
57 - ] [ sp:object _:b6 ;
58 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
59 - sp:subject _:b5
60 - ] [ sp:object _:b7 ;
61 - sp:predicate rdfs:label ;
62 - sp:subject _:b6
63 - ] [ sp:object _:b5 ;
64 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
65 - sp:subject _:b2
66 ]) ; 48 ]) ;
67 - sp:where ([ sp:object _:b7 ; 49 + sp:where ([ sp:object _:b5 ;
68 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 50 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
69 sp:subject spin:_this 51 sp:subject spin:_this
70 - ] [ sp:object _:b4 ; 52 + ] [ sp:object _:b2 ;
71 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 53 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
72 sp:subject spin:_this 54 sp:subject spin:_this
73 - ] [ sp:object _:b8 ; 55 + ] [ sp:object _:b6 ;
74 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 56 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
75 sp:subject spin:_this 57 sp:subject spin:_this
76 - ] [ sp:object _:b3 ; 58 + ] [ sp:object _:b7 ;
77 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 59 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
78 - sp:subject spin:_this 60 + sp:subject _:b3
61 + ] [ sp:object _:b4 ;
62 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
63 + sp:subject _:b7
79 ] [ rdf:type sp:Bind ; 64 ] [ rdf:type sp:Bind ;
80 sp:expression 65 sp:expression
81 [ rdf:type ep-spin-lib:normalizeString ; 66 [ rdf:type ep-spin-lib:normalizeString ;
82 - sp:arg1 _:b7 67 + sp:arg1 _:b5
83 - ] ;
84 - sp:variable _:b9
85 - ] [ rdf:type sp:Bind ;
86 - sp:expression
87 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
88 - sp:arg1 _:b9 ;
89 - sp:arg2 _:b3
90 ] ; 68 ] ;
91 - sp:variable _:b1 69 + sp:variable _:b8
92 ] [ rdf:type sp:Bind ; 70 ] [ rdf:type sp:Bind ;
93 sp:expression 71 sp:expression
94 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 72 [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
95 - sp:arg1 _:b9 ; 73 + sp:arg1 _:b8 ;
96 - sp:arg2 _:b4 74 + sp:arg2 _:b6
97 ] ; 75 ] ;
98 - sp:variable _:b2 76 + sp:variable _:b3
99 ] [ rdf:type sp:Bind ; 77 ] [ rdf:type sp:Bind ;
100 sp:expression 78 sp:expression
101 - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; 79 + [ rdf:type ep-spin-lib:normalizeString ;
102 - sp:arg1 _:b9 ; 80 + sp:arg1 _:b2
103 - sp:arg2 _:b4 ;
104 - sp:arg3 _:b8
105 ] ; 81 ] ;
106 - sp:variable _:b5 82 + sp:variable _:b9
107 ] [ rdf:type sp:Bind ; 83 ] [ rdf:type sp:Bind ;
108 sp:expression 84 sp:expression
109 - [ rdf:type rhspin:wellBoreByName ; 85 + [ rdf:type rhspin:wellByName ;
110 - arg:wellBoreName _:b7 86 + arg:wellName _:b9
111 ] ; 87 ] ;
112 - sp:variable _:b6 88 + sp:variable _:b1
113 ]) 89 ])
114 ] ; 90 ] ;
115 spin:rule 91 spin:rule
116 [ rdf:type sp:Construct ; 92 [ rdf:type sp:Construct ;
117 - rdfs:comment """STEP 103 93 + rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
118 -Classify a DailyDrillingReport"""^^xsd:string ;
119 sp:templates ([ sp:object _:b10 ; 94 sp:templates ([ sp:object _:b10 ;
120 - sp:predicate rdf:type ; 95 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
121 sp:subject _:b11 96 sp:subject _:b11
122 ]) ; 97 ]) ;
123 sp:where ([ sp:object _:b12 ; 98 sp:where ([ sp:object _:b12 ;
124 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 99 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
125 sp:subject spin:_this 100 sp:subject spin:_this
126 ] [ sp:object _:b13 ; 101 ] [ sp:object _:b13 ;
127 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 102 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
128 sp:subject spin:_this 103 sp:subject spin:_this
129 - ] [ sp:object _:b14 ; 104 + ] [ sp:object _:b10 ;
130 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ; 105 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
131 sp:subject spin:_this 106 sp:subject spin:_this
132 ] [ rdf:type sp:Bind ; 107 ] [ rdf:type sp:Bind ;
133 sp:expression 108 sp:expression
134 - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
135 - sp:arg1 _:b14
136 - ] ;
137 - sp:variable _:b10
138 - ] [ rdf:type sp:Bind ;
139 - sp:expression
140 [ rdf:type ep-spin-lib:normalizeString ; 109 [ rdf:type ep-spin-lib:normalizeString ;
141 sp:arg1 _:b12 110 sp:arg1 _:b12
142 ] ; 111 ] ;
143 - sp:variable _:b15 112 + sp:variable _:b14
144 ] [ rdf:type sp:Bind ; 113 ] [ rdf:type sp:Bind ;
145 sp:expression 114 sp:expression
146 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 115 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
147 - sp:arg1 _:b15 ; 116 + sp:arg1 _:b14 ;
148 sp:arg2 _:b13 117 sp:arg2 _:b13
149 ] ; 118 ] ;
150 sp:variable _:b11 119 sp:variable _:b11
...@@ -152,214 +121,252 @@ Classify a DailyDrillingReport"""^^xsd:string ; ...@@ -152,214 +121,252 @@ Classify a DailyDrillingReport"""^^xsd:string ;
152 ] ; 121 ] ;
153 spin:rule 122 spin:rule
154 [ rdf:type sp:Construct ; 123 [ rdf:type sp:Construct ;
155 - rdfs:comment """STEP 101a Set name of DailyDrillingReport as label 124 + rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
156 Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; 125 Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
157 - sp:templates ([ sp:object _:b16 ; 126 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
158 - sp:predicate rdfs:label ; 127 + sp:predicate rdf:type ;
159 - sp:subject _:b17 128 + sp:subject _:b15
129 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
130 + sp:predicate rdf:type ;
131 + sp:subject _:b16
132 + ] [ sp:object _:b16 ;
133 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
134 + sp:subject _:b15
135 + ] [ sp:object _:b17 ;
136 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
137 + sp:subject _:b15
138 + ] [ sp:object _:b18 ;
139 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
140 + sp:subject _:b16
141 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
142 + sp:predicate rdf:type ;
143 + sp:subject _:b19
144 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
145 + sp:predicate rdf:type ;
146 + sp:subject _:b20
147 + ] [ sp:object _:b20 ;
148 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
149 + sp:subject _:b19
150 + ] [ sp:object _:b21 ;
151 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
152 + sp:subject _:b20
153 + ] [ sp:object _:b19 ;
154 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
155 + sp:subject _:b16
160 ]) ; 156 ]) ;
161 - sp:where ([ sp:object _:b18 ; 157 + sp:where ([ sp:object _:b21 ;
162 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 158 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
163 sp:subject spin:_this 159 sp:subject spin:_this
164 - ] [ sp:object _:b16 ; 160 + ] [ sp:object _:b18 ;
165 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; 161 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
166 sp:subject spin:_this 162 sp:subject spin:_this
167 - ] [ sp:object _:b19 ; 163 + ] [ sp:object _:b22 ;
164 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
165 + sp:subject spin:_this
166 + ] [ sp:object _:b17 ;
168 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 167 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
169 sp:subject spin:_this 168 sp:subject spin:_this
170 ] [ rdf:type sp:Bind ; 169 ] [ rdf:type sp:Bind ;
171 sp:expression 170 sp:expression
172 [ rdf:type ep-spin-lib:normalizeString ; 171 [ rdf:type ep-spin-lib:normalizeString ;
173 - sp:arg1 _:b18 172 + sp:arg1 _:b21
174 ] ; 173 ] ;
175 - sp:variable _:b20 174 + sp:variable _:b23
176 ] [ rdf:type sp:Bind ; 175 ] [ rdf:type sp:Bind ;
177 sp:expression 176 sp:expression
178 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 177 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
179 - sp:arg1 _:b20 ; 178 + sp:arg1 _:b23 ;
180 - sp:arg2 _:b19 179 + sp:arg2 _:b17
181 ] ; 180 ] ;
182 - sp:variable _:b17 181 + sp:variable _:b15
183 - ]) 182 + ] [ rdf:type sp:Bind ;
183 + sp:expression
184 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
185 + sp:arg1 _:b23 ;
186 + sp:arg2 _:b18
184 ] ; 187 ] ;
185 - spin:rule 188 + sp:variable _:b16
186 - [ rdf:type sp:Construct ;
187 - rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
188 - sp:templates ([ sp:object _:b21 ;
189 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
190 - sp:subject _:b22
191 - ]) ;
192 - sp:where ([ sp:object _:b23 ;
193 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
194 - sp:subject spin:_this
195 - ] [ sp:object _:b24 ;
196 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
197 - sp:subject spin:_this
198 - ] [ sp:object _:b21 ;
199 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
200 - sp:subject spin:_this
201 ] [ rdf:type sp:Bind ; 189 ] [ rdf:type sp:Bind ;
202 sp:expression 190 sp:expression
203 - [ rdf:type ep-spin-lib:normalizeString ; 191 + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
204 - sp:arg1 _:b23 192 + sp:arg1 _:b23 ;
193 + sp:arg2 _:b18 ;
194 + sp:arg3 _:b22
205 ] ; 195 ] ;
206 - sp:variable _:b25 196 + sp:variable _:b19
207 ] [ rdf:type sp:Bind ; 197 ] [ rdf:type sp:Bind ;
208 sp:expression 198 sp:expression
209 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 199 + [ rdf:type rhspin:wellBoreByName ;
210 - sp:arg1 _:b25 ; 200 + arg:wellBoreName _:b21
211 - sp:arg2 _:b24
212 ] ; 201 ] ;
213 - sp:variable _:b22 202 + sp:variable _:b20
214 ]) 203 ])
215 ] ; 204 ] ;
216 spin:rule 205 spin:rule
217 [ rdf:type sp:Construct ; 206 [ rdf:type sp:Construct ;
218 - rdfs:comment "STEP 104 Create Well"^^xsd:string ; 207 + rdfs:comment """STEP 103
219 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 208 +Classify a DailyDrillingReport"""^^xsd:string ;
209 + sp:templates ([ sp:object _:b24 ;
220 sp:predicate rdf:type ; 210 sp:predicate rdf:type ;
221 - sp:subject _:b26 211 + sp:subject _:b25
222 - ] [ sp:object _:b27 ;
223 - sp:predicate rdfs:label ;
224 - sp:subject _:b26
225 - ] [ sp:object _:b26 ;
226 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
227 - sp:subject _:b28
228 - ] [ sp:object _:b29 ;
229 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
230 - sp:subject _:b26
231 ]) ; 212 ]) ;
232 - sp:where ([ sp:object _:b30 ; 213 + sp:where ([ sp:object _:b26 ;
233 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 214 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
234 sp:subject spin:_this 215 sp:subject spin:_this
235 ] [ sp:object _:b27 ; 216 ] [ sp:object _:b27 ;
236 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ; 217 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
237 sp:subject spin:_this 218 sp:subject spin:_this
238 - ] [ sp:object _:b31 ; 219 + ] [ sp:object _:b28 ;
239 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 220 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
240 sp:subject spin:_this 221 sp:subject spin:_this
241 - ] [ sp:object _:b29 ; 222 + ] [ rdf:type sp:Bind ;
242 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 223 + sp:expression
243 - sp:subject _:b28 224 + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
225 + sp:arg1 _:b28
226 + ] ;
227 + sp:variable _:b24
244 ] [ rdf:type sp:Bind ; 228 ] [ rdf:type sp:Bind ;
245 sp:expression 229 sp:expression
246 [ rdf:type ep-spin-lib:normalizeString ; 230 [ rdf:type ep-spin-lib:normalizeString ;
247 - sp:arg1 _:b30 231 + sp:arg1 _:b26
248 ] ; 232 ] ;
249 - sp:variable _:b32 233 + sp:variable _:b29
250 ] [ rdf:type sp:Bind ; 234 ] [ rdf:type sp:Bind ;
251 sp:expression 235 sp:expression
252 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 236 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
253 - sp:arg1 _:b32 ; 237 + sp:arg1 _:b29 ;
254 - sp:arg2 _:b31 238 + sp:arg2 _:b27
239 + ] ;
240 + sp:variable _:b25
241 + ])
255 ] ; 242 ] ;
256 - sp:variable _:b28 243 + spin:rule
244 + [ rdf:type sp:Construct ;
245 + rdfs:comment """STEP 101a Set name of DailyDrillingReport as label
246 +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
247 + sp:templates ([ sp:object _:b30 ;
248 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
249 + sp:subject _:b31
250 + ]) ;
251 + sp:where ([ sp:object _:b32 ;
252 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
253 + sp:subject spin:_this
254 + ] [ sp:object _:b30 ;
255 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
256 + sp:subject spin:_this
257 + ] [ sp:object _:b33 ;
258 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
259 + sp:subject spin:_this
257 ] [ rdf:type sp:Bind ; 260 ] [ rdf:type sp:Bind ;
258 sp:expression 261 sp:expression
259 [ rdf:type ep-spin-lib:normalizeString ; 262 [ rdf:type ep-spin-lib:normalizeString ;
260 - sp:arg1 _:b27 263 + sp:arg1 _:b32
261 ] ; 264 ] ;
262 - sp:variable _:b33 265 + sp:variable _:b34
263 ] [ rdf:type sp:Bind ; 266 ] [ rdf:type sp:Bind ;
264 sp:expression 267 sp:expression
265 - [ rdf:type rhspin:wellByName ; 268 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
266 - sp:arg1 _:b33 269 + sp:arg1 _:b34 ;
270 + sp:arg2 _:b33
267 ] ; 271 ] ;
268 - sp:variable _:b26 272 + sp:variable _:b31
269 ]) 273 ])
270 ] . 274 ] .
271 275
272 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 276 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
273 rdf:type owl:Ontology ; 277 rdf:type owl:Ontology ;
274 - 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.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ; 278 + 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.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
275 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 279 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
276 280
277 -_:b6 sp:varName "wellBore"^^xsd:string . 281 +_:b32
278 - 282 + sp:varName "nameWellBore"^^xsd:string .
279 -_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
280 283
281 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . 284 +_:b30
285 + sp:varName "nameDailyDrillingReport"^^xsd:string .
282 286
283 -_:b1 sp:varName "dailyDrillingReport"^^xsd:string . 287 +_:b33
288 + sp:varName "createDate"^^xsd:string .
284 289
285 -_:b9 sp:varName "normalizedWellBoreName"^^xsd:string . 290 +_:b34
291 + sp:varName "normalizedWellBoreName"^^xsd:string .
286 292
287 -_:b3 sp:varName "createDate"^^xsd:string . 293 +_:b31
294 + sp:varName "dailyDrillingReport"^^xsd:string .
288 295
289 -_:b8 sp:varName "dTimEnd"^^xsd:string . 296 +_:b21
297 + sp:varName "nameWellBore"^^xsd:string .
290 298
291 -_:b4 sp:varName "dTimStart"^^xsd:string . 299 +_:b18
300 + sp:varName "dTimStart"^^xsd:string .
292 301
293 -_:b7 sp:varName "nameWellBore"^^xsd:string . 302 +_:b22
303 + sp:varName "dTimEnd"^^xsd:string .
294 304
295 -_:b33 305 +_:b17
296 - sp:varName "normalizedWellName"^^xsd:string . 306 + sp:varName "createDate"^^xsd:string .
297 307
298 -_:b32 308 +_:b23
299 sp:varName "normalizedWellBoreName"^^xsd:string . 309 sp:varName "normalizedWellBoreName"^^xsd:string .
300 310
301 -_:b31 311 +_:b15
302 - sp:varName "dTimStart"^^xsd:string . 312 + sp:varName "dailyDrillingReport"^^xsd:string .
303 313
304 -_:b30 314 +_:b16
305 - sp:varName "nameWellBore"^^xsd:string . 315 + sp:varName "dailyDrillingActivity"^^xsd:string .
306 316
307 -_:b29 317 +_:b19
318 + sp:varName "temporalPartOfAWellBore"^^xsd:string .
319 +
320 +_:b20
308 sp:varName "wellBore"^^xsd:string . 321 sp:varName "wellBore"^^xsd:string .
309 322
310 -_:b28 323 +_:b5 sp:varName "nameWellBore"^^xsd:string .
311 - sp:varName "dailyDrillingActivity"^^xsd:string .
312 324
313 -_:b27 325 +_:b2 sp:varName "nameWell"^^xsd:string .
314 - sp:varName "nameWell"^^xsd:string .
315 326
316 -_:b26 327 +_:b6 sp:varName "dTimStart"^^xsd:string .
317 - sp:varName "well"^^xsd:string .
318 328
319 -_:b15 329 +_:b3 sp:varName "dailyDrillingActivity"^^xsd:string .
320 - sp:varName "normalizedWellBoreName"^^xsd:string .
321 330
322 -_:b14 331 +_:b7 sp:varName "temporalPartOfAWellBore"^^xsd:string .
323 - sp:varName "versionKind"^^xsd:string .
324 332
325 -_:b13 333 +_:b4 sp:varName "wellBore"^^xsd:string .
326 - sp:varName "createDate"^^xsd:string .
327 334
328 -_:b12 335 +_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
329 - sp:varName "nameWellBore"^^xsd:string .
330 336
331 -_:b11 337 +_:b9 sp:varName "normalizedWellName"^^xsd:string .
332 - sp:varName "dailyDrillingReport"^^xsd:string .
333 338
334 -_:b10 339 +_:b1 sp:varName "well"^^xsd:string .
335 - sp:varName "dailyDrillingReportType"^^xsd:string .
336 340
337 -_:b20 341 +_:b24
338 - sp:varName "normalizedWellBoreName"^^xsd:string . 342 + sp:varName "dailyDrillingReportType"^^xsd:string .
339 343
340 -_:b19 344 +_:b25
341 - sp:varName "createDate"^^xsd:string . 345 + sp:varName "dailyDrillingReport"^^xsd:string .
342 346
343 -_:b18 347 +_:b26
344 sp:varName "nameWellBore"^^xsd:string . 348 sp:varName "nameWellBore"^^xsd:string .
345 349
346 -_:b17 350 +_:b27
347 - sp:varName "dailyDrillingReport"^^xsd:string . 351 + sp:varName "createDate"^^xsd:string .
348 352
349 -_:b16 353 +_:b28
350 - sp:varName "nameDailyDrillingReport"^^xsd:string . 354 + sp:varName "versionKind"^^xsd:string .
351 355
352 -_:b25 356 +_:b29
353 sp:varName "normalizedWellBoreName"^^xsd:string . 357 sp:varName "normalizedWellBoreName"^^xsd:string .
354 358
355 -_:b24 359 +_:b10
356 - sp:varName "dTimStart"^^xsd:string . 360 + sp:varName "dTimEnd"^^xsd:string .
357 361
358 -_:b23 362 +_:b11
363 + sp:varName "dailyDrillingActivity"^^xsd:string .
364 +
365 +_:b12
359 sp:varName "nameWellBore"^^xsd:string . 366 sp:varName "nameWellBore"^^xsd:string .
360 367
361 -_:b22 368 +_:b13
362 - sp:varName "dailyDrillingActivity"^^xsd:string . 369 + sp:varName "dTimStart"^^xsd:string .
363 370
364 -_:b21 371 +_:b14
365 - sp:varName "dTimEnd"^^xsd:string . 372 + sp:varName "normalizedWellBoreName"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 11:13:52 BST 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
1 +# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
2 -# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/report
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/well
10 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity 3 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
4 +# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 5 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
12 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo 6 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
13 7
...@@ -20,11 +14,12 @@ ...@@ -20,11 +14,12 @@
20 @prefix sp: <http://spinrdf.org/sp#> . 14 @prefix sp: <http://spinrdf.org/sp#> .
21 @prefix spin: <http://spinrdf.org/spin#> . 15 @prefix spin: <http://spinrdf.org/spin#> .
22 @prefix spl: <http://spinrdf.org/spl#> . 16 @prefix spl: <http://spinrdf.org/spl#> .
17 +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
23 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 18 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
24 19
25 <http://www.reportinghub.no/ep/transform/1.1/normalization> 20 <http://www.reportinghub.no/ep/transform/1.1/normalization>
26 rdf:type owl:Ontology ; 21 rdf:type owl:Ontology ;
27 - owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ; 22 + owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
28 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
29 24
30 owl:Thing 25 owl:Thing
...@@ -65,8 +60,8 @@ owl:Thing ...@@ -65,8 +60,8 @@ owl:Thing
65 ]) 60 ])
66 ] . 61 ] .
67 62
68 -_:b3 sp:varName "newLabel"^^xsd:string . 63 +_:b1 sp:varName "oldLabel"^^xsd:string .
69 64
70 _:b2 sp:varName "p"^^xsd:string . 65 _:b2 sp:varName "p"^^xsd:string .
71 66
72 -_:b1 sp:varName "oldLabel"^^xsd:string . 67 +_:b3 sp:varName "newLabel"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......