Holger Knublauch

Merge branch 'master' of

https://github.com/TopQuadrant/EPIM-Ontologies.git

Conflicts:
	www.reportinghub.no/swp/DailyDrillingReport.uispin.html

Also: linked download page to new service
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 <div id="content"> 27 <div id="content">
28 28
29 <h3>Download a Daily Drilling Report</h3> 29 <h3>Download a Daily Drilling Report</h3>
30 - <form action="ddrFileDownload"> 30 + <form action="download-report">
31 31
32 <table> 32 <table>
33 <tr> 33 <tr>
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
58 <td style="padding-left:20px; vertical-align: top"> 58 <td style="padding-left:20px; vertical-align: top">
59 <div> 59 <div>
60 <div class="formHeader">2. Select Well Bore:</div> 60 <div class="formHeader">2. Select Well Bore:</div>
61 - <select size="5" id="wellBoreSelect" style="width:200px"> 61 + <select size="5" id="wellBoreSelect" name="wellboreId" style="width:200px">
62 </select> 62 </select>
63 </div><br /> 63 </div><br />
64 <div> 64 <div>
65 <div class="formHeader">3. Select Date(s):</div> 65 <div class="formHeader">3. Select Date(s):</div>
66 - <input type="text" id="datepicker1" name="date1" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="date2" style="width: 90px" /> 66 + <input type="text" id="datepicker1" name="timeFrom" style="width: 90px" />&nbsp;-&nbsp;<input type="text" id="datepicker2" name="timeTo" style="width: 90px" />
67 <script> 67 <script>
68 $(function() { 68 $(function() {
69 $("#datepicker1").datepicker(); 69 $("#datepicker1").datepicker();
......
1 +# Saved by TopBraid on Wed Aug 10 13:54:55 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,6 +24,12 @@ ep-core:PhysicalThing ...@@ -23,6 +24,12 @@ 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:FunctionalProperty , owl:DatatypeProperty ;
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 .
...@@ -31,6 +38,12 @@ ep-core:derivedFrom ...@@ -31,6 +38,12 @@ ep-core:derivedFrom
31 rdf:type owl:TransitiveProperty , owl:ObjectProperty ; 38 rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
32 rdfs:label "derived from"^^xsd:string . 39 rdfs:label "derived from"^^xsd:string .
33 40
41 +ep-core:dtiName
42 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
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,35 @@ ep-core:hasTemporalPart ...@@ -46,11 +59,35 @@ 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:FunctionalProperty , owl:DatatypeProperty ;
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:FunctionalProperty , owl:DatatypeProperty ;
75 + rdfs:label "NPD code"^^xsd:string ;
76 + rdfs:range xsd:string ;
77 + rdfs:subPropertyOf ep-core:name .
78 +
79 +ep-core:npdName
80 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
81 + rdfs:label "NPD name"^^xsd:string ;
82 + rdfs:range xsd:string ;
83 + rdfs:subPropertyOf ep-core:name .
84 +
85 +ep-core:npdNumber
86 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
87 + rdfs:label "NPD number"^^xsd:string ;
88 + rdfs:range xsd:string ;
89 + rdfs:subPropertyOf ep-core:name .
90 +
54 ep-core:partOf 91 ep-core:partOf
55 rdf:type owl:TransitiveProperty ; 92 rdf:type owl:TransitiveProperty ;
56 rdfs:domain ep-core:PhysicalThing ; 93 rdfs:domain ep-core:PhysicalThing ;
...@@ -58,6 +95,12 @@ ep-core:partOf ...@@ -58,6 +95,12 @@ ep-core:partOf
58 rdfs:range ep-core:PhysicalThing ; 95 rdfs:range ep-core:PhysicalThing ;
59 owl:inverseOf ep-core:hasPart . 96 owl:inverseOf ep-core:hasPart .
60 97
98 +ep-core:prospectName
99 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
100 + rdfs:label "prospect name"^^xsd:string ;
101 + rdfs:range xsd:string ;
102 + rdfs:subPropertyOf ep-core:name .
103 +
61 ep-core:temporalPartOf 104 ep-core:temporalPartOf
62 rdf:type owl:TransitiveProperty ; 105 rdf:type owl:TransitiveProperty ;
63 rdfs:domain ep-core:PhysicalThing ; 106 rdfs:domain ep-core:PhysicalThing ;
......
1 +# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011
1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility 2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
2 # imports: http://purl.org/dc/elements/1.1/ 4 # imports: http://purl.org/dc/elements/1.1/
3 -# imports: http://purl.org/dc/terms/
4 # imports: http://spinrdf.org/spin 5 # imports: http://spinrdf.org/spin
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 6 +# imports: http://purl.org/dc/terms/
6 7
7 @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . 8 @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
8 @prefix owl: <http://www.w3.org/2002/07/owl#> . 9 @prefix owl: <http://www.w3.org/2002/07/owl#> .
...@@ -15,9 +16,14 @@ ...@@ -15,9 +16,14 @@
15 16
16 <http://www.reportinghub.no/ep/schema/1.0/facility> 17 <http://www.reportinghub.no/ep/schema/1.0/facility>
17 rdf:type owl:Ontology ; 18 rdf:type owl:Ontology ;
18 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ; 19 + owl:imports <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
19 owl:versionInfo "0.1.0"^^xsd:string . 20 owl:versionInfo "0.1.0"^^xsd:string .
20 21
22 +ep-fac:AllOrPartOfTheLifeOfARig
23 + rdf:type owl:Class ;
24 + rdfs:label "all or part of the life of a rig"^^xsd:string ;
25 + rdfs:subClassOf ep-fac:Facility .
26 +
21 ep-fac:Facility 27 ep-fac:Facility
22 rdf:type owl:Class ; 28 rdf:type owl:Class ;
23 rdfs:label "facility"^^xsd:string ; 29 rdfs:label "facility"^^xsd:string ;
...@@ -33,7 +39,8 @@ ep-fac:MoveableFacility ...@@ -33,7 +39,8 @@ ep-fac:MoveableFacility
33 39
34 ep-fac:Rig 40 ep-fac:Rig
35 rdf:type owl:Class ; 41 rdf:type owl:Class ;
36 - rdfs:subClassOf ep-fac:Facility . 42 + rdfs:label "rig"^^xsd:string ;
43 + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
37 44
38 ep-fac:SubSurfaceFixedFacility 45 ep-fac:SubSurfaceFixedFacility
39 rdf:type owl:Class ; 46 rdf:type owl:Class ;
...@@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility ...@@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility
42 ep-fac:SurfaceFixedFacility 49 ep-fac:SurfaceFixedFacility
43 rdf:type owl:Class ; 50 rdf:type owl:Class ;
44 rdfs:subClassOf ep-fac:FixedFacility . 51 rdfs:subClassOf ep-fac:FixedFacility .
52 +
53 +ep-fac:TemporalPartOfARig
54 + rdf:type owl:Class ;
55 + rdfs:label "temporal part of a rig"^^xsd:string ;
56 + rdfs:subClassOf ep-fac:AllOrPartOfTheLifeOfARig .
......
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 13:36:32 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 "$" ;
...@@ -114,13 +115,53 @@ ep-spin-lib:buildPartActivityURI ...@@ -114,13 +115,53 @@ ep-spin-lib:buildPartActivityURI
114 ]) 115 ])
115 ] . 116 ] .
116 117
118 +ep-spin-lib:buildRigURI
119 + rdf:type spin:Function ;
120 + rdfs:label "build Rig URI"^^xsd:string ;
121 + rdfs:subClassOf ep-spin-lib:Function ;
122 + spin:body
123 + [ rdf:type sp:Select ;
124 + sp:resultVariables (_:b5) ;
125 + sp:where ([ rdf:type sp:Bind ;
126 + sp:expression
127 + [ rdf:type ep-spin-lib:buildURI ;
128 + sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ;
129 + sp:arg2 spin:_arg1
130 + ] ;
131 + sp:variable _:b5
132 + ])
133 + ] .
134 +
135 +ep-spin-lib:buildTemporalPartOfARigURI
136 + rdf:type spin:Function ;
137 + rdfs:label "build TemporalPartOfRig URI"^^xsd:string ;
138 + rdfs:subClassOf ep-spin-lib:Function ;
139 + spin:body
140 + [ rdf:type sp:Select ;
141 + sp:resultVariables (_:b6) ;
142 + sp:where ([ rdf:type sp:Bind ;
143 + sp:expression
144 + [ rdf:type ep-spin-lib:buildURI ;
145 + sp:arg1 "https://www.reportinghub.no/ep/data/Rig/" ;
146 + sp:arg2 [ rdf:type fn:concat ;
147 + sp:arg1 spin:_arg1 ;
148 + sp:arg2 "$" ;
149 + sp:arg3 spin:_arg2 ;
150 + sp:arg4 "$" ;
151 + sp:arg5 spin:_arg3
152 + ]
153 + ] ;
154 + sp:variable _:b6
155 + ])
156 + ] .
157 +
117 ep-spin-lib:buildTemporalPartOfAWellBoreURI 158 ep-spin-lib:buildTemporalPartOfAWellBoreURI
118 rdf:type spin:Function ; 159 rdf:type spin:Function ;
119 rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ; 160 rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ;
120 rdfs:subClassOf ep-spin-lib:Function ; 161 rdfs:subClassOf ep-spin-lib:Function ;
121 spin:body 162 spin:body
122 [ rdf:type sp:Select ; 163 [ rdf:type sp:Select ;
123 - sp:resultVariables (_:b5) ; 164 + sp:resultVariables (_:b7) ;
124 sp:where ([ rdf:type sp:Bind ; 165 sp:where ([ rdf:type sp:Bind ;
125 sp:expression 166 sp:expression
126 [ rdf:type ep-spin-lib:buildURI ; 167 [ rdf:type ep-spin-lib:buildURI ;
...@@ -133,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI ...@@ -133,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
133 sp:arg5 spin:_arg3 174 sp:arg5 spin:_arg3
134 ] 175 ]
135 ] ; 176 ] ;
136 - sp:variable _:b5 177 + sp:variable _:b7
137 ]) 178 ])
138 ] . 179 ] .
139 180
...@@ -143,7 +184,7 @@ ep-spin-lib:buildURI ...@@ -143,7 +184,7 @@ ep-spin-lib:buildURI
143 rdfs:subClassOf ep-spin-lib:Function ; 184 rdfs:subClassOf ep-spin-lib:Function ;
144 spin:body 185 spin:body
145 [ rdf:type sp:Select ; 186 [ rdf:type sp:Select ;
146 - sp:resultVariables (_:b6) ; 187 + sp:resultVariables (_:b8) ;
147 sp:where ([ rdf:type sp:Bind ; 188 sp:where ([ rdf:type sp:Bind ;
148 sp:expression 189 sp:expression
149 [ rdf:type sp:iri ; 190 [ rdf:type sp:iri ;
...@@ -152,17 +193,17 @@ ep-spin-lib:buildURI ...@@ -152,17 +193,17 @@ ep-spin-lib:buildURI
152 sp:arg2 spin:_arg2 193 sp:arg2 spin:_arg2
153 ] 194 ]
154 ] ; 195 ] ;
155 - sp:variable _:b6 196 + sp:variable _:b8
156 ]) 197 ])
157 ] ; 198 ] ;
158 spin:constraint 199 spin:constraint
159 [ rdf:type spl:Argument ; 200 [ rdf:type spl:Argument ;
160 - spl:predicate sp:arg2 ; 201 + spl:predicate sp:arg1 ;
161 spl:valueType xsd:string 202 spl:valueType xsd:string
162 ] ; 203 ] ;
163 spin:constraint 204 spin:constraint
164 [ rdf:type spl:Argument ; 205 [ rdf:type spl:Argument ;
165 - spl:predicate sp:arg1 ; 206 + spl:predicate sp:arg2 ;
166 spl:valueType xsd:string 207 spl:valueType xsd:string
167 ] . 208 ] .
168 209
...@@ -172,7 +213,7 @@ ep-spin-lib:normalizeString ...@@ -172,7 +213,7 @@ ep-spin-lib:normalizeString
172 rdfs:subClassOf ep-spin-lib:Function ; 213 rdfs:subClassOf ep-spin-lib:Function ;
173 spin:body 214 spin:body
174 [ rdf:type sp:Select ; 215 [ rdf:type sp:Select ;
175 - sp:resultVariables (_:b7) ; 216 + sp:resultVariables (_:b9) ;
176 sp:where ([ rdf:type sp:Bind ; 217 sp:where ([ rdf:type sp:Bind ;
177 sp:expression 218 sp:expression
178 [ rdf:type smf:regex ; 219 [ rdf:type smf:regex ;
...@@ -180,67 +221,67 @@ ep-spin-lib:normalizeString ...@@ -180,67 +221,67 @@ ep-spin-lib:normalizeString
180 sp:arg2 "\\((.*)\\)" ; 221 sp:arg2 "\\((.*)\\)" ;
181 sp:arg3 "" 222 sp:arg3 ""
182 ] ; 223 ] ;
183 - sp:variable _:b8 224 + sp:variable _:b10
184 ] [ rdf:type sp:Bind ; 225 ] [ rdf:type sp:Bind ;
185 sp:expression 226 sp:expression
186 [ rdf:type smf:trim ; 227 [ rdf:type smf:trim ;
187 - sp:arg1 _:b8 228 + sp:arg1 _:b10
188 ] ; 229 ] ;
189 - sp:variable _:b9 230 + sp:variable _:b11
190 ] [ rdf:type sp:Bind ; 231 ] [ rdf:type sp:Bind ;
191 sp:expression 232 sp:expression
192 [ rdf:type smf:encodeURL ; 233 [ rdf:type smf:encodeURL ;
193 - sp:arg1 _:b9 234 + sp:arg1 _:b11
194 ] ; 235 ] ;
195 - sp:variable _:b10 236 + sp:variable _:b12
196 ] [ rdf:type sp:Bind ; 237 ] [ rdf:type sp:Bind ;
197 sp:expression 238 sp:expression
198 [ rdf:type smf:regex ; 239 [ rdf:type smf:regex ;
199 - sp:arg1 _:b10 ; 240 + sp:arg1 _:b12 ;
200 sp:arg2 "%2F" ; 241 sp:arg2 "%2F" ;
201 sp:arg3 "_" 242 sp:arg3 "_"
202 ] ; 243 ] ;
203 - sp:variable _:b11 244 + sp:variable _:b13
204 ] [ rdf:type sp:Bind ; 245 ] [ rdf:type sp:Bind ;
205 sp:expression 246 sp:expression
206 [ rdf:type smf:regex ; 247 [ rdf:type smf:regex ;
207 - sp:arg1 _:b11 ; 248 + sp:arg1 _:b13 ;
208 sp:arg2 "%[0-9A-F][0-9A-F]" ; 249 sp:arg2 "%[0-9A-F][0-9A-F]" ;
209 sp:arg3 "" 250 sp:arg3 ""
210 ] ; 251 ] ;
211 - sp:variable _:b12 252 + sp:variable _:b14
212 ] [ rdf:type sp:Bind ; 253 ] [ rdf:type sp:Bind ;
213 sp:expression 254 sp:expression
214 [ rdf:type smf:regex ; 255 [ rdf:type smf:regex ;
215 - sp:arg1 _:b12 ; 256 + sp:arg1 _:b14 ;
216 sp:arg2 "\\+" ; 257 sp:arg2 "\\+" ;
217 sp:arg3 "_" 258 sp:arg3 "_"
218 ] ; 259 ] ;
219 - sp:variable _:b13 260 + sp:variable _:b15
220 ] [ rdf:type sp:Bind ; 261 ] [ rdf:type sp:Bind ;
221 sp:expression 262 sp:expression
222 [ rdf:type smf:regex ; 263 [ rdf:type smf:regex ;
223 - sp:arg1 _:b13 ; 264 + sp:arg1 _:b15 ;
224 sp:arg2 "_+" ; 265 sp:arg2 "_+" ;
225 sp:arg3 "_" 266 sp:arg3 "_"
226 ] ; 267 ] ;
227 - sp:variable _:b14 268 + sp:variable _:b16
228 ] [ rdf:type sp:Bind ; 269 ] [ rdf:type sp:Bind ;
229 sp:expression 270 sp:expression
230 [ rdf:type smf:regex ; 271 [ rdf:type smf:regex ;
231 - sp:arg1 _:b14 ; 272 + sp:arg1 _:b16 ;
232 sp:arg2 "\\*" ; 273 sp:arg2 "\\*" ;
233 sp:arg3 "" 274 sp:arg3 ""
234 ] ; 275 ] ;
235 - sp:variable _:b15 276 + sp:variable _:b17
236 ] [ rdf:type sp:Bind ; 277 ] [ rdf:type sp:Bind ;
237 sp:expression 278 sp:expression
238 [ rdf:type xsd:string ; 279 [ rdf:type xsd:string ;
239 sp:arg1 [ rdf:type smf:upperCase ; 280 sp:arg1 [ rdf:type smf:upperCase ;
240 - sp:arg1 _:b15 281 + sp:arg1 _:b17
241 ] 282 ]
242 ] ; 283 ] ;
243 - sp:variable _:b7 284 + sp:variable _:b9
244 ]) 285 ])
245 ] ; 286 ] ;
246 spin:constraint 287 spin:constraint
...@@ -255,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType ...@@ -255,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType
255 rdfs:subClassOf ep-spin-lib:Function ; 296 rdfs:subClassOf ep-spin-lib:Function ;
256 spin:body 297 spin:body
257 [ rdf:type sp:Select ; 298 [ rdf:type sp:Select ;
258 - sp:resultVariables (_:b16) ; 299 + sp:resultVariables (_:b18) ;
259 sp:where ([ rdf:type sp:Bind ; 300 sp:where ([ rdf:type sp:Bind ;
260 sp:expression 301 sp:expression
261 [ rdf:type sp:if ; 302 [ rdf:type sp:if ;
...@@ -273,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType ...@@ -273,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType
273 sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport> 314 sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
274 ] 315 ]
275 ] ; 316 ] ;
276 - sp:variable _:b16 317 + sp:variable _:b18
277 ]) 318 ])
278 ] . 319 ] .
279 320
...@@ -283,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType ...@@ -283,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
283 rdfs:subClassOf ep-spin-lib:Function ; 324 rdfs:subClassOf ep-spin-lib:Function ;
284 spin:body 325 spin:body
285 [ rdf:type sp:Select ; 326 [ rdf:type sp:Select ;
286 - sp:resultVariables (_:b17) ; 327 + sp:resultVariables (_:b19) ;
287 sp:where ([ rdf:type sp:Bind ; 328 sp:where ([ rdf:type sp:Bind ;
288 sp:expression 329 sp:expression
289 [ rdf:type smf:if ; 330 [ rdf:type smf:if ;
...@@ -867,7 +908,63 @@ ep-spin-lib:selectDrillingActivityPurposeType ...@@ -867,7 +908,63 @@ ep-spin-lib:selectDrillingActivityPurposeType
867 ] 908 ]
868 ] 909 ]
869 ] ; 910 ] ;
870 - sp:variable _:b17 911 + sp:variable _:b19
912 + ])
913 + ] .
914 +
915 +ep-spin-lib:selectLabelOfSystem
916 + rdf:type spin:Function ;
917 + rdfs:label "select DailyDrillingReportType"^^xsd:string ;
918 + rdfs:subClassOf ep-spin-lib:Function ;
919 + spin:body
920 + [ rdf:type sp:Select ;
921 + sp:resultVariables (_:b20) ;
922 + sp:where ([ rdf:type sp:Bind ;
923 + sp:expression
924 + [ rdf:type sp:if ;
925 + sp:arg1 [ rdf:type sp:eq ;
926 + sp:arg1 spin:_arg1 ;
927 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_API>
928 + ] ;
929 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#apiName> ;
930 + sp:arg3 [ rdf:type sp:if ;
931 + sp:arg1 [ rdf:type sp:eq ;
932 + sp:arg1 spin:_arg1 ;
933 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_DTI>
934 + ] ;
935 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#dtiName> ;
936 + sp:arg3 [ rdf:type sp:if ;
937 + sp:arg1 [ rdf:type sp:eq ;
938 + sp:arg1 spin:_arg1 ;
939 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDcode>
940 + ] ;
941 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdCode> ;
942 + sp:arg3 [ rdf:type sp:if ;
943 + sp:arg1 [ rdf:type sp:eq ;
944 + sp:arg1 spin:_arg1 ;
945 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDnumber>
946 + ] ;
947 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdNumber> ;
948 + sp:arg3 [ rdf:type sp:if ;
949 + sp:arg1 [ rdf:type sp:eq ;
950 + sp:arg1 spin:_arg1 ;
951 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_localfield>
952 + ] ;
953 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#localFieldName> ;
954 + sp:arg3 [ rdf:type sp:if ;
955 + sp:arg1 [ rdf:type sp:eq ;
956 + sp:arg1 spin:_arg1 ;
957 + sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_prospect>
958 + ] ;
959 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#prospectName> ;
960 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#name>
961 + ]
962 + ]
963 + ]
964 + ]
965 + ]
966 + ] ;
967 + sp:variable _:b20
871 ]) 968 ])
872 ] . 969 ] .
873 970
...@@ -877,7 +974,7 @@ ep-spin-lib:selectPressureTestType ...@@ -877,7 +974,7 @@ ep-spin-lib:selectPressureTestType
877 rdfs:subClassOf ep-spin-lib:Function ; 974 rdfs:subClassOf ep-spin-lib:Function ;
878 spin:body 975 spin:body
879 [ rdf:type sp:Select ; 976 [ rdf:type sp:Select ;
880 - sp:resultVariables (_:b18) ; 977 + sp:resultVariables (_:b21) ;
881 sp:where ([ rdf:type sp:Bind ; 978 sp:where ([ rdf:type sp:Bind ;
882 sp:expression 979 sp:expression
883 [ rdf:type smf:if ; 980 [ rdf:type smf:if ;
...@@ -894,7 +991,7 @@ ep-spin-lib:selectPressureTestType ...@@ -894,7 +991,7 @@ ep-spin-lib:selectPressureTestType
894 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> 991 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
895 ] 992 ]
896 ] ; 993 ] ;
897 - sp:variable _:b18 994 + sp:variable _:b21
898 ]) 995 ])
899 ] . 996 ] .
900 997
...@@ -904,57 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType ...@@ -904,57 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType
904 rdfs:subClassOf ep-spin-lib:Function ; 1001 rdfs:subClassOf ep-spin-lib:Function ;
905 spin:body 1002 spin:body
906 [ rdf:type sp:Select ; 1003 [ rdf:type sp:Select ;
907 - sp:resultVariables (_:b19) ; 1004 + sp:resultVariables (_:b22) ;
908 - sp:where ([ sp:object _:b19 ; 1005 + sp:where ([ sp:object _:b22 ;
909 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ; 1006 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
910 sp:subject spin:_arg1 1007 sp:subject spin:_arg1
911 ]) 1008 ])
912 ] . 1009 ] .
913 1010
914 -_:b19 1011 +_:b1 sp:varName "uri"^^xsd:string .
915 - sp:varName "wellBoreDrillingType"^^xsd:string .
916 1012
917 -_:b16 1013 +_:b2 sp:varName "uri"^^xsd:string .
918 - sp:varName "dailyDrillingReportType"^^xsd:string .
919 1014
920 -_:b6 sp:varName "uri"^^xsd:string . 1015 +_:b3 sp:varName "uri"^^xsd:string .
921 1016
922 -_:b1 sp:varName "uri"^^xsd:string . 1017 +_:b4 sp:varName "uri"^^xsd:string .
923 1018
924 -_:b18 1019 +_:b7 sp:varName "uri"^^xsd:string .
925 - sp:varName "pressureTestType"^^xsd:string .
926 1020
927 -_:b17 1021 +_:b8 sp:varName "uri"^^xsd:string .
928 - sp:varName "drillingActivityPurposeType"^^xsd:string .
929 1022
930 -_:b15 1023 +_:b9 sp:varName "normalizedStr"^^xsd:string .
931 - sp:varName "t4"^^xsd:string .
932 1024
933 -_:b14 1025 +_:b10
934 - sp:varName "t3"^^xsd:string . 1026 + sp:varName "s1"^^xsd:string .
935 1027
936 -_:b13 1028 +_:b11
937 - sp:varName "t2"^^xsd:string . 1029 + sp:varName "s2"^^xsd:string .
938 1030
939 _:b12 1031 _:b12
940 - sp:varName "t1"^^xsd:string . 1032 + sp:varName "t0a"^^xsd:string .
941 1033
942 -_:b11 1034 +_:b13
943 sp:varName "t0b"^^xsd:string . 1035 sp:varName "t0b"^^xsd:string .
944 1036
945 -_:b10 1037 +_:b14
946 - sp:varName "t0a"^^xsd:string . 1038 + sp:varName "t1"^^xsd:string .
947 1039
948 -_:b9 sp:varName "s2"^^xsd:string . 1040 +_:b15
1041 + sp:varName "t2"^^xsd:string .
949 1042
950 -_:b8 sp:varName "s1"^^xsd:string . 1043 +_:b16
1044 + sp:varName "t3"^^xsd:string .
951 1045
952 -_:b7 sp:varName "normalizedStr"^^xsd:string . 1046 +_:b17
1047 + sp:varName "t4"^^xsd:string .
953 1048
954 -_:b5 sp:varName "uri"^^xsd:string . 1049 +_:b18
1050 + sp:varName "dailyDrillingReportType"^^xsd:string .
955 1051
956 -_:b4 sp:varName "uri"^^xsd:string . 1052 +_:b19
1053 + sp:varName "drillingActivityPurposeType"^^xsd:string .
957 1054
958 -_:b3 sp:varName "uri"^^xsd:string . 1055 +_:b20
1056 + sp:varName "dailyDrillingReportType"^^xsd:string .
959 1057
960 -_:b2 sp:varName "uri"^^xsd:string . 1058 +_:b21
1059 + sp:varName "pressureTestType"^^xsd:string .
1060 +
1061 +_:b22
1062 + sp:varName "wellBoreDrillingType"^^xsd:string .
1063 +
1064 +_:b6 sp:varName "uri"^^xsd:string .
1065 +
1066 +_:b5 sp:varName "uri"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 13:36:32 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 14:09:07 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
5 +# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 6 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
12 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo 7 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
13 8
...@@ -20,11 +15,13 @@ ...@@ -20,11 +15,13 @@
20 @prefix sp: <http://spinrdf.org/sp#> . 15 @prefix sp: <http://spinrdf.org/sp#> .
21 @prefix spin: <http://spinrdf.org/spin#> . 16 @prefix spin: <http://spinrdf.org/spin#> .
22 @prefix spl: <http://spinrdf.org/spl#> . 17 @prefix spl: <http://spinrdf.org/spl#> .
18 +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
19 +@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
23 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 20 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
24 21
25 <http://www.reportinghub.no/ep/transform/1.1/normalization> 22 <http://www.reportinghub.no/ep/transform/1.1/normalization>
26 rdf:type owl:Ontology ; 23 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> ; 24 + owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> ;
28 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 25 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
29 26
30 owl:Thing 27 owl:Thing
...@@ -65,8 +62,8 @@ owl:Thing ...@@ -65,8 +62,8 @@ owl:Thing
65 ]) 62 ])
66 ] . 63 ] .
67 64
68 -_:b3 sp:varName "newLabel"^^xsd:string . 65 +_:b1 sp:varName "oldLabel"^^xsd:string .
69 66
70 _:b2 sp:varName "p"^^xsd:string . 67 _:b2 sp:varName "p"^^xsd:string .
71 68
72 -_:b1 sp:varName "oldLabel"^^xsd:string . 69 +_:b3 sp:varName "newLabel"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 14:09:07 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 18:50:05 PDT 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr 2 # baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
2 -# imports: http://spinrdf.org/spin 3 +# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
3 -# imports: http://topbraid.org/sxml
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
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 4 # imports: http://www.reportinghub.no/ep/schema/1.0/report
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/core
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
11 +# imports: http://topbraid.org/sxml
10 12
11 @prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> . 13 @prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
12 @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#> .
...@@ -21,8 +23,18 @@ ...@@ -21,8 +23,18 @@
21 @prefix spif: <http://spinrdf.org/spif#> . 23 @prefix spif: <http://spinrdf.org/spif#> .
22 @prefix spin: <http://spinrdf.org/spin#> . 24 @prefix spin: <http://spinrdf.org/spin#> .
23 @prefix sxml: <http://topbraid.org/sxml#> . 25 @prefix sxml: <http://topbraid.org/sxml#> .
26 +@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
24 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 27 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
25 28
29 +NPD_1104121247071:r-0-7
30 + sxml:element "witsml:wellAlias"^^xsd:string .
31 +
32 +NPD_1104121247071:r-0-8
33 + sxml:element "witsml:wellboreAlias"^^xsd:string .
34 +
35 +NPD_1104121247071:r-0-9
36 + sxml:element "witsml:wellboreAlias"^^xsd:string .
37 +
26 ddr:Cs_activity 38 ddr:Cs_activity
27 spin:rule 39 spin:rule
28 [ rdf:type sp:Construct ; 40 [ rdf:type sp:Construct ;
...@@ -120,7 +132,7 @@ ddr:Cs_refWellWellboreRig ...@@ -120,7 +132,7 @@ ddr:Cs_refWellWellboreRig
120 sxml:element "witsml:refWellWellboreRig" . 132 sxml:element "witsml:refWellWellboreRig" .
121 133
122 ddr:Cs_wellAlias 134 ddr:Cs_wellAlias
123 - sxml:element "witsml:wellAlias" , "witsml:wellboreAlias"^^xsd:string . 135 + sxml:element "witsml:wellboreAlias"^^xsd:string , "witsml:wellAlias"^^xsd:string .
124 136
125 ddr:Cs_wellCRS 137 ddr:Cs_wellCRS
126 sxml:element "witsml:wellCRS" . 138 sxml:element "witsml:wellCRS" .
...@@ -137,175 +149,245 @@ ddr:Obj_drillReport ...@@ -137,175 +149,245 @@ ddr:Obj_drillReport
137 ddr:Thing 149 ddr:Thing
138 spin:rule 150 spin:rule
139 [ rdf:type sp:Construct ; 151 [ rdf:type sp:Construct ;
140 - rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ; 152 + rdfs:comment "STEP 018 - Construct all other object properties - WIP"^^xsd:string ;
141 sp:templates ([ sp:object _:b1 ; 153 sp:templates ([ sp:object _:b1 ;
154 + sp:predicate _:b2 ;
155 + sp:subject spin:_this
156 + ] [ sp:object rdf:Statement ;
142 sp:predicate rdf:type ; 157 sp:predicate rdf:type ;
143 - sp:subject _:b2 158 + sp:subject _:b3
159 + ] [ sp:object spin:_this ;
160 + sp:predicate rdf:subject ;
161 + sp:subject _:b3
162 + ] [ sp:object _:b2 ;
163 + sp:predicate rdf:predicate ;
164 + sp:subject _:b3
165 + ] [ sp:object _:b1 ;
166 + sp:predicate rdf:object ;
167 + sp:subject _:b3
144 ] [ sp:object _:b3 ; 168 ] [ sp:object _:b3 ;
145 - sp:predicate ddr:uom ; 169 + sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
146 - sp:subject _:b2 170 + sp:subject _:b1
171 + ]) ;
172 + sp:where ([ sp:object _:b4 ;
173 + sp:predicate owl:allValuesFrom ;
174 + sp:subject _:b5
175 + ] [ sp:object _:b2 ;
176 + sp:predicate owl:onProperty ;
177 + sp:subject _:b5
178 + ] [ rdf:type sp:Bind ;
179 + sp:expression
180 + [ rdf:type afn:localname ;
181 + sp:arg1 _:b2
182 + ] ;
183 + sp:variable _:b6
147 ] [ sp:object _:b4 ; 184 ] [ sp:object _:b4 ;
185 + sp:predicate rdf:type ;
186 + sp:subject _:b1
187 + ] [ sp:object _:b1 ;
188 + sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
189 + sp:subject spin:_this
190 + ] [ sp:object _:b7 ;
191 + sp:predicate sxml:instanceElement ;
192 + sp:subject _:b1
193 + ] [ rdf:type sp:Bind ;
194 + sp:expression
195 + [ rdf:type smf:regex ;
196 + sp:arg1 _:b7 ;
197 + sp:arg2 "(.*):(.*)" ;
198 + sp:arg3 "$2"
199 + ] ;
200 + sp:variable _:b8
201 + ] [ rdf:type sp:Filter ;
202 + sp:expression
203 + [ rdf:type sp:eq ;
204 + sp:arg1 _:b8 ;
205 + sp:arg2 _:b6
206 + ]
207 + ] [ sp:object _:b9 ;
208 + sp:predicate rdf:type ;
209 + sp:subject spin:_this
210 + ] [ rdf:type sp:TriplePath ;
211 + sp:object _:b5 ;
212 + sp:path [ rdf:type sp:ModPath ;
213 + sp:modMax -2 ;
214 + sp:modMin 0 ;
215 + sp:subPath rdfs:subClassOf
216 + ] ;
217 + sp:subject _:b9
218 + ])
219 + ] ;
220 + spin:rule
221 + [ rdf:type sp:Construct ;
222 + rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
223 + sp:templates ([ sp:object _:b10 ;
224 + sp:predicate rdf:type ;
225 + sp:subject _:b11
226 + ] [ sp:object _:b12 ;
227 + sp:predicate ddr:uom ;
228 + sp:subject _:b11
229 + ] [ sp:object _:b13 ;
148 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 230 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
149 - sp:subject _:b2 231 + sp:subject _:b11
150 - ] [ sp:object _:b2 ; 232 + ] [ sp:object _:b11 ;
151 - sp:predicate _:b5 ; 233 + sp:predicate _:b14 ;
152 sp:subject spin:_this 234 sp:subject spin:_this
153 ] [ sp:object rdf:Statement ; 235 ] [ sp:object rdf:Statement ;
154 sp:predicate rdf:type ; 236 sp:predicate rdf:type ;
155 - sp:subject _:b6 237 + sp:subject _:b15
156 ] [ sp:object spin:_this ; 238 ] [ sp:object spin:_this ;
157 sp:predicate rdf:subject ; 239 sp:predicate rdf:subject ;
158 - sp:subject _:b6 240 + sp:subject _:b15
159 - ] [ sp:object _:b5 ; 241 + ] [ sp:object _:b14 ;
160 sp:predicate rdf:predicate ; 242 sp:predicate rdf:predicate ;
161 - sp:subject _:b6 243 + sp:subject _:b15
162 - ] [ sp:object _:b4 ; 244 + ] [ sp:object _:b13 ;
163 sp:predicate rdf:object ; 245 sp:predicate rdf:object ;
164 - sp:subject _:b6 246 + sp:subject _:b15
165 - ] [ sp:object _:b6 ; 247 + ] [ sp:object _:b15 ;
166 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 248 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
167 - sp:subject _:b7 249 + sp:subject _:b16
168 ]) ; 250 ]) ;
169 - sp:where ([ sp:object _:b7 ; 251 + sp:where ([ sp:object _:b16 ;
170 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 252 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
171 sp:subject spin:_this 253 sp:subject spin:_this
172 - ] [ sp:object _:b8 ; 254 + ] [ sp:object _:b17 ;
173 sp:predicate rdf:type ; 255 sp:predicate rdf:type ;
174 - sp:subject _:b7 256 + sp:subject _:b16
175 - ] [ sp:object _:b3 ; 257 + ] [ sp:object _:b12 ;
176 sp:predicate ddr:uom ; 258 sp:predicate ddr:uom ;
177 - sp:subject _:b7 259 + sp:subject _:b16
178 ] [ rdf:type sp:NotExists ; 260 ] [ rdf:type sp:NotExists ;
179 sp:elements ([ sp:object 261 sp:elements ([ sp:object
180 [ sp:varName "aNode"^^xsd:string 262 [ sp:varName "aNode"^^xsd:string
181 ] ; 263 ] ;
182 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 264 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
183 - sp:subject _:b7 265 + sp:subject _:b16
184 ]) 266 ])
185 ] [ rdf:type sp:Bind ; 267 ] [ rdf:type sp:Bind ;
186 sp:expression 268 sp:expression
187 [ rdf:type afn:localname ; 269 [ rdf:type afn:localname ;
188 - sp:arg1 _:b8 270 + sp:arg1 _:b17
189 ] ; 271 ] ;
190 - sp:variable _:b9 272 + sp:variable _:b18
191 ] [ rdf:type sp:Bind ; 273 ] [ rdf:type sp:Bind ;
192 sp:expression 274 sp:expression
193 [ rdf:type smf:buildURI ; 275 [ rdf:type smf:buildURI ;
194 sp:arg1 [ rdf:type fn:concat ; 276 sp:arg1 [ rdf:type fn:concat ;
195 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 277 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
196 - sp:arg2 _:b9 278 + sp:arg2 _:b18
197 ] 279 ]
198 ] ; 280 ] ;
199 - sp:variable _:b5 281 + sp:variable _:b14
200 ] [ sp:object owl:ObjectProperty ; 282 ] [ sp:object owl:ObjectProperty ;
201 sp:predicate rdf:type ; 283 sp:predicate rdf:type ;
202 - sp:subject _:b5 284 + sp:subject _:b14
203 - ] [ sp:object _:b5 ; 285 + ] [ sp:object _:b14 ;
204 sp:predicate owl:onProperty ; 286 sp:predicate owl:onProperty ;
205 - sp:subject _:b10 287 + sp:subject _:b19
206 - ] [ sp:object _:b1 ; 288 + ] [ sp:object _:b10 ;
207 sp:predicate owl:allValuesFrom ; 289 sp:predicate owl:allValuesFrom ;
208 - sp:subject _:b10 290 + sp:subject _:b19
209 - ] [ sp:object _:b11 ; 291 + ] [ sp:object _:b20 ;
210 sp:predicate rdf:type ; 292 sp:predicate rdf:type ;
211 sp:subject spin:_this 293 sp:subject spin:_this
212 ] [ rdf:type sp:TriplePath ; 294 ] [ rdf:type sp:TriplePath ;
213 - sp:object _:b10 ; 295 + sp:object _:b19 ;
214 sp:path [ rdf:type sp:ModPath ; 296 sp:path [ rdf:type sp:ModPath ;
215 sp:modMax -2 ; 297 sp:modMax -2 ;
216 sp:modMin 0 ; 298 sp:modMin 0 ;
217 sp:subPath rdfs:subClassOf 299 sp:subPath rdfs:subClassOf
218 ] ; 300 ] ;
219 - sp:subject _:b11 301 + sp:subject _:b20
220 - ] [ sp:object _:b12 ; 302 + ] [ sp:object _:b21 ;
221 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 303 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
222 - sp:subject _:b7 304 + sp:subject _:b16
223 ] [ sp:object sxml:TextNode ; 305 ] [ sp:object sxml:TextNode ;
224 sp:predicate rdf:type ; 306 sp:predicate rdf:type ;
225 - sp:subject _:b12 307 + sp:subject _:b21
226 - ] [ sp:object _:b13 ; 308 + ] [ sp:object _:b22 ;
227 sp:predicate sxml:text ; 309 sp:predicate sxml:text ;
228 - sp:subject _:b12 310 + sp:subject _:b21
229 ] [ rdf:type sp:Bind ; 311 ] [ rdf:type sp:Bind ;
230 sp:expression 312 sp:expression
231 [ rdf:type xsd:double ; 313 [ rdf:type xsd:double ;
232 - sp:arg1 _:b13 314 + sp:arg1 _:b22
233 ] ; 315 ] ;
234 - sp:variable _:b4 316 + sp:variable _:b13
235 ]) 317 ])
236 ] ; 318 ] ;
237 spin:rule 319 spin:rule
238 [ rdf:type sp:Construct ; 320 [ rdf:type sp:Construct ;
239 rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ; 321 rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
240 - sp:templates ([ sp:object _:b14 ; 322 + sp:templates ([ sp:object _:b23 ;
241 - sp:predicate _:b15 ; 323 + sp:predicate _:b24 ;
242 sp:subject spin:_this 324 sp:subject spin:_this
243 ] [ sp:object rdf:Statement ; 325 ] [ sp:object rdf:Statement ;
244 sp:predicate rdf:type ; 326 sp:predicate rdf:type ;
245 - sp:subject _:b16 327 + sp:subject _:b25
246 ] [ sp:object spin:_this ; 328 ] [ sp:object spin:_this ;
247 sp:predicate rdf:subject ; 329 sp:predicate rdf:subject ;
248 - sp:subject _:b16 330 + sp:subject _:b25
249 - ] [ sp:object _:b15 ; 331 + ] [ sp:object _:b24 ;
250 sp:predicate rdf:predicate ; 332 sp:predicate rdf:predicate ;
251 - sp:subject _:b16 333 + sp:subject _:b25
252 - ] [ sp:object _:b14 ; 334 + ] [ sp:object _:b23 ;
253 sp:predicate rdf:object ; 335 sp:predicate rdf:object ;
254 - sp:subject _:b16 336 + sp:subject _:b25
255 - ] [ sp:object _:b16 ; 337 + ] [ sp:object _:b25 ;
256 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 338 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
257 - sp:subject _:b17 339 + sp:subject _:b26
258 ]) ; 340 ]) ;
259 - sp:where ([ sp:object _:b17 ; 341 + sp:where ([ sp:object _:b26 ;
260 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 342 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
261 sp:subject spin:_this 343 sp:subject spin:_this
262 - ] [ sp:object _:b18 ; 344 + ] [ sp:object _:b27 ;
263 sp:predicate rdf:type ; 345 sp:predicate rdf:type ;
264 - sp:subject _:b17 346 + sp:subject _:b26
265 ] [ rdf:type sp:NotExists ; 347 ] [ rdf:type sp:NotExists ;
266 sp:elements ([ sp:object 348 sp:elements ([ sp:object
267 [ sp:varName "uom"^^xsd:string 349 [ sp:varName "uom"^^xsd:string
268 ] ; 350 ] ;
269 sp:predicate ddr:uom ; 351 sp:predicate ddr:uom ;
270 - sp:subject _:b17 352 + sp:subject _:b26
271 ]) 353 ])
272 ] [ rdf:type sp:Bind ; 354 ] [ rdf:type sp:Bind ;
273 sp:expression 355 sp:expression
274 [ rdf:type smf:titleCase ; 356 [ rdf:type smf:titleCase ;
275 sp:arg1 [ rdf:type afn:localname ; 357 sp:arg1 [ rdf:type afn:localname ;
276 - sp:arg1 _:b18 358 + sp:arg1 _:b27
277 ] 359 ]
278 ] ; 360 ] ;
279 - sp:variable _:b19 361 + sp:variable _:b28
280 ] [ rdf:type sp:Bind ; 362 ] [ rdf:type sp:Bind ;
281 sp:expression 363 sp:expression
282 [ rdf:type smf:buildURI ; 364 [ rdf:type smf:buildURI ;
283 sp:arg1 [ rdf:type fn:concat ; 365 sp:arg1 [ rdf:type fn:concat ;
284 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ; 366 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#enum" ;
285 - sp:arg2 _:b19 367 + sp:arg2 _:b28
286 ] 368 ]
287 ] ; 369 ] ;
288 - sp:variable _:b15 370 + sp:variable _:b24
289 ] [ sp:object owl:ObjectProperty ; 371 ] [ sp:object owl:ObjectProperty ;
290 sp:predicate rdf:type ; 372 sp:predicate rdf:type ;
291 - sp:subject _:b15 373 + sp:subject _:b24
292 - ] [ sp:object _:b15 ; 374 + ] [ sp:object _:b24 ;
293 sp:predicate owl:onProperty ; 375 sp:predicate owl:onProperty ;
294 - sp:subject _:b20 376 + sp:subject _:b29
295 - ] [ sp:object _:b21 ; 377 + ] [ sp:object _:b30 ;
296 sp:predicate owl:allValuesFrom ; 378 sp:predicate owl:allValuesFrom ;
297 - sp:subject _:b20 379 + sp:subject _:b29
298 - ] [ sp:object _:b22 ; 380 + ] [ sp:object _:b31 ;
299 sp:predicate rdf:type ; 381 sp:predicate rdf:type ;
300 sp:subject spin:_this 382 sp:subject spin:_this
301 ] [ rdf:type sp:TriplePath ; 383 ] [ rdf:type sp:TriplePath ;
302 - sp:object _:b20 ; 384 + sp:object _:b29 ;
303 sp:path [ rdf:type sp:ModPath ; 385 sp:path [ rdf:type sp:ModPath ;
304 sp:modMax -2 ; 386 sp:modMax -2 ;
305 sp:modMin 0 ; 387 sp:modMin 0 ;
306 sp:subPath rdfs:subClassOf 388 sp:subPath rdfs:subClassOf
307 ] ; 389 ] ;
308 - sp:subject _:b22 390 + sp:subject _:b31
309 ] [ rdf:type sp:TriplePath ; 391 ] [ rdf:type sp:TriplePath ;
310 sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ; 392 sp:object <http://www.linkedmodel.org/schema/dtype#EnumeratedValue> ;
311 sp:path [ rdf:type sp:ModPath ; 393 sp:path [ rdf:type sp:ModPath ;
...@@ -313,130 +395,137 @@ ddr:Thing ...@@ -313,130 +395,137 @@ ddr:Thing
313 sp:modMin 0 ; 395 sp:modMin 0 ;
314 sp:subPath rdfs:subClassOf 396 sp:subPath rdfs:subClassOf
315 ] ; 397 ] ;
316 - sp:subject _:b21 398 + sp:subject _:b30
317 - ] [ sp:object _:b23 ; 399 + ] [ sp:object _:b32 ;
318 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 400 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
319 - sp:subject _:b17 401 + sp:subject _:b26
320 ] [ sp:object sxml:TextNode ; 402 ] [ sp:object sxml:TextNode ;
321 sp:predicate rdf:type ; 403 sp:predicate rdf:type ;
322 - sp:subject _:b23 404 + sp:subject _:b32
323 - ] [ sp:object _:b24 ; 405 + ] [ sp:object _:b33 ;
324 sp:predicate sxml:text ; 406 sp:predicate sxml:text ;
325 - sp:subject _:b23 407 + sp:subject _:b32
326 - ] [ sp:object _:b21 ; 408 + ] [ sp:object _:b30 ;
327 sp:predicate rdf:type ; 409 sp:predicate rdf:type ;
328 - sp:subject _:b14 410 + sp:subject _:b23
329 - ] [ sp:object _:b24 ; 411 + ] [ sp:object _:b33 ;
330 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 412 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
331 - sp:subject _:b14 413 + sp:subject _:b23
332 ]) 414 ])
333 ] ; 415 ] ;
334 spin:rule 416 spin:rule
335 [ rdf:type sp:Construct ; 417 [ rdf:type sp:Construct ;
336 rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ; 418 rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
337 - sp:templates ([ sp:object _:b25 ; 419 + sp:templates ([ sp:object _:b34 ;
338 - sp:predicate _:b26 ; 420 + sp:predicate _:b35 ;
339 sp:subject spin:_this 421 sp:subject spin:_this
340 ] [ sp:object rdf:Statement ; 422 ] [ sp:object rdf:Statement ;
341 sp:predicate rdf:type ; 423 sp:predicate rdf:type ;
342 - sp:subject _:b27 424 + sp:subject _:b36
343 ] [ sp:object spin:_this ; 425 ] [ sp:object spin:_this ;
344 sp:predicate rdf:subject ; 426 sp:predicate rdf:subject ;
345 - sp:subject _:b27 427 + sp:subject _:b36
346 - ] [ sp:object _:b26 ; 428 + ] [ sp:object _:b35 ;
347 sp:predicate rdf:predicate ; 429 sp:predicate rdf:predicate ;
348 - sp:subject _:b27 430 + sp:subject _:b36
349 - ] [ sp:object _:b25 ; 431 + ] [ sp:object _:b34 ;
350 sp:predicate rdf:object ; 432 sp:predicate rdf:object ;
351 - sp:subject _:b27 433 + sp:subject _:b36
352 - ] [ sp:object _:b27 ; 434 + ] [ sp:object _:b36 ;
353 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 435 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
354 - sp:subject _:b25 436 + sp:subject _:b34
355 ]) ; 437 ]) ;
356 - sp:where ([ sp:object _:b28 ; 438 + sp:where ([ sp:object _:b37 ;
357 sp:predicate owl:allValuesFrom ; 439 sp:predicate owl:allValuesFrom ;
358 - sp:subject _:b29 440 + sp:subject _:b38
359 - ] [ sp:object _:b26 ; 441 + ] [ sp:object _:b35 ;
360 sp:predicate owl:onProperty ; 442 sp:predicate owl:onProperty ;
361 - sp:subject _:b29 443 + sp:subject _:b38
362 - ] [ sp:object _:b28 ; 444 + ] [ sp:object _:b37 ;
363 sp:predicate rdf:type ; 445 sp:predicate rdf:type ;
364 - sp:subject _:b25 446 + sp:subject _:b34
365 - ] [ sp:object _:b25 ; 447 + ] [ sp:object _:b34 ;
366 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 448 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
367 sp:subject spin:_this 449 sp:subject spin:_this
368 - ] [ sp:object _:b30 ; 450 + ] [ rdf:type sp:NotExists ;
451 + sp:elements ([ sp:object
452 + [ sp:varName "xmlTag"^^xsd:string
453 + ] ;
454 + sp:predicate sxml:instanceElement ;
455 + sp:subject _:b34
456 + ])
457 + ] [ sp:object _:b39 ;
369 sp:predicate rdf:type ; 458 sp:predicate rdf:type ;
370 sp:subject spin:_this 459 sp:subject spin:_this
371 ] [ rdf:type sp:TriplePath ; 460 ] [ rdf:type sp:TriplePath ;
372 - sp:object _:b29 ; 461 + sp:object _:b38 ;
373 sp:path [ rdf:type sp:ModPath ; 462 sp:path [ rdf:type sp:ModPath ;
374 sp:modMax -2 ; 463 sp:modMax -2 ;
375 sp:modMin 0 ; 464 sp:modMin 0 ;
376 sp:subPath rdfs:subClassOf 465 sp:subPath rdfs:subClassOf
377 ] ; 466 ] ;
378 - sp:subject _:b30 467 + sp:subject _:b39
379 ]) 468 ])
380 ] ; 469 ] ;
381 spin:rule 470 spin:rule
382 [ rdf:type sp:Construct ; 471 [ rdf:type sp:Construct ;
383 rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ; 472 rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
384 - sp:templates ([ sp:object _:b31 ; 473 + sp:templates ([ sp:object _:b40 ;
385 - sp:predicate _:b32 ; 474 + sp:predicate _:b41 ;
386 sp:subject spin:_this 475 sp:subject spin:_this
387 ] [ sp:object rdf:Statement ; 476 ] [ sp:object rdf:Statement ;
388 sp:predicate rdf:type ; 477 sp:predicate rdf:type ;
389 - sp:subject _:b33 478 + sp:subject _:b42
390 ] [ sp:object spin:_this ; 479 ] [ sp:object spin:_this ;
391 sp:predicate rdf:subject ; 480 sp:predicate rdf:subject ;
392 - sp:subject _:b33 481 + sp:subject _:b42
393 - ] [ sp:object _:b32 ; 482 + ] [ sp:object _:b41 ;
394 sp:predicate rdf:predicate ; 483 sp:predicate rdf:predicate ;
395 - sp:subject _:b33 484 + sp:subject _:b42
396 - ] [ sp:object _:b31 ; 485 + ] [ sp:object _:b40 ;
397 sp:predicate rdf:object ; 486 sp:predicate rdf:object ;
398 - sp:subject _:b33 487 + sp:subject _:b42
399 - ] [ sp:object _:b33 ; 488 + ] [ sp:object _:b42 ;
400 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 489 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
401 - sp:subject _:b34 490 + sp:subject _:b43
402 ]) ; 491 ]) ;
403 - sp:where ([ sp:object _:b34 ; 492 + sp:where ([ sp:object _:b43 ;
404 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 493 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
405 sp:subject spin:_this 494 sp:subject spin:_this
406 - ] [ sp:object _:b35 ; 495 + ] [ sp:object _:b44 ;
407 sp:predicate rdf:type ; 496 sp:predicate rdf:type ;
408 - sp:subject _:b34 497 + sp:subject _:b43
409 ] [ rdf:type sp:NotExists ; 498 ] [ rdf:type sp:NotExists ;
410 sp:elements ([ sp:object 499 sp:elements ([ sp:object
411 [ sp:varName "uom"^^xsd:string 500 [ sp:varName "uom"^^xsd:string
412 ] ; 501 ] ;
413 sp:predicate ddr:uom ; 502 sp:predicate ddr:uom ;
414 - sp:subject _:b34 503 + sp:subject _:b43
415 ]) 504 ])
416 ] [ rdf:type sp:Bind ; 505 ] [ rdf:type sp:Bind ;
417 sp:expression 506 sp:expression
418 [ rdf:type afn:localname ; 507 [ rdf:type afn:localname ;
419 - sp:arg1 _:b35 508 + sp:arg1 _:b44
420 ] ; 509 ] ;
421 - sp:variable _:b36 510 + sp:variable _:b45
422 ] [ rdf:type sp:Bind ; 511 ] [ rdf:type sp:Bind ;
423 sp:expression 512 sp:expression
424 [ rdf:type smf:buildURI ; 513 [ rdf:type smf:buildURI ;
425 sp:arg1 [ rdf:type fn:concat ; 514 sp:arg1 [ rdf:type fn:concat ;
426 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 515 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
427 - sp:arg2 _:b36 516 + sp:arg2 _:b45
428 ] 517 ]
429 ] ; 518 ] ;
430 - sp:variable _:b32 519 + sp:variable _:b41
431 ] [ sp:object owl:DatatypeProperty ; 520 ] [ sp:object owl:DatatypeProperty ;
432 sp:predicate rdf:type ; 521 sp:predicate rdf:type ;
433 - sp:subject _:b32 522 + sp:subject _:b41
434 - ] [ sp:object _:b32 ; 523 + ] [ sp:object _:b41 ;
435 sp:predicate owl:onProperty ; 524 sp:predicate owl:onProperty ;
436 - sp:subject _:b37 525 + sp:subject _:b46
437 - ] [ sp:object _:b38 ; 526 + ] [ sp:object _:b47 ;
438 sp:predicate owl:allValuesFrom ; 527 sp:predicate owl:allValuesFrom ;
439 - sp:subject _:b37 528 + sp:subject _:b46
440 ] [ rdf:type sp:TriplePath ; 529 ] [ rdf:type sp:TriplePath ;
441 sp:object xsd:dateTime ; 530 sp:object xsd:dateTime ;
442 sp:path [ rdf:type sp:ModPath ; 531 sp:path [ rdf:type sp:ModPath ;
...@@ -444,94 +533,94 @@ ddr:Thing ...@@ -444,94 +533,94 @@ ddr:Thing
444 sp:modMin 0 ; 533 sp:modMin 0 ;
445 sp:subPath rdfs:subClassOf 534 sp:subPath rdfs:subClassOf
446 ] ; 535 ] ;
447 - sp:subject _:b38 536 + sp:subject _:b47
448 - ] [ sp:object _:b39 ; 537 + ] [ sp:object _:b48 ;
449 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 538 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
450 - sp:subject _:b34 539 + sp:subject _:b43
451 ] [ sp:object sxml:TextNode ; 540 ] [ sp:object sxml:TextNode ;
452 sp:predicate rdf:type ; 541 sp:predicate rdf:type ;
453 - sp:subject _:b39 542 + sp:subject _:b48
454 - ] [ sp:object _:b40 ; 543 + ] [ sp:object _:b49 ;
455 sp:predicate sxml:text ; 544 sp:predicate sxml:text ;
456 - sp:subject _:b39 545 + sp:subject _:b48
457 - ] [ sp:object _:b41 ; 546 + ] [ sp:object _:b50 ;
458 sp:predicate rdf:type ; 547 sp:predicate rdf:type ;
459 sp:subject spin:_this 548 sp:subject spin:_this
460 ] [ rdf:type sp:TriplePath ; 549 ] [ rdf:type sp:TriplePath ;
461 - sp:object _:b37 ; 550 + sp:object _:b46 ;
462 sp:path [ rdf:type sp:ModPath ; 551 sp:path [ rdf:type sp:ModPath ;
463 sp:modMax -2 ; 552 sp:modMax -2 ;
464 sp:modMin 0 ; 553 sp:modMin 0 ;
465 sp:subPath rdfs:subClassOf 554 sp:subPath rdfs:subClassOf
466 ] ; 555 ] ;
467 - sp:subject _:b41 556 + sp:subject _:b50
468 ] [ rdf:type sp:Bind ; 557 ] [ rdf:type sp:Bind ;
469 sp:expression 558 sp:expression
470 [ rdf:type xsd:dateTime ; 559 [ rdf:type xsd:dateTime ;
471 - sp:arg1 _:b40 560 + sp:arg1 _:b49
472 ] ; 561 ] ;
473 - sp:variable _:b31 562 + sp:variable _:b40
474 ]) 563 ])
475 ] ; 564 ] ;
476 spin:rule 565 spin:rule
477 [ rdf:type sp:Construct ; 566 [ rdf:type sp:Construct ;
478 rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ; 567 rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
479 - sp:templates ([ sp:object _:b42 ; 568 + sp:templates ([ sp:object _:b51 ;
480 - sp:predicate _:b43 ; 569 + sp:predicate _:b52 ;
481 sp:subject spin:_this 570 sp:subject spin:_this
482 ] [ sp:object rdf:Statement ; 571 ] [ sp:object rdf:Statement ;
483 sp:predicate rdf:type ; 572 sp:predicate rdf:type ;
484 - sp:subject _:b44 573 + sp:subject _:b53
485 ] [ sp:object spin:_this ; 574 ] [ sp:object spin:_this ;
486 sp:predicate rdf:subject ; 575 sp:predicate rdf:subject ;
487 - sp:subject _:b44 576 + sp:subject _:b53
488 - ] [ sp:object _:b43 ; 577 + ] [ sp:object _:b52 ;
489 sp:predicate rdf:predicate ; 578 sp:predicate rdf:predicate ;
490 - sp:subject _:b44 579 + sp:subject _:b53
491 - ] [ sp:object _:b42 ; 580 + ] [ sp:object _:b51 ;
492 sp:predicate rdf:object ; 581 sp:predicate rdf:object ;
493 - sp:subject _:b44 582 + sp:subject _:b53
494 - ] [ sp:object _:b44 ; 583 + ] [ sp:object _:b53 ;
495 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 584 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
496 - sp:subject _:b45 585 + sp:subject _:b54
497 ]) ; 586 ]) ;
498 - sp:where ([ sp:object _:b45 ; 587 + sp:where ([ sp:object _:b54 ;
499 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 588 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
500 sp:subject spin:_this 589 sp:subject spin:_this
501 - ] [ sp:object _:b46 ; 590 + ] [ sp:object _:b55 ;
502 sp:predicate rdf:type ; 591 sp:predicate rdf:type ;
503 - sp:subject _:b45 592 + sp:subject _:b54
504 ] [ rdf:type sp:NotExists ; 593 ] [ rdf:type sp:NotExists ;
505 sp:elements ([ sp:object 594 sp:elements ([ sp:object
506 [ sp:varName "uom"^^xsd:string 595 [ sp:varName "uom"^^xsd:string
507 ] ; 596 ] ;
508 sp:predicate ddr:uom ; 597 sp:predicate ddr:uom ;
509 - sp:subject _:b45 598 + sp:subject _:b54
510 ]) 599 ])
511 ] [ rdf:type sp:Bind ; 600 ] [ rdf:type sp:Bind ;
512 sp:expression 601 sp:expression
513 [ rdf:type afn:localname ; 602 [ rdf:type afn:localname ;
514 - sp:arg1 _:b46 603 + sp:arg1 _:b55
515 ] ; 604 ] ;
516 - sp:variable _:b47 605 + sp:variable _:b56
517 ] [ rdf:type sp:Bind ; 606 ] [ rdf:type sp:Bind ;
518 sp:expression 607 sp:expression
519 [ rdf:type smf:buildURI ; 608 [ rdf:type smf:buildURI ;
520 sp:arg1 [ rdf:type fn:concat ; 609 sp:arg1 [ rdf:type fn:concat ;
521 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 610 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
522 - sp:arg2 _:b47 611 + sp:arg2 _:b56
523 ] 612 ]
524 ] ; 613 ] ;
525 - sp:variable _:b43 614 + sp:variable _:b52
526 ] [ sp:object owl:DatatypeProperty ; 615 ] [ sp:object owl:DatatypeProperty ;
527 sp:predicate rdf:type ; 616 sp:predicate rdf:type ;
528 - sp:subject _:b43 617 + sp:subject _:b52
529 - ] [ sp:object _:b43 ; 618 + ] [ sp:object _:b52 ;
530 sp:predicate owl:onProperty ; 619 sp:predicate owl:onProperty ;
531 - sp:subject _:b48 620 + sp:subject _:b57
532 - ] [ sp:object _:b49 ; 621 + ] [ sp:object _:b58 ;
533 sp:predicate owl:allValuesFrom ; 622 sp:predicate owl:allValuesFrom ;
534 - sp:subject _:b48 623 + sp:subject _:b57
535 ] [ rdf:type sp:TriplePath ; 624 ] [ rdf:type sp:TriplePath ;
536 sp:object xsd:string ; 625 sp:object xsd:string ;
537 sp:path [ rdf:type sp:ModPath ; 626 sp:path [ rdf:type sp:ModPath ;
...@@ -539,27 +628,27 @@ ddr:Thing ...@@ -539,27 +628,27 @@ ddr:Thing
539 sp:modMin 0 ; 628 sp:modMin 0 ;
540 sp:subPath rdfs:subClassOf 629 sp:subPath rdfs:subClassOf
541 ] ; 630 ] ;
542 - sp:subject _:b49 631 + sp:subject _:b58
543 - ] [ sp:object _:b50 ; 632 + ] [ sp:object _:b59 ;
544 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 633 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
545 - sp:subject _:b45 634 + sp:subject _:b54
546 ] [ sp:object sxml:TextNode ; 635 ] [ sp:object sxml:TextNode ;
547 sp:predicate rdf:type ; 636 sp:predicate rdf:type ;
548 - sp:subject _:b50 637 + sp:subject _:b59
549 - ] [ sp:object _:b42 ;
550 - sp:predicate sxml:text ;
551 - sp:subject _:b50
552 ] [ sp:object _:b51 ; 638 ] [ sp:object _:b51 ;
639 + sp:predicate sxml:text ;
640 + sp:subject _:b59
641 + ] [ sp:object _:b60 ;
553 sp:predicate rdf:type ; 642 sp:predicate rdf:type ;
554 sp:subject spin:_this 643 sp:subject spin:_this
555 ] [ rdf:type sp:TriplePath ; 644 ] [ rdf:type sp:TriplePath ;
556 - sp:object _:b48 ; 645 + sp:object _:b57 ;
557 sp:path [ rdf:type sp:ModPath ; 646 sp:path [ rdf:type sp:ModPath ;
558 sp:modMax -2 ; 647 sp:modMax -2 ;
559 sp:modMin 0 ; 648 sp:modMin 0 ;
560 sp:subPath rdfs:subClassOf 649 sp:subPath rdfs:subClassOf
561 ] ; 650 ] ;
562 - sp:subject _:b51 651 + sp:subject _:b60
563 ]) 652 ])
564 ] . 653 ] .
565 654
...@@ -576,97 +665,97 @@ ddr:version ...@@ -576,97 +665,97 @@ ddr:version
576 665
577 <http://www.reportinghub.no/ep/transform/1.1/ddr> 666 <http://www.reportinghub.no/ep/transform/1.1/ddr>
578 rdf:type owl:Ontology ; 667 rdf:type owl:Ontology ;
579 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ; 668 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
580 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 669 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
581 670
582 owl:Thing 671 owl:Thing
583 spin:query 672 spin:query
584 [ rdf:type sp:Select ; 673 [ rdf:type sp:Select ;
585 - sp:resultVariables (_:b52 _:b53 _:b54 _:b55) ; 674 + sp:resultVariables (_:b61 _:b62 _:b63 _:b64) ;
586 sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ; 675 sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
587 sp:predicate rdf:type ; 676 sp:predicate rdf:type ;
588 - sp:subject _:b56 677 + sp:subject _:b65
589 ] [ rdf:type sp:TriplePath ; 678 ] [ rdf:type sp:TriplePath ;
590 - sp:object _:b57 ; 679 + sp:object _:b66 ;
591 sp:path [ rdf:type sp:ModPath ; 680 sp:path [ rdf:type sp:ModPath ;
592 sp:modMax -2 ; 681 sp:modMax -2 ;
593 sp:modMin 0 ; 682 sp:modMin 0 ;
594 sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child> 683 sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
595 ] ; 684 ] ;
596 - sp:subject _:b56 685 + sp:subject _:b65
597 - ] [ sp:object _:b58 ; 686 + ] [ sp:object _:b67 ;
598 sp:predicate <http://topbraid.org/sxsd#name> ; 687 sp:predicate <http://topbraid.org/sxsd#name> ;
599 - sp:subject _:b56 688 + sp:subject _:b65
600 - ] [ sp:object _:b55 ; 689 + ] [ sp:object _:b64 ;
601 sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; 690 sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
602 - sp:subject _:b57 691 + sp:subject _:b66
603 - ] [ sp:object _:b59 ; 692 + ] [ sp:object _:b68 ;
604 sp:predicate <http://topbraid.org/sxsd#name> ; 693 sp:predicate <http://topbraid.org/sxsd#name> ;
605 - sp:subject _:b57 694 + sp:subject _:b66
606 ] [ rdf:type sp:Bind ; 695 ] [ rdf:type sp:Bind ;
607 sp:expression 696 sp:expression
608 [ rdf:type spif:titleCase ; 697 [ rdf:type spif:titleCase ;
609 - sp:arg1 _:b59 698 + sp:arg1 _:b68
610 ] ; 699 ] ;
611 - sp:variable _:b60 700 + sp:variable _:b69
612 ] [ rdf:type sp:Bind ; 701 ] [ rdf:type sp:Bind ;
613 sp:expression 702 sp:expression
614 [ rdf:type smf:buildURI ; 703 [ rdf:type smf:buildURI ;
615 sp:arg1 [ rdf:type fn:concat ; 704 sp:arg1 [ rdf:type fn:concat ;
616 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ; 705 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
617 - sp:arg2 _:b60 706 + sp:arg2 _:b69
618 ] 707 ]
619 ] ; 708 ] ;
620 - sp:variable _:b54 709 + sp:variable _:b63
621 ] [ rdf:type sp:Bind ; 710 ] [ rdf:type sp:Bind ;
622 sp:expression 711 sp:expression
623 [ rdf:type spif:titleCase ; 712 [ rdf:type spif:titleCase ;
624 - sp:arg1 _:b58 ; 713 + sp:arg1 _:b67 ;
625 sp:arg2 "[a-z]s" 714 sp:arg2 "[a-z]s"
626 ] ; 715 ] ;
627 - sp:variable _:b61 716 + sp:variable _:b70
628 ] [ rdf:type sp:Bind ; 717 ] [ rdf:type sp:Bind ;
629 sp:expression 718 sp:expression
630 [ rdf:type smf:buildURI ; 719 [ rdf:type smf:buildURI ;
631 sp:arg1 [ rdf:type fn:concat ; 720 sp:arg1 [ rdf:type fn:concat ;
632 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ; 721 sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
633 - sp:arg2 _:b61 722 + sp:arg2 _:b70
634 ] 723 ]
635 ] ; 724 ] ;
636 - sp:variable _:b53 725 + sp:variable _:b62
637 ] [ rdf:type sp:Bind ; 726 ] [ rdf:type sp:Bind ;
638 sp:expression 727 sp:expression
639 [ rdf:type smf:buildURI ; 728 [ rdf:type smf:buildURI ;
640 sp:arg1 [ rdf:type fn:concat ; 729 sp:arg1 [ rdf:type fn:concat ;
641 sp:arg1 "http://www.reportinghub.no/map/ddr#" ; 730 sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
642 - sp:arg2 _:b61 ; 731 + sp:arg2 _:b70 ;
643 sp:arg3 "-has" ; 732 sp:arg3 "-has" ;
644 - sp:arg4 _:b60 733 + sp:arg4 _:b69
645 ] 734 ]
646 ] ; 735 ] ;
647 - sp:variable _:b52 736 + sp:variable _:b61
648 ]) 737 ])
649 ] ; 738 ] ;
650 spin:query 739 spin:query
651 [ rdf:type sp:Select ; 740 [ rdf:type sp:Select ;
652 - sp:resultVariables (_:b62 _:b63 _:b64 _:b65) ; 741 + sp:resultVariables (_:b71 _:b72 _:b73 _:b74) ;
653 - sp:where ([ sp:object _:b65 ; 742 + sp:where ([ sp:object _:b74 ;
654 sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ; 743 sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
655 - sp:subject _:b64 744 + sp:subject _:b73
656 - ] [ sp:object _:b64 ; 745 + ] [ sp:object _:b73 ;
657 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 746 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
658 - sp:subject _:b63 747 + sp:subject _:b72
659 ] [ rdf:type sp:Union ; 748 ] [ rdf:type sp:Union ;
660 sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ; 749 sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
661 sp:predicate rdf:type ; 750 sp:predicate rdf:type ;
662 - sp:subject _:b63 751 + sp:subject _:b72
663 ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ; 752 ]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
664 sp:predicate rdf:type ; 753 sp:predicate rdf:type ;
665 - sp:subject _:b63 754 + sp:subject _:b72
666 ])) 755 ]))
667 - ] [ sp:object _:b63 ; 756 + ] [ sp:object _:b72 ;
668 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 757 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
669 - sp:subject _:b62 758 + sp:subject _:b71
670 ]) 759 ])
671 ] ; 760 ] ;
672 spin:query 761 spin:query
...@@ -675,231 +764,254 @@ owl:Thing ...@@ -675,231 +764,254 @@ owl:Thing
675 [ sp:varName "p"^^xsd:string 764 [ sp:varName "p"^^xsd:string
676 ] ; 765 ] ;
677 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ; 766 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
678 - sp:subject _:b66 767 + sp:subject _:b75
679 ] [ rdf:type sp:NotExists ; 768 ] [ rdf:type sp:NotExists ;
680 sp:elements ([ sp:object 769 sp:elements ([ sp:object
681 [ sp:varName "b"^^xsd:string 770 [ sp:varName "b"^^xsd:string
682 ] ; 771 ] ;
683 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ; 772 sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
684 - sp:subject _:b66 773 + sp:subject _:b75
685 ]) 774 ])
686 ]) 775 ])
687 ] ; 776 ] ;
688 spin:update 777 spin:update
689 [ rdf:type sp:Modify ; 778 [ rdf:type sp:Modify ;
690 - sp:deletePattern ([ sp:object _:b67 ; 779 + sp:deletePattern ([ sp:object _:b76 ;
691 sp:predicate rdfs:label ; 780 sp:predicate rdfs:label ;
692 - sp:subject _:b68 781 + sp:subject _:b77
693 ]) ; 782 ]) ;
694 - sp:insertPattern ([ sp:object _:b69 ; 783 + sp:insertPattern ([ sp:object _:b78 ;
695 sp:predicate rdfs:label ; 784 sp:predicate rdfs:label ;
696 - sp:subject _:b68 785 + sp:subject _:b77
697 ]) ; 786 ]) ;
698 - sp:where ([ sp:object _:b68 ; 787 + sp:where ([ sp:object _:b77 ;
699 sp:predicate owl:onProperty ; 788 sp:predicate owl:onProperty ;
700 sp:subject 789 sp:subject
701 [ sp:varName "r"^^xsd:string 790 [ sp:varName "r"^^xsd:string
702 ] 791 ]
703 - ] [ sp:object _:b67 ; 792 + ] [ sp:object _:b76 ;
704 sp:predicate rdfs:label ; 793 sp:predicate rdfs:label ;
705 - sp:subject _:b68 794 + sp:subject _:b77
706 ] [ rdf:type sp:Filter ; 795 ] [ rdf:type sp:Filter ;
707 sp:expression 796 sp:expression
708 [ rdf:type fn:starts-with ; 797 [ rdf:type fn:starts-with ;
709 - sp:arg1 _:b67 ; 798 + sp:arg1 _:b76 ;
710 sp:arg2 "has" 799 sp:arg2 "has"
711 ] 800 ]
712 ] [ rdf:type sp:Bind ; 801 ] [ rdf:type sp:Bind ;
713 sp:expression 802 sp:expression
714 [ rdf:type smf:trim ; 803 [ rdf:type smf:trim ;
715 sp:arg1 [ rdf:type smf:regex ; 804 sp:arg1 [ rdf:type smf:regex ;
716 - sp:arg1 _:b67 ; 805 + sp:arg1 _:b76 ;
717 sp:arg2 "has(.*)" ; 806 sp:arg2 "has(.*)" ;
718 sp:arg3 "$1" 807 sp:arg3 "$1"
719 ] 808 ]
720 ] ; 809 ] ;
721 - sp:variable _:b69 810 + sp:variable _:b78
722 ]) 811 ])
723 ] . 812 ] .
724 813
725 -_:b42 814 +_:b51
726 sp:varName "text"^^xsd:string . 815 sp:varName "text"^^xsd:string .
727 816
728 -_:b43 817 +_:b52
729 sp:varName "dtpnameU"^^xsd:string . 818 sp:varName "dtpnameU"^^xsd:string .
730 819
731 -_:b45 820 +_:b54
732 sp:varName "child"^^xsd:string . 821 sp:varName "child"^^xsd:string .
733 822
734 -_:b46 823 +_:b55
735 sp:varName "childType"^^xsd:string . 824 sp:varName "childType"^^xsd:string .
736 825
737 -_:b47 826 +_:b56
738 sp:varName "childLocalName"^^xsd:string . 827 sp:varName "childLocalName"^^xsd:string .
739 828
740 -_:b48 829 +_:b57
741 sp:varName "valuesRestriction"^^xsd:string . 830 sp:varName "valuesRestriction"^^xsd:string .
742 831
743 -_:b49 832 +_:b58
744 sp:varName "rangeType"^^xsd:string . 833 sp:varName "rangeType"^^xsd:string .
745 834
746 -_:b50 835 +_:b59
747 sp:varName "textNode"^^xsd:string . 836 sp:varName "textNode"^^xsd:string .
748 837
749 -_:b51 838 +_:b60
750 sp:varName "instType"^^xsd:string . 839 sp:varName "instType"^^xsd:string .
751 840
752 -_:b31 841 +_:b40
753 sp:varName "dateTime"^^xsd:string . 842 sp:varName "dateTime"^^xsd:string .
754 843
755 -_:b32 844 +_:b41
756 sp:varName "dtpnameU"^^xsd:string . 845 sp:varName "dtpnameU"^^xsd:string .
757 846
758 -_:b34 847 +_:b43
759 sp:varName "child"^^xsd:string . 848 sp:varName "child"^^xsd:string .
760 849
761 -_:b35 850 +_:b44
762 sp:varName "childType"^^xsd:string . 851 sp:varName "childType"^^xsd:string .
763 852
764 -_:b36 853 +_:b45
765 sp:varName "childLocalName"^^xsd:string . 854 sp:varName "childLocalName"^^xsd:string .
766 855
767 -_:b37 856 +_:b46
768 sp:varName "valuesRestriction"^^xsd:string . 857 sp:varName "valuesRestriction"^^xsd:string .
769 858
770 -_:b38 859 +_:b47
771 sp:varName "rangeType"^^xsd:string . 860 sp:varName "rangeType"^^xsd:string .
772 861
773 -_:b39 862 +_:b48
774 sp:varName "textNode"^^xsd:string . 863 sp:varName "textNode"^^xsd:string .
775 864
776 -_:b40 865 +_:b49
777 sp:varName "text"^^xsd:string . 866 sp:varName "text"^^xsd:string .
778 867
779 -_:b41 868 +_:b50
780 - sp:varName "instType"^^xsd:string .
781 -
782 -_:b25
783 - sp:varName "child"^^xsd:string .
784 -
785 -_:b26
786 - sp:varName "formalProperty"^^xsd:string .
787 -
788 -_:b28
789 - sp:varName "childType"^^xsd:string .
790 -
791 -_:b29
792 - sp:varName "valuesRestriction"^^xsd:string .
793 -
794 -_:b30
795 sp:varName "instType"^^xsd:string . 869 sp:varName "instType"^^xsd:string .
796 870
797 -_:b14 871 +_:b23
798 sp:varName "enumeratedValue"^^xsd:string . 872 sp:varName "enumeratedValue"^^xsd:string .
799 873
800 -_:b15 874 +_:b24
801 sp:varName "opnameU"^^xsd:string . 875 sp:varName "opnameU"^^xsd:string .
802 876
803 -_:b17 877 +_:b26
804 sp:varName "child"^^xsd:string . 878 sp:varName "child"^^xsd:string .
805 879
806 -_:b18 880 +_:b27
807 sp:varName "childType"^^xsd:string . 881 sp:varName "childType"^^xsd:string .
808 882
809 -_:b19 883 +_:b28
810 sp:varName "childLocalName"^^xsd:string . 884 sp:varName "childLocalName"^^xsd:string .
811 885
812 -_:b20 886 +_:b29
813 sp:varName "valuesRestriction"^^xsd:string . 887 sp:varName "valuesRestriction"^^xsd:string .
814 888
815 -_:b21 889 +_:b30
816 sp:varName "rangeU"^^xsd:string . 890 sp:varName "rangeU"^^xsd:string .
817 891
818 -_:b22 892 +_:b31
819 sp:varName "instType"^^xsd:string . 893 sp:varName "instType"^^xsd:string .
820 894
821 -_:b23 895 +_:b32
822 sp:varName "textNode"^^xsd:string . 896 sp:varName "textNode"^^xsd:string .
823 897
824 -_:b24 898 +_:b33
825 sp:varName "text"^^xsd:string . 899 sp:varName "text"^^xsd:string .
826 900
827 -_:b1 sp:varName "rangeU"^^xsd:string . 901 +_:b10
902 + sp:varName "rangeU"^^xsd:string .
828 903
829 -_:b3 sp:varName "uom"^^xsd:string . 904 +_:b12
905 + sp:varName "uom"^^xsd:string .
830 906
831 -_:b4 sp:varName "value"^^xsd:string . 907 +_:b13
908 + sp:varName "value"^^xsd:string .
832 909
833 -_:b5 sp:varName "opnameU"^^xsd:string . 910 +_:b14
911 + sp:varName "opnameU"^^xsd:string .
834 912
835 -_:b7 sp:varName "child"^^xsd:string . 913 +_:b16
914 + sp:varName "child"^^xsd:string .
836 915
837 -_:b8 sp:varName "childType"^^xsd:string . 916 +_:b17
917 + sp:varName "childType"^^xsd:string .
838 918
839 -_:b9 sp:varName "childLocalName"^^xsd:string . 919 +_:b18
920 + sp:varName "childLocalName"^^xsd:string .
840 921
841 -_:b10 922 +_:b19
842 sp:varName "allValuesRestriction"^^xsd:string . 923 sp:varName "allValuesRestriction"^^xsd:string .
843 924
844 -_:b11 925 +_:b20
845 sp:varName "instType"^^xsd:string . 926 sp:varName "instType"^^xsd:string .
846 927
847 -_:b12 928 +_:b21
848 sp:varName "textNode"^^xsd:string . 929 sp:varName "textNode"^^xsd:string .
849 930
850 -_:b13 931 +_:b22
851 sp:varName "text"^^xsd:string . 932 sp:varName "text"^^xsd:string .
852 933
853 -_:b66 934 +_:b75
854 sp:varName "c"^^xsd:string . 935 sp:varName "c"^^xsd:string .
855 936
856 -_:b62 937 +_:b71
857 sp:varName "pp"^^xsd:string . 938 sp:varName "pp"^^xsd:string .
858 939
859 -_:b63 940 +_:b72
860 sp:varName "p"^^xsd:string . 941 sp:varName "p"^^xsd:string .
861 942
862 -_:b64 943 +_:b73
863 sp:varName "s"^^xsd:string . 944 sp:varName "s"^^xsd:string .
864 945
865 -_:b65 946 +_:b74
866 sp:varName "e"^^xsd:string . 947 sp:varName "e"^^xsd:string .
867 948
868 -_:b52 949 +_:b61
869 sp:varName "ddrCPU"^^xsd:string . 950 sp:varName "ddrCPU"^^xsd:string .
870 951
871 -_:b53 952 +_:b62
872 sp:varName "ddrCU"^^xsd:string . 953 sp:varName "ddrCU"^^xsd:string .
873 954
874 -_:b54 955 +_:b63
875 sp:varName "ddrPU"^^xsd:string . 956 sp:varName "ddrPU"^^xsd:string .
876 957
877 -_:b55 958 +_:b64
878 sp:varName "mre"^^xsd:string . 959 sp:varName "mre"^^xsd:string .
879 960
880 -_:b56 961 +_:b65
881 sp:varName "s"^^xsd:string . 962 sp:varName "s"^^xsd:string .
882 963
883 -_:b57 964 +_:b66
884 sp:varName "c"^^xsd:string . 965 sp:varName "c"^^xsd:string .
885 966
886 -_:b58 967 +_:b67
887 sp:varName "name"^^xsd:string . 968 sp:varName "name"^^xsd:string .
888 969
889 -_:b59 970 +_:b68
890 sp:varName "pname"^^xsd:string . 971 sp:varName "pname"^^xsd:string .
891 972
892 -_:b60 973 +_:b69
893 sp:varName "tcpname"^^xsd:string . 974 sp:varName "tcpname"^^xsd:string .
894 975
895 -_:b61 976 +_:b70
896 sp:varName "tcname"^^xsd:string . 977 sp:varName "tcname"^^xsd:string .
897 978
898 -_:b67 979 +_:b76
899 sp:varName "oldLabel"^^xsd:string . 980 sp:varName "oldLabel"^^xsd:string .
900 981
901 -_:b68 982 +_:b77
902 sp:varName "p"^^xsd:string . 983 sp:varName "p"^^xsd:string .
903 984
904 -_:b69 985 +_:b78
905 sp:varName "newLabel"^^xsd:string . 986 sp:varName "newLabel"^^xsd:string .
987 +
988 +_:b38
989 + sp:varName "valuesRestriction"^^xsd:string .
990 +
991 +_:b37
992 + sp:varName "childType"^^xsd:string .
993 +
994 +_:b35
995 + sp:varName "formalProperty"^^xsd:string .
996 +
997 +_:b34
998 + sp:varName "child"^^xsd:string .
999 +
1000 +_:b39
1001 + sp:varName "instType"^^xsd:string .
1002 +
1003 +_:b5 sp:varName "valuesRestriction"^^xsd:string .
1004 +
1005 +_:b4 sp:varName "childType"^^xsd:string .
1006 +
1007 +_:b2 sp:varName "formalProperty"^^xsd:string .
1008 +
1009 +_:b6 sp:varName "propertyName"^^xsd:string .
1010 +
1011 +_:b1 sp:varName "child"^^xsd:string .
1012 +
1013 +_:b7 sp:varName "xmlTag"^^xsd:string .
1014 +
1015 +_:b8 sp:varName "tagName"^^xsd:string .
1016 +
1017 +_:b9 sp:varName "instType"^^xsd:string .
......
1 +# Saved by TopBraid on Wed Aug 10 18:50:05 PDT 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:12:10 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
3 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
5 +# imports: http://spinrdf.org/spin
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
8 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
9 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
10 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
11 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
12 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
13 +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
14 +@prefix sp: <http://spinrdf.org/sp#> .
15 +@prefix spin: <http://spinrdf.org/spin#> .
16 +@prefix spl: <http://spinrdf.org/spl#> .
17 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 +
19 +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
20 + spin:rule
21 + [ rdf:type sp:Construct ;
22 + rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ;
23 + sp:templates ([ sp:object _:b1 ;
24 + sp:predicate _:b2 ;
25 + sp:subject _:b3
26 + ]) ;
27 + sp:where ([ sp:object _:b4 ;
28 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
29 + sp:subject spin:_this
30 + ] [ sp:object _:b5 ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
32 + sp:subject spin:_this
33 + ] [ sp:object _:b6 ;
34 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreAlias> ;
35 + sp:subject spin:_this
36 + ] [ sp:object _:b1 ;
37 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
38 + sp:subject _:b6
39 + ] [ sp:object _:b7 ;
40 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ;
41 + sp:subject _:b6
42 + ] [ sp:object _:b8 ;
43 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
44 + sp:subject _:b9
45 + ] [ sp:object _:b3 ;
46 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
47 + sp:subject _:b8
48 + ] [ rdf:type sp:Bind ;
49 + sp:expression
50 + [ rdf:type ep-spin-lib:normalizeString ;
51 + sp:arg1 _:b4
52 + ] ;
53 + sp:variable _:b10
54 + ] [ rdf:type sp:Bind ;
55 + sp:expression
56 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
57 + sp:arg1 _:b10 ;
58 + sp:arg2 _:b5
59 + ] ;
60 + sp:variable _:b9
61 + ] [ rdf:type sp:Bind ;
62 + sp:expression
63 + [ rdf:type ep-spin-lib:selectLabelOfSystem ;
64 + sp:arg1 _:b7
65 + ] ;
66 + sp:variable _:b2
67 + ])
68 + ] ;
69 + spin:rule
70 + [ rdf:type sp:Construct ;
71 + rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
72 + sp:templates ([ sp:object _:b11 ;
73 + sp:predicate _:b12 ;
74 + sp:subject _:b13
75 + ]) ;
76 + sp:where ([ sp:object _:b14 ;
77 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
78 + sp:subject spin:_this
79 + ] [ sp:object _:b15 ;
80 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
81 + sp:subject spin:_this
82 + ] [ sp:object _:b16 ;
83 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellAlias> ;
84 + sp:subject spin:_this
85 + ] [ sp:object _:b11 ;
86 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
87 + sp:subject _:b16
88 + ] [ sp:object _:b17 ;
89 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumNamingSystem> ;
90 + sp:subject _:b16
91 + ] [ sp:object _:b13 ;
92 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
93 + sp:subject _:b18
94 + ] [ rdf:type sp:Bind ;
95 + sp:expression
96 + [ rdf:type ep-spin-lib:normalizeString ;
97 + sp:arg1 _:b14
98 + ] ;
99 + sp:variable _:b19
100 + ] [ rdf:type sp:Bind ;
101 + sp:expression
102 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
103 + sp:arg1 _:b19 ;
104 + sp:arg2 _:b15
105 + ] ;
106 + sp:variable _:b18
107 + ] [ rdf:type sp:Bind ;
108 + sp:expression
109 + [ rdf:type ep-spin-lib:selectLabelOfSystem ;
110 + sp:arg1 _:b17
111 + ] ;
112 + sp:variable _:b12
113 + ])
114 + ] .
115 +
116 +<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias>
117 + rdf:type owl:Ontology ;
118 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
119 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
120 +
121 +_:b14
122 + sp:varName "nameWellBore"^^xsd:string .
123 +
124 +_:b15
125 + sp:varName "dTimStart"^^xsd:string .
126 +
127 +_:b16
128 + sp:varName "wellAlias"^^xsd:string .
129 +
130 +_:b11
131 + sp:varName "name"^^xsd:string .
132 +
133 +_:b17
134 + sp:varName "namingSystem"^^xsd:string .
135 +
136 +_:b18
137 + sp:varName "dailyDrillingActivity"^^xsd:string .
138 +
139 +_:b13
140 + sp:varName "well"^^xsd:string .
141 +
142 +_:b19
143 + sp:varName "normalizedWellBoreName"^^xsd:string .
144 +
145 +_:b12
146 + sp:varName "labelOfSystem"^^xsd:string .
147 +
148 +_:b4 sp:varName "nameWellBore"^^xsd:string .
149 +
150 +_:b5 sp:varName "dTimStart"^^xsd:string .
151 +
152 +_:b6 sp:varName "wellBoreAlias"^^xsd:string .
153 +
154 +_:b1 sp:varName "name"^^xsd:string .
155 +
156 +_:b7 sp:varName "namingSystem"^^xsd:string .
157 +
158 +_:b9 sp:varName "dailyDrillingActivity"^^xsd:string .
159 +
160 +_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string .
161 +
162 +_:b3 sp:varName "wellBore"^^xsd:string .
163 +
164 +_:b10
165 + sp:varName "normalizedWellBoreName"^^xsd:string .
166 +
167 +_:b2 sp:varName "labelOfSystem"^^xsd:string .
168 +
169 +[] rdf:type smf:regex .
170 +
171 +[] rdf:type smf:trim .
172 +
173 +[] rdf:type fn:starts-with .
174 +
175 +[] rdf:type sp:Modify .
176 +
177 +([]) .
178 +
179 +([]) .
180 +
181 +([] [] [ rdf:type sp:Filter
182 + ] [ rdf:type sp:Bind
183 + ]) .
1 +# Saved by TopBraid on Wed Aug 10 14:05:00 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
3 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
5 +# imports: http://spinrdf.org/spin
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
8 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
9 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
10 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
11 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
12 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
13 +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
14 +@prefix sp: <http://spinrdf.org/sp#> .
15 +@prefix spin: <http://spinrdf.org/spin#> .
16 +@prefix spl: <http://spinrdf.org/spl#> .
17 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 +
19 +<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
20 + spin:rule
21 + [ rdf:type sp:Construct ;
22 + rdfs:comment "STEP 161 Set name for Rig"^^xsd:string ;
23 + sp:templates ([ sp:object _:b1 ;
24 + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdName> ;
25 + sp:subject _:b2
26 + ]) ;
27 + sp:where ([ sp:object _:b3 ;
28 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
29 + sp:subject spin:_this
30 + ] [ sp:object _:b4 ;
31 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
32 + sp:subject spin:_this
33 + ] [ sp:object _:b5 ;
34 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ;
35 + sp:subject spin:_this
36 + ] [ sp:object _:b6 ;
37 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ;
38 + sp:subject _:b5
39 + ] [ sp:object _:b1 ;
40 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
41 + sp:subject _:b6
42 + ] [ sp:object "NPD Name" ;
43 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ;
44 + sp:subject _:b6
45 + ] [ sp:object _:b7 ;
46 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
47 + sp:subject _:b8
48 + ] [ sp:object _:b2 ;
49 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
50 + sp:subject _:b7
51 + ] [ rdf:type sp:Bind ;
52 + sp:expression
53 + [ rdf:type ep-spin-lib:normalizeString ;
54 + sp:arg1 _:b3
55 + ] ;
56 + sp:variable _:b9
57 + ] [ rdf:type sp:Bind ;
58 + sp:expression
59 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
60 + sp:arg1 _:b9 ;
61 + sp:arg2 _:b4
62 + ] ;
63 + sp:variable _:b8
64 + ])
65 + ] ;
66 + spin:rule
67 + [ rdf:type sp:Construct ;
68 + rdfs:comment "STEP 160 Set rig for drilling activity"^^xsd:string ;
69 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
70 + sp:predicate rdf:type ;
71 + sp:subject _:b10
72 + ] [ sp:object _:b10 ;
73 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
74 + sp:subject _:b11
75 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
76 + sp:predicate rdf:type ;
77 + sp:subject _:b12
78 + ] [ sp:object _:b13 ;
79 + sp:predicate <http://www.reportinghub.no/ep/schema/core#npdCode> ;
80 + sp:subject _:b12
81 + ] [ sp:object _:b12 ;
82 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
83 + sp:subject _:b10
84 + ]) ;
85 + sp:where ([ sp:object _:b14 ;
86 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
87 + sp:subject spin:_this
88 + ] [ sp:object _:b15 ;
89 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
90 + sp:subject spin:_this
91 + ] [ sp:object _:b16 ;
92 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
93 + sp:subject spin:_this
94 + ] [ sp:object _:b17 ;
95 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#wellboreInfo> ;
96 + sp:subject spin:_this
97 + ] [ sp:object _:b18 ;
98 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#rigAlias> ;
99 + sp:subject _:b17
100 + ] [ sp:object "NPD Code" ;
101 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#namingSystem> ;
102 + sp:subject _:b18
103 + ] [ sp:object _:b13 ;
104 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
105 + sp:subject _:b18
106 + ] [ rdf:type sp:Bind ;
107 + sp:expression
108 + [ rdf:type ep-spin-lib:normalizeString ;
109 + sp:arg1 _:b14
110 + ] ;
111 + sp:variable _:b19
112 + ] [ rdf:type sp:Bind ;
113 + sp:expression
114 + [ rdf:type ep-spin-lib:normalizeString ;
115 + sp:arg1 _:b13
116 + ] ;
117 + sp:variable _:b20
118 + ] [ rdf:type sp:Bind ;
119 + sp:expression
120 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
121 + sp:arg1 _:b19 ;
122 + sp:arg2 _:b15
123 + ] ;
124 + sp:variable _:b11
125 + ] [ rdf:type sp:Bind ;
126 + sp:expression
127 + [ rdf:type ep-spin-lib:buildRigURI ;
128 + sp:arg1 _:b20
129 + ] ;
130 + sp:variable _:b12
131 + ] [ rdf:type sp:Bind ;
132 + sp:expression
133 + [ rdf:type ep-spin-lib:buildTemporalPartOfARigURI ;
134 + sp:arg1 _:b20 ;
135 + sp:arg2 _:b15 ;
136 + sp:arg3 _:b16
137 + ] ;
138 + sp:variable _:b10
139 + ])
140 + ] .
141 +
142 +<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
143 + rdf:type owl:Ontology ;
144 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
145 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
146 +
147 +[] rdf:type smf:regex .
148 +
149 +[] rdf:type smf:trim .
150 +
151 +[] rdf:type fn:starts-with .
152 +
153 +[] rdf:type sp:Modify .
154 +
155 +_:b14
156 + sp:varName "nameWellBore"^^xsd:string .
157 +
158 +_:b15
159 + sp:varName "dTimStart"^^xsd:string .
160 +
161 +_:b16
162 + sp:varName "dTimEnd"^^xsd:string .
163 +
164 +_:b17
165 + sp:varName "wellboreInfo"^^xsd:string .
166 +
167 +_:b18
168 + sp:varName "rigAlias"^^xsd:string .
169 +
170 +_:b13
171 + sp:varName "nameRig"^^xsd:string .
172 +
173 +_:b19
174 + sp:varName "normalizedWellBoreName"^^xsd:string .
175 +
176 +_:b20
177 + sp:varName "normalizedRigName"^^xsd:string .
178 +
179 +_:b11
180 + sp:varName "dailyDrillingActivity"^^xsd:string .
181 +
182 +_:b12
183 + sp:varName "rig"^^xsd:string .
184 +
185 +_:b10
186 + sp:varName "temporalPartOfARig"^^xsd:string .
187 +
188 +_:b3 sp:varName "nameWellBore"^^xsd:string .
189 +
190 +_:b4 sp:varName "dTimStart"^^xsd:string .
191 +
192 +_:b5 sp:varName "wellboreInfo"^^xsd:string .
193 +
194 +_:b6 sp:varName "rigAlias"^^xsd:string .
195 +
196 +_:b1 sp:varName "name"^^xsd:string .
197 +
198 +_:b8 sp:varName "dailyDrillingActivity"^^xsd:string .
199 +
200 +_:b7 sp:varName "temporalPartOfARig"^^xsd:string .
201 +
202 +_:b2 sp:varName "rig"^^xsd:string .
203 +
204 +_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
205 +
206 +([] [] [ rdf:type sp:Filter
207 + ] [ rdf:type sp:Bind
208 + ]) .
209 +
210 +([]) .
211 +
212 +([]) .