David Price

Improved Operations table, added Equipment Failure table placeholder.

This diff could not be displayed because it is too large.
1 -# Saved by TopBraid on Sun Aug 14 22:37:58 BST 2011 1 +# Saved by TopBraid on Sun Aug 14 23:37:07 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0 2 # baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 3 # imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr 4 # imports: http://www.reportinghub.no/ep/schema/1.0/ddr
...@@ -15,18 +15,17 @@ ...@@ -15,18 +15,17 @@
15 @prefix spl: <http://spinrdf.org/spl#> . 15 @prefix spl: <http://spinrdf.org/spl#> .
16 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 16 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
17 17
18 -ddr-tables:Operations 18 +ddr-tables:EquipmentFailure
19 rdf:type rhspin:TableTemplate ; 19 rdf:type rhspin:TableTemplate ;
20 - rdfs:label "Operations"^^xsd:string ; 20 + rdfs:label "Equipment Failure Information"^^xsd:string ;
21 rdfs:subClassOf rhspin:DDRTableTemplates ; 21 rdfs:subClassOf rhspin:DDRTableTemplates ;
22 spin:body 22 spin:body
23 [ rdf:type sp:Select ; 23 [ rdf:type sp:Select ;
24 sp:orderBy (_:b1) ; 24 sp:orderBy (_:b1) ;
25 - sp:resultVariables (_:b1 _:b2 [ sp:varName "startDepth"^^xsd:string 25 + sp:resultVariables (_:b1 _:b2 _:b3 [ sp:varName "activity"^^xsd:string
26 - ] [ sp:varName "endDepth"^^xsd:string 26 + ] [ sp:varName "downtime"^^xsd:string
27 - ] _:b3 _:b4 [ sp:varName "state"^^xsd:string 27 + ] [ sp:varName "repairedTime"^^xsd:string
28 - ] [ sp:varName "remark"^^xsd:string 28 + ] _:b4) ;
29 - ]) ;
30 sp:where ([ sp:object _:b5 ; 29 sp:where ([ sp:object _:b5 ;
31 sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ; 30 sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
32 sp:subject 31 sp:subject
...@@ -38,27 +37,88 @@ ddr-tables:Operations ...@@ -38,27 +37,88 @@ ddr-tables:Operations
38 ] [ sp:object _:b1 ; 37 ] [ sp:object _:b1 ;
39 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 38 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
40 sp:subject _:b6 39 sp:subject _:b6
41 - ] [ sp:object _:b2 ; 40 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity-equipment_failure> ;
42 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; 41 + sp:predicate rdf:type ;
43 sp:subject _:b6 42 sp:subject _:b6
44 ] [ rdf:type sp:Optional ; 43 ] [ rdf:type sp:Optional ;
45 - sp:elements ([ sp:object _:b4 ; 44 + sp:elements ([ sp:object _:b7 ;
46 - sp:predicate rdf:type ; 45 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
47 sp:subject _:b6 46 sp:subject _:b6
48 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ; 47 + ] [ sp:object _:b8 ;
49 - sp:predicate rdf:type ; 48 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
50 - sp:subject _:b4 49 + sp:subject _:b7
50 + ] [ sp:object _:b2 ;
51 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
52 + sp:subject _:b8
51 ]) 53 ])
52 ] [ rdf:type sp:Optional ; 54 ] [ rdf:type sp:Optional ;
53 sp:elements ([ sp:object _:b7 ; 55 sp:elements ([ sp:object _:b7 ;
54 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 56 sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
55 sp:subject _:b6 57 sp:subject _:b6
56 - ] [ sp:object _:b8 ; 58 + ] [ sp:object _:b9 ;
57 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; 59 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
58 sp:subject _:b7 60 sp:subject _:b7
59 ] [ sp:object _:b3 ; 61 ] [ sp:object _:b3 ;
60 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 62 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
61 - sp:subject _:b8 63 + sp:subject _:b9
64 + ])
65 + ] [ rdf:type sp:Optional ;
66 + sp:elements ([ sp:object _:b4 ;
67 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ;
68 + sp:subject _:b6
69 + ])
70 + ])
71 + ] ;
72 + rhspin:tableHeaders ("Start Time"^^xsd:string "Depth mMD"^^xsd:string "Depth mTVD"^^xsd:string "Sub Equip Syst Class"^^xsd:string "Operation Downtime"^^xsd:string "Equipment Repaired"^^xsd:string "Failure Description"^^xsd:string) .
73 +
74 +ddr-tables:Operations
75 + rdf:type rhspin:TableTemplate ;
76 + rdfs:label "Operations"^^xsd:string ;
77 + rdfs:subClassOf rhspin:DDRTableTemplates ;
78 + spin:body
79 + [ rdf:type sp:Select ;
80 + sp:orderBy (_:b10) ;
81 + sp:resultVariables (_:b10 _:b11 [ sp:varName "startDepth"^^xsd:string
82 + ] [ sp:varName "endDepth"^^xsd:string
83 + ] _:b12 _:b13 [ sp:varName "state"^^xsd:string
84 + ] _:b14) ;
85 + sp:where ([ sp:object _:b15 ;
86 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
87 + sp:subject
88 + [ sp:varName "report"^^xsd:string
89 + ]
90 + ] [ sp:object _:b16 ;
91 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
92 + sp:subject _:b15
93 + ] [ sp:object _:b10 ;
94 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
95 + sp:subject _:b16
96 + ] [ sp:object _:b11 ;
97 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
98 + sp:subject _:b16
99 + ] [ rdf:type sp:Optional ;
100 + sp:elements ([ sp:object _:b13 ;
101 + sp:predicate rdf:type ;
102 + sp:subject _:b16
103 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ;
104 + sp:predicate rdf:type ;
105 + sp:subject _:b13
106 + ])
107 + ] [ rdf:type sp:Optional ;
108 + sp:elements ([ sp:object _:b17 ;
109 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
110 + sp:subject _:b16
111 + ] [ sp:object _:b18 ;
112 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
113 + sp:subject _:b17
114 + ] [ sp:object _:b12 ;
115 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
116 + sp:subject _:b18
117 + ])
118 + ] [ rdf:type sp:Optional ;
119 + sp:elements ([ sp:object _:b14 ;
120 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ;
121 + sp:subject _:b16
62 ]) 122 ])
63 ]) 123 ])
64 ] ; 124 ] ;
...@@ -70,18 +130,47 @@ ddr-tables:Operations ...@@ -70,18 +130,47 @@ ddr-tables:Operations
70 owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ; 130 owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
71 owl:versionInfo "0.1.0"^^xsd:string . 131 owl:versionInfo "0.1.0"^^xsd:string .
72 132
73 -_:b3 sp:varName "depth"^^xsd:string . 133 +_:b9 sp:varName "tvd"^^xsd:string .
74 134
75 _:b8 sp:varName "md"^^xsd:string . 135 _:b8 sp:varName "md"^^xsd:string .
76 136
77 _:b7 sp:varName "wellbore"^^xsd:string . 137 _:b7 sp:varName "wellbore"^^xsd:string .
78 138
79 -_:b4 sp:varName "activity"^^xsd:string . 139 +_:b6 sp:varName "part"^^xsd:string .
140 +
141 +_:b5 sp:varName "reportOn"^^xsd:string .
142 +
143 +_:b4 sp:varName "failureDescription"^^xsd:string .
80 144
81 -_:b2 sp:varName "endTime"^^xsd:string . 145 +_:b3 sp:varName "depthTVD"^^xsd:string .
146 +
147 +_:b2 sp:varName "depthMD"^^xsd:string .
82 148
83 _:b1 sp:varName "startTime"^^xsd:string . 149 _:b1 sp:varName "startTime"^^xsd:string .
84 150
85 -_:b6 sp:varName "part"^^xsd:string . 151 +_:b14
152 + sp:varName "remark"^^xsd:string .
86 153
87 -_:b5 sp:varName "reportOn"^^xsd:string . 154 +_:b12
155 + sp:varName "depth"^^xsd:string .
156 +
157 +_:b18
158 + sp:varName "md"^^xsd:string .
159 +
160 +_:b17
161 + sp:varName "wellbore"^^xsd:string .
162 +
163 +_:b13
164 + sp:varName "activity"^^xsd:string .
165 +
166 +_:b11
167 + sp:varName "endTime"^^xsd:string .
168 +
169 +_:b10
170 + sp:varName "startTime"^^xsd:string .
171 +
172 +_:b16
173 + sp:varName "part"^^xsd:string .
174 +
175 +_:b15
176 + sp:varName "reportOn"^^xsd:string .
......
1 -# Saved by TopBraid on Sun Aug 14 22:37:58 BST 2011 1 +# Saved by TopBraid on Sun Aug 14 23:37:07 BST 2011
2 # baseURI: null 2 # baseURI: null
3 3
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
...@@ -57,5 +57,8 @@ ...@@ -57,5 +57,8 @@
57 57
58 <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:Operations" /> 58 <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:Operations" />
59 59
60 + <ddrswp:Table arg:report="{= ?report }" arg:template="ddr-tables:EquipmentFailure" />
61 +
62 +
60 </ui:group> 63 </ui:group>
61 </ui:group> 64 </ui:group>
......