David Price

Completed separation of Non Productive Time from Weekly Drilling Report.

...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
5 # imports: http://www.reportinghub.no/spin/rh 5 # imports: http://www.reportinghub.no/spin/rh
6 6
7 @prefix arg: <http://spinrdf.org/arg#> . 7 @prefix arg: <http://spinrdf.org/arg#> .
8 +@prefix drilling-tables: <http://www.reportinghub.no/ep/spin/drilling-tables#> .
8 @prefix owl: <http://www.w3.org/2002/07/owl#> . 9 @prefix owl: <http://www.w3.org/2002/07/owl#> .
9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 10 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 11 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
...@@ -13,7 +14,6 @@ ...@@ -13,7 +14,6 @@
13 @prefix spif: <http://spinrdf.org/spif#> . 14 @prefix spif: <http://spinrdf.org/spif#> .
14 @prefix spin: <http://spinrdf.org/spin#> . 15 @prefix spin: <http://spinrdf.org/spin#> .
15 @prefix spl: <http://spinrdf.org/spl#> . 16 @prefix spl: <http://spinrdf.org/spl#> .
16 -@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> .
17 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 17 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 18
19 <http://www.reportinghub.no/ep/spin/drilling-tables> 19 <http://www.reportinghub.no/ep/spin/drilling-tables>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ; 22 owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ;
23 owl:versionInfo "0.1.0"^^xsd:string . 23 owl:versionInfo "0.1.0"^^xsd:string .
24 24
25 -<http://www.reportinghub.no/ep/spin/drilling-tables#DailyAndForecastComments> 25 +drilling-tables:DailyAndForecastComments
26 rdf:type rhspin:TableTemplate ; 26 rdf:type rhspin:TableTemplate ;
27 rdfs:label "Daily and Forecast Comments"^^xsd:string ; 27 rdfs:label "Daily and Forecast Comments"^^xsd:string ;
28 rdfs:subClassOf rhspin:WDRTableTemplates ; 28 rdfs:subClassOf rhspin:WDRTableTemplates ;
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
122 ] ; 122 ] ;
123 rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) . 123 rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) .
124 124
125 -<http://www.reportinghub.no/ep/spin/drilling-tables#MissedProduction> 125 +drilling-tables:MissedProduction
126 rdf:type rhspin:TableTemplate ; 126 rdf:type rhspin:TableTemplate ;
127 rdfs:label "Non Productive Time"^^xsd:string ; 127 rdfs:label "Non Productive Time"^^xsd:string ;
128 rdfs:subClassOf rhspin:WDRTableTemplates ; 128 rdfs:subClassOf rhspin:WDRTableTemplates ;
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
241 ] ; 241 ] ;
242 rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) . 242 rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) .
243 243
244 -<http://www.reportinghub.no/ep/spin/drilling-tables#Test> 244 +drilling-tables:Test
245 rdf:type rhspin:TableTemplate ; 245 rdf:type rhspin:TableTemplate ;
246 rdfs:label "Test Table"^^xsd:string ; 246 rdfs:label "Test Table"^^xsd:string ;
247 rdfs:subClassOf rhspin:WDRTableTemplates ; 247 rdfs:subClassOf rhspin:WDRTableTemplates ;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 <h2>Start Date : {= ?startDate }</h2> 5 <h2>Start Date : {= ?startDate }</h2>
6 <hr /> 6 <hr />
7 7
8 - <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" /> 8 + <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="drilling-tables:MissedProduction" />
9 9
10 </ui:group> 10 </ui:group>
11 </ui:group> 11 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......
1 +# baseURI: http://www.reportinghub.no/swp/npt
2 +# imports: http://uispin.org/tui
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/facility
9 +# imports: http://www.reportinghub.no/ep/schema/1.0/organization
10 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
11 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
12 +# imports: http://www.reportinghub.no/ep/spin/drilling-tables
13 +# imports: http://www.reportinghub.no/spin/rh
14 +
15 +@prefix arg: <http://spinrdf.org/arg#> .
16 +@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> .
17 +@prefix html: <http://uispin.org/html#> .
18 +@prefix let: <http://uispin.org/let#> .
19 +@prefix letrs: <http://uispin.org/letrs#> .
20 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
21 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
22 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
23 +@prefix sp: <http://spinrdf.org/sp#> .
24 +@prefix spin: <http://spinrdf.org/spin#> .
25 +@prefix spl: <http://spinrdf.org/spl#> .
26 +@prefix ui: <http://uispin.org/ui#> .
27 +@prefix nptswp: <http://www.reportinghub.no/swp/npt#> .
28 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
29 +
30 +arg:startDate
31 + rdf:type rdf:Property ;
32 + rdfs:label "startDate"^^xsd:string ;
33 + rdfs:subPropertyOf sp:arg .
34 +
35 +arg:template
36 + rdf:type rdf:Property ;
37 + rdfs:label "template"^^xsd:string ;
38 + rdfs:subPropertyOf sp:arg .
39 +
40 +arg:wellBore
41 + rdf:type rdf:Property ;
42 + rdfs:label "well bore"^^xsd:string ;
43 + rdfs:subPropertyOf sp:arg .
44 +
45 +<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
46 + ui:instanceView
47 + [ rdf:type ui:group ;
48 + let:startDate
49 + [ rdf:type sp:Select ;
50 + sp:resultVariables ([ sp:varName "startDate"^^xsd:string
51 + ]) ;
52 + sp:where ([ rdf:type sp:TriplePath ;
53 + sp:object
54 + [ sp:varName "timeStamp"^^xsd:string
55 + ] ;
56 + sp:path [ rdf:type sp:SeqPath ;
57 + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
58 + sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt>
59 + ] ;
60 + sp:subject spin:_this
61 + ] [ rdf:type sp:Bind ;
62 + sp:expression
63 + [ rdf:type xsd:date ;
64 + sp:arg1 [ sp:varName "timeStamp"^^xsd:string
65 + ]
66 + ] ;
67 + sp:variable
68 + [ sp:varName "startDate"^^xsd:string
69 + ]
70 + ])
71 + ] ;
72 + let:wellBore
73 + [ rdf:type sp:Select ;
74 + sp:resultVariables ([ sp:varName "wellBore"^^xsd:string
75 + ]) ;
76 + sp:where ([ rdf:type sp:TriplePath ;
77 + sp:object
78 + [ sp:varName "wellBore"^^xsd:string
79 + ] ;
80 + sp:path [ rdf:type sp:SeqPath ;
81 + sp:path1
82 + [ rdf:type sp:SeqPath ;
83 + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
84 + sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore>
85 + ] ;
86 + sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf>
87 + ] ;
88 + sp:subject spin:_this
89 + ])
90 + ] ;
91 + ui:child
92 + [ rdf:type nptswp:NonProductiveTimeReportView ;
93 + arg:startDate
94 + [ sp:varName "startDate"^^xsd:string
95 + ] ;
96 + arg:wellBore
97 + [ sp:varName "wellBore"^^xsd:string
98 + ] ;
99 + ui:childIndex 0
100 + ] ;
101 + ui:priority -1
102 + ] .
103 +
104 +<http://www.reportinghub.no/swp/npt>
105 + rdf:type owl:Ontology ;
106 + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <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/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/drilling-tables> , <http://www.reportinghub.no/spin/rh> ;
107 + owl:versionInfo "0.1.0"^^xsd:string .
108 +
109 +nptswp:Table
110 + rdf:type ui:NodeClass ;
111 + rdfs:comment "An HTML table displaying the results of a given SPIN template for a given npt. The template should also provide rhspin:tableHeaders."^^xsd:string ;
112 + rdfs:label "Table"^^xsd:string ;
113 + rdfs:subClassOf ui:Element ;
114 + spin:constraint
115 + [ rdf:type spl:Argument ;
116 + rdfs:comment "The SPIN Template to execute."^^xsd:string ;
117 + spl:predicate arg:template ;
118 + spl:valueType spin:Template
119 + ] ;
120 + spin:constraint
121 + [ rdf:type spl:Argument ;
122 + rdfs:comment "The well bore of the report."^^xsd:string ;
123 + spl:predicate arg:wellBore ;
124 + spl:valueType ep-well:WellBore
125 + ] ;
126 + spin:constraint
127 + [ rdf:type spl:Argument ;
128 + rdfs:comment "The start date of the report."^^xsd:string ;
129 + spl:predicate arg:startDate ;
130 + spl:valueType xsd:date
131 + ] ;
132 + ui:prototype <http://www.reportinghub.no/swp/NPTTable.uispin.html> .
133 +
134 +nptswp:NonProductiveTimeReportView
135 + rdf:type ui:NodeClass ;
136 + rdfs:label "Weekly drilling report view"^^xsd:string ;
137 + rdfs:subClassOf ui:Element ;
138 + spin:constraint
139 + [ rdf:type spl:Argument ;
140 + rdfs:comment "The well bore."^^xsd:string ;
141 + spl:predicate arg:wellBore ;
142 + spl:valueType ep-well:WellBore
143 + ] ;
144 + spin:constraint
145 + [ rdf:type spl:Argument ;
146 + rdfs:comment "The start date of the report to display."^^xsd:string ;
147 + spl:predicate arg:startDate ;
148 + spl:valueType xsd:date
149 + ] ;
150 + ui:headIncludes
151 + [ rdf:type html:Link ;
152 + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
153 + html:rel "stylesheet"^^xsd:string ;
154 + html:type "text/css"^^xsd:string
155 + ] ;
156 + ui:prototype <http://www.reportinghub.no/swp/NonProductiveTimeReport.uispin.html> .
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 <h2>Start Date : {= ?startDate }</h2> 5 <h2>Start Date : {= ?startDate }</h2>
6 <hr /> 6 <hr />
7 7
8 - <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:DailyAndForecastComments" /> 8 + <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="drilling-tables:DailyAndForecastComments" />
9 9
10 </ui:group> 10 </ui:group>
11 </ui:group> 11 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......