Showing
1 changed file
with
183 additions
and
0 deletions
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 | + ]) . |
-
Please register or login to post a comment