Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2011-10-15 19:22:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
667c360c16503d13bd53d9b991383f9805f37279
667c360c
1 parent
68a53762
Added MissedProduction WDR table for weekly
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
10 deletions
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/WeeklyDrillingReport.uispin.html
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
View file @
667c360
# Saved by TopBraid on Sat Oct 15 16:08:08 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables
# imports: http://spinrdf.org/spin
# 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
arg:
<http://spinrdf.org/arg#>
.
...
...
@@ -20,7 +19,7 @@
<http://www.reportinghub.no/ep/spin/wdr-tables>
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://
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
>
;
owl:
imports
<http://
www.reportinghub.no/spin/rh>
,
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/schema/1.0/activity-purpose>
,
<http://spinrdf.org/spin
>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
wdr-tables:
DailyAndForecastComments
...
...
@@ -83,6 +82,123 @@ wdr-tables:DailyAndForecastComments
]
;
rhspin:
tableHeaders
(
"Day"
^^
xsd:
string
"Daily Summary"
^^
xsd:
string
"Next Day Forecast"
^^
xsd:
string
)
.
wdr-tables:
MissedProduction
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Non Productive Time"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
WDRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
([
sp:
varName
"day"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"day"
^^
xsd:
string
]
[
sp:
varName
"startTime"
^^
xsd:
string
]
[
sp:
varName
"duration"
^^
xsd:
string
]
[
sp:
varName
"comment"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"dayWellbore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dayWellbore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dayWellbore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"partWellbore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"partWellbore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
[
sp:
varName
"failure"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#EquipmentFailureAndRepair>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"failure"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"timeOfFailure"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#timeOfFailure>
;
sp:
subject
[
sp:
varName
"failure"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
[
sp:
varName
"timeOfFailure"
^^
xsd:
string
]
;
arg:
pattern
"yyyy-MM-dd"
]
;
sp:
variable
[
sp:
varName
"day"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
arg:
pattern
"yyyy-MM-dd"
]
;
sp:
variable
[
sp:
varName
"startDateDay"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
le
;
sp:
arg1
[
sp:
varName
"startDateDay"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"day"
^^
xsd:
string
]
]
]
[
sp:
object
[
sp:
varName
"comment"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
comment
;
sp:
subject
[
sp:
varName
"failure"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"mpt"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#missedProductionTime>
;
sp:
subject
[
sp:
varName
"failure"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"duration"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#minute>
;
sp:
subject
[
sp:
varName
"mpt"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
[
sp:
varName
"timeOfFailure"
^^
xsd:
string
]
;
arg:
pattern
"HH:mm"
]
;
sp:
variable
[
sp:
varName
"startTime"
^^
xsd:
string
]
])
]
;
rhspin:
tableHeaders
(
"Day"
^^
xsd:
string
"Start Time"
^^
xsd:
string
"Duration Minutes"
^^
xsd:
string
"Comment"
^^
xsd:
string
)
.
wdr-tables:
Test
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Test Table"
^^
xsd:
string
;
...
...
@@ -116,14 +232,8 @@ wdr-tables:Test
]
;
rhspin:
tableHeaders
(
"Column 1"
^^
xsd:
string
"Column 2"
^^
xsd:
string
"Column 3"
^^
xsd:
string
)
.
_:
b3
sp:
varName
"nextDayForecast"
^^
xsd:
string
.
_:
b2
sp:
varName
"dailySummary"
^^
xsd:
string
.
_:
b8
sp:
varName
"startDateDay"
^^
xsd:
string
.
_:
b1
sp:
varName
"day"
^^
xsd:
string
.
_:
b7
sp:
varName
"startedAt"
^^
xsd:
string
.
_:
b6
sp:
varName
"ddats"
^^
xsd:
string
.
...
...
@@ -131,3 +241,9 @@ _:b6 sp:varName "ddats"^^xsd:string .
_:
b5
sp:
varName
"partWellbore"
^^
xsd:
string
.
_:
b4
sp:
varName
"dayWellbore"
^^
xsd:
string
.
_:
b3
sp:
varName
"nextDayForecast"
^^
xsd:
string
.
_:
b2
sp:
varName
"dailySummary"
^^
xsd:
string
.
_:
b1
sp:
varName
"day"
^^
xsd:
string
.
...
...
www.reportinghub.no/swp/WeeklyDrillingReport.uispin.html
View file @
667c360
<ui:group>
<ui:group
>
<h1>
Weekly Partner Report
</h1>
<h2>
{# SELECT ?wbName WHERE {?wellBore ep-core:npdCode ?wbName}}
</h2>
<h2>
Wellbore :
{# SELECT ?wbName WHERE {?wellBore ep-core:npdCode ?wbName}}
</h2>
<h2>
Start Date : {= ?startDate }
</h2>
<hr
/>
<wdrswp:Table
arg:startDate=
"{= ?startDate }"
arg:wellBore=
"{= ?wellBore }"
arg:template=
"wdr-tables:DailyAndForecastComments"
/>
<wdrswp:Table
arg:startDate=
"{= ?startDate }"
arg:wellBore=
"{= ?wellBore }"
arg:template=
"wdr-tables:MissedProduction"
/>
</ui:group>
</ui:group>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment