SPIN_EP-DDR-tables-v1.0.spin.ttl
8.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Saved by TopBraid on Sun Aug 14 23:37:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/spin/rh
@prefix ddr-tables: <http://www.reportinghub.no/ep/spin/ddr-tables#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr-tables:EquipmentFailure
rdf:type rhspin:TableTemplate ;
rdfs:label "Equipment Failure Information"^^xsd:string ;
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy (_:b1) ;
sp:resultVariables (_:b1 _:b2 _:b3 [ sp:varName "activity"^^xsd:string
] [ sp:varName "downtime"^^xsd:string
] [ sp:varName "repairedTime"^^xsd:string
] _:b4) ;
sp:where ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b5
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity-equipment_failure> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b7
] [ sp:object _:b2 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b8
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b6
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
sp:subject _:b7
] [ sp:object _:b3 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b9
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ;
sp:subject _:b6
])
])
] ;
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) .
ddr-tables:Operations
rdf:type rhspin:TableTemplate ;
rdfs:label "Operations"^^xsd:string ;
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy (_:b10) ;
sp:resultVariables (_:b10 _:b11 [ sp:varName "startDepth"^^xsd:string
] [ sp:varName "endDepth"^^xsd:string
] _:b12 _:b13 [ sp:varName "state"^^xsd:string
] _:b14) ;
sp:where ([ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b15
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject _:b16
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject _:b16
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b13 ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/activity-purpose#DailyDrillingActivityPurposeType> ;
sp:predicate rdf:type ;
sp:subject _:b13
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
sp:subject _:b17
] [ sp:object _:b12 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b18
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#comments> ;
sp:subject _:b16
])
])
] ;
rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) .
<http://www.reportinghub.no/ep/spin/ddr-tables-v1.0>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
_:b9 sp:varName "tvd"^^xsd:string .
_:b8 sp:varName "md"^^xsd:string .
_:b7 sp:varName "wellbore"^^xsd:string .
_:b6 sp:varName "part"^^xsd:string .
_:b5 sp:varName "reportOn"^^xsd:string .
_:b4 sp:varName "failureDescription"^^xsd:string .
_:b3 sp:varName "depthTVD"^^xsd:string .
_:b2 sp:varName "depthMD"^^xsd:string .
_:b1 sp:varName "startTime"^^xsd:string .
_:b14
sp:varName "remark"^^xsd:string .
_:b12
sp:varName "depth"^^xsd:string .
_:b18
sp:varName "md"^^xsd:string .
_:b17
sp:varName "wellbore"^^xsd:string .
_:b13
sp:varName "activity"^^xsd:string .
_:b11
sp:varName "endTime"^^xsd:string .
_:b10
sp:varName "startTime"^^xsd:string .
_:b16
sp:varName "part"^^xsd:string .
_:b15
sp:varName "reportOn"^^xsd:string .