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-17 20:32:32 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
cc623af566cecc073f03bb1a8fbebbb588fadbc7
cc623af5
2 parents
585a7abc
10a6c4fa
Merge branch 'fixweek'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
79 deletions
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EP-WDR-tables-v1.0.spin.ttl
View file @
cc623af
...
...
@@ -28,56 +28,96 @@ wdr-tables:DailyAndForecastComments
rdfs:
subClassOf
rhspin:
WDRTableTemplates
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
orderBy
(
_:
b1
)
;
sp:
resultVariables
(
_:
b1
_:
b2
_:
b3
)
;
sp:
orderBy
([
sp:
varName
"day"
^^
xsd:
string
])
;
sp:
resultVariables
([
sp:
varName
"day"
^^
xsd:
string
]
[
sp:
varName
"dailySummary"
^^
xsd:
string
]
[
sp:
varName
"nextDayForecast"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
predicate
rdf:
first
;
sp:
subject
[
sp:
varName
"?0"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"?1"
^^
xsd:
string
]
;
sp:
predicate
rdf:
rest
;
sp:
subject
[
sp:
varName
"?0"
^^
xsd:
string
]
]
[
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:
predicate
rdf:
first
;
sp:
subject
[
sp:
varName
"?1"
^^
xsd:
string
]
]
[
sp:
object
()
;
sp:
predicate
rdf:
rest
;
sp:
subject
[
sp:
varName
"?1"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ddr"
^^
xsd:
string
]
;
sp:
predicate
rhspin:
ddrOfWeek
;
sp:
subject
[
sp:
varName
"?0"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dda"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"ddr"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"ddats"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"dda"
^^
xsd:
string
]
]
[
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:
subject
[
sp:
varName
"ddats"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"startedAt"
^^
xsd:
string
]
;
sp:
variable
_:
b1
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"ddats"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
dateFormat
;
arg:
date
[
sp:
varName
"start
Date"
^^
xsd:
string
[
sp:
varName
"start
edAt"
^^
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:
variable
[
sp:
varName
"day"
^^
xsd:
string
]
]
[
sp:
object
_:
b2
;
]
[
sp:
object
[
sp:
varName
"dailySummary"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesWithinTheDailyReportingPeriod>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b3
;
sp:
subject
[
sp:
varName
"ddats"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"nextDayForecast"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesForecastForTheNextDailyReportingPeriod>
;
sp:
subject
_:
b6
sp:
subject
[
sp:
varName
"ddats"
^^
xsd:
string
]
])
]
;
rhspin:
tableHeaders
(
"Day"
^^
xsd:
string
"Daily Summary"
^^
xsd:
string
"Next Day Forecast"
^^
xsd:
string
)
.
...
...
@@ -96,30 +136,51 @@ wdr-tables:MissedProduction
]
[
sp:
varName
"comment"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"startDate"
^^
xsd:
string
]
;
sp:
predicate
rdf:
first
;
sp:
subject
[
sp:
varName
"?0"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"?1"
^^
xsd:
string
]
;
sp:
predicate
rdf:
rest
;
sp:
subject
[
sp:
varName
"?0"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
predicate
rdf:
first
;
sp:
subject
[
sp:
varName
"
dayWellbore"
^^
xsd:
string
[
sp:
varName
"
?1"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
]
[
sp:
object
()
;
sp:
predicate
rdf:
rest
;
sp:
subject
[
sp:
varName
"
dayWellbore"
^^
xsd:
string
[
sp:
varName
"
?1"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"d
ayWellbore"
^^
xsd:
string
[
sp:
varName
"d
dr"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
predicate
rhspin:
ddrOfWeek
;
sp:
subject
[
sp:
varName
"
partWellbore"
^^
xsd:
string
[
sp:
varName
"
?0"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
partWellbore"
^^
xsd:
string
[
sp:
varName
"
dda"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
activity#onWellBore>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
report#reportOn>
;
sp:
subject
[
sp:
varName
"ddr"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"failure"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"dda"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#EquipmentFailureAndRepair>
;
sp:
predicate
rdf:
type
;
...
...
@@ -144,25 +205,6 @@ wdr-tables:MissedProduction
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
]
;
...
...
@@ -231,19 +273,3 @@ wdr-tables:Test
])
]
;
rhspin:
tableHeaders
(
"Column 1"
^^
xsd:
string
"Column 2"
^^
xsd:
string
"Column 3"
^^
xsd:
string
)
.
_:
b8
sp:
varName
"startDateDay"
^^
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
.
_:
b3
sp:
varName
"nextDayForecast"
^^
xsd:
string
.
_:
b2
sp:
varName
"dailySummary"
^^
xsd:
string
.
_:
b1
sp:
varName
"day"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment