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 16:32:12 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
68a53762134f456a6cee13de335743fa37d48705
68a53762
1 parent
bc7125a4
Got base for WDR done, needs endDate
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
158 additions
and
79 deletions
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/WeeklyDrillingReport.uispin.html
www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest.ttl
www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest.ttl.tbc
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
View file @
68a5376
# 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://www.reportinghub.no/spin/rh
@prefix
arg:
<http://spinrdf.org/arg#>
.
@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
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/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:
versionInfo
"0.1.0"
^^
xsd:
string
.
wdr-tables:
Test
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Test Table"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
WDRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"a"
^^
xsd:
string
]
[
sp:
varName
"b"
^^
xsd:
string
]
[
sp:
varName
"c"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
42
;
sp:
variable
[
sp:
varName
"a"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"b"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"c"
^^
xsd:
string
]
])
]
;
rhspin:
tableHeaders
(
"Column 1"
^^
xsd:
string
"Column 2"
^^
xsd:
string
"Column 3"
^^
xsd:
string
)
.
# Saved by TopBraid on Sat Oct 15 16:08:08 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables
# 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#>
.
@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
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/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:
versionInfo
"0.1.0"
^^
xsd:
string
.
wdr-tables:
DailyAndForecastComments
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Daily and Forecast Comments"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
WDRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
(
_:
b1
)
;
sp:
resultVariables
(
_:
b1
_:
b2
_:
b3
)
;
sp:
where
([
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b6
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivityToStatus>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
_:
b7
;
arg:
pattern
"yyyy-MM-dd"
]
;
sp:
variable
_:
b1
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
arg:
pattern
"yyyy-MM-dd"
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
le
;
sp:
arg1
_:
b8
;
sp:
arg2
_:
b1
]
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesWithinTheDailyReportingPeriod>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesForecastForTheNextDailyReportingPeriod>
;
sp:
subject
_:
b6
])
]
;
rhspin:
tableHeaders
(
"Day"
^^
xsd:
string
"Daily Summary"
^^
xsd:
string
"Next Day Forecast"
^^
xsd:
string
)
.
wdr-tables:
Test
rdf:
type
rhspin:
TableTemplate
;
rdfs:
label
"Test Table"
^^
xsd:
string
;
rdfs:
subClassOf
rhspin:
WDRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"a"
^^
xsd:
string
]
[
sp:
varName
"b"
^^
xsd:
string
]
[
sp:
varName
"c"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
42
;
sp:
variable
[
sp:
varName
"a"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"b"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
variable
[
sp:
varName
"c"
^^
xsd:
string
]
])
]
;
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
.
_:
b5
sp:
varName
"partWellbore"
^^
xsd:
string
.
_:
b4
sp:
varName
"dayWellbore"
^^
xsd:
string
.
...
...
www.reportinghub.no/swp/WeeklyDrillingReport.uispin.html
View file @
68a5376
<ui:group>
<ui:group
>
<h1>
Weekly Report for Well bore {= ?wellBore } starting at {= ?startDate }
</h1>
<h1>
Weekly Partner Report
</h1>
<h2>
{# 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:
Test
"
/>
<wdrswp:Table
arg:startDate=
"{= ?startDate }"
arg:wellBore=
"{= ?wellBore }"
arg:template=
"wdr-tables:
DailyAndForecastComments
"
/>
</ui:group>
</ui:group>
\ No newline at end of file
...
...
www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest.ttl
View file @
68a5376
# Saved by TopBraid on Sat Oct 08 13:43:02 BST 2011
# baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://spinrdf.org/spin
# imports: http://www.witsml.org/schemas/131/addendum/combo
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0
@prefix
:
<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest#>
.
@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
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/np/data/npd>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0>
,
<http://spinrdf.org/spin>
,
<http://www.witsml.org/schemas/131/addendum/combo>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
# baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://www.reportinghub.no/np/data/npd-alias-identifiers
# imports: http://www.witsml.org/schemas/131/addendum/combo
@prefix
:
<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest#>
.
@prefix
npd-alias-identifiers:
<http://www.reportinghub.no/np/data/npd-alias-identifiers#>
.
@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
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/np/data/npd-alias-identifiers>
,
<http://www.witsml.org/schemas/131/addendum/combo>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/transform/TRANSFORM_dpr-collector-v1.0>
,
<http://www.reportinghub.no/np/data/npd>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest.ttl.tbc
View file @
68a5376
# Saved by TopBraid on Sat Oct 08 13:43:02 BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment