David Price

Completed separation of Non Productive Time from Weekly Drilling Report.

......@@ -5,6 +5,7 @@
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix drilling-tables: <http://www.reportinghub.no/ep/spin/drilling-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#> .
......@@ -13,7 +14,6 @@
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/spin/drilling-tables>
......@@ -22,7 +22,7 @@
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:versionInfo "0.1.0"^^xsd:string .
<http://www.reportinghub.no/ep/spin/drilling-tables#DailyAndForecastComments>
drilling-tables:DailyAndForecastComments
rdf:type rhspin:TableTemplate ;
rdfs:label "Daily and Forecast Comments"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......@@ -122,7 +122,7 @@
] ;
rhspin:tableHeaders ("Day"^^xsd:string "Daily Summary"^^xsd:string "Next Day Forecast"^^xsd:string) .
<http://www.reportinghub.no/ep/spin/drilling-tables#MissedProduction>
drilling-tables:MissedProduction
rdf:type rhspin:TableTemplate ;
rdfs:label "Non Productive Time"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......@@ -241,7 +241,7 @@
] ;
rhspin:tableHeaders ("Day"^^xsd:string "Start Time"^^xsd:string "Duration Minutes"^^xsd:string "Comment"^^xsd:string) .
<http://www.reportinghub.no/ep/spin/drilling-tables#Test>
drilling-tables:Test
rdf:type rhspin:TableTemplate ;
rdfs:label "Test Table"^^xsd:string ;
rdfs:subClassOf rhspin:WDRTableTemplates ;
......
......@@ -5,7 +5,7 @@
<h2>Start Date : {= ?startDate }</h2>
<hr />
<wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:MissedProduction" />
<wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="drilling-tables:MissedProduction" />
</ui:group>
</ui:group>
\ No newline at end of file
......
# baseURI: http://www.reportinghub.no/swp/npt
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/spin/drilling-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@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 sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix nptswp: <http://www.reportinghub.no/swp/npt#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:startDate
rdf:type rdf:Property ;
rdfs:label "startDate"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:wellBore
rdf:type rdf:Property ;
rdfs:label "well bore"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
ui:instanceView
[ rdf:type ui:group ;
let:startDate
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "startDate"^^xsd:string
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "timeStamp"^^xsd:string
] ;
sp:path [ rdf:type sp:SeqPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt>
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:date ;
sp:arg1 [ sp:varName "timeStamp"^^xsd:string
]
] ;
sp:variable
[ sp:varName "startDate"^^xsd:string
]
])
] ;
let:wellBore
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "wellBore"^^xsd:string
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:path [ rdf:type sp:SeqPath ;
sp:path1
[ rdf:type sp:SeqPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore>
] ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf>
] ;
sp:subject spin:_this
])
] ;
ui:child
[ rdf:type nptswp:NonProductiveTimeReportView ;
arg:startDate
[ sp:varName "startDate"^^xsd:string
] ;
arg:wellBore
[ sp:varName "wellBore"^^xsd:string
] ;
ui:childIndex 0
] ;
ui:priority -1
] .
<http://www.reportinghub.no/swp/npt>
rdf:type owl:Ontology ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
nptswp:Table
rdf:type ui:NodeClass ;
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 ;
rdfs:label "Table"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The well bore of the report."^^xsd:string ;
spl:predicate arg:wellBore ;
spl:valueType ep-well:WellBore
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the report."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
ui:prototype <http://www.reportinghub.no/swp/NPTTable.uispin.html> .
nptswp:NonProductiveTimeReportView
rdf:type ui:NodeClass ;
rdfs:label "Weekly drilling report view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The well bore."^^xsd:string ;
spl:predicate arg:wellBore ;
spl:valueType ep-well:WellBore
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The start date of the report to display."^^xsd:string ;
spl:predicate arg:startDate ;
spl:valueType xsd:date
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:prototype <http://www.reportinghub.no/swp/NonProductiveTimeReport.uispin.html> .
......@@ -5,7 +5,7 @@
<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="drilling-tables:DailyAndForecastComments" />
</ui:group>
</ui:group>
\ No newline at end of file
......