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 Leal
2011-09-28 18:18:46 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0bcbb796e08361514ad694b0e075e81420c84d01
0bcbb796
1 parent
c42ba410
consistent naming for wellbore and report
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
452 additions
and
453 deletions
www.reportinghub.no/ep/transform/TRANSFORM_ddr-drillReport-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-drillReport-v1.1.1.ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_ddr-drillReport-v1.1.1.ttl
View file @
0bcbb79
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://spinrdf.org/spin
# imports: http://www.energistics.org/schemas/abstract
# 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/equipment
# 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/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix
NPD_110721144611-valid:
<file:///Sandbox/NPD_110721144611-valid.xml#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
ddr:
<http://www.witsml.org/schemas/1series#>
.
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@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
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://spinrdf.org/spin>
,
<http://www.energistics.org/schemas/abstract>
,
<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/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.witsml.org/schemas/1series>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ddr:
Obj_drillReport
spin:
rule
[
rdf:
type
sp:
Construct
;
# Saved by TopBraid on Wed Sep 28 18:18:02 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.energistics.org/schemas/abstract
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin
@prefix
NPD_110721144611-valid:
<file:///Sandbox/NPD_110721144611-valid.xml#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
ddr:
<http://www.witsml.org/schemas/1series#>
.
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@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
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/activity-purpose>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.witsml.org/schemas/1series>
,
<http://www.energistics.org/schemas/abstract>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ddr:
Obj_drillReport
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 103a Set name of DailyDrillingReport as label
Minimum data - createDate, dTimStart, nameWellBore"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
_:
b3
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b1
;
sp:
predicate
ddr:
name
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b4
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b3
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
_:
b5
;
sp:
arg2
_:
b4
]
;
sp:
variable
_:
b2
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 105
Classify a DailyDrillingReport"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b6
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b7
])
;
sp:
where
([
sp:
object
_:
b8
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b9
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b10
;
sp:
predicate
ddr:
versionKindRef
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
selectDailyDrillingReportType
;
sp:
arg1
_:
b10
]
;
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b8
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
_:
b11
;
sp:
arg2
_:
b9
]
;
sp:
variable
_:
b7
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 104 Transfer dTimEnd"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b12
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
_:
b13
])
;
sp:
where
([
sp:
object
_:
b14
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b15
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b12
;
sp:
predicate
ddr:
dTimEnd
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b14
]
;
sp:
variable
_:
b16
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b16
;
sp:
arg2
_:
b15
]
;
sp:
variable
_:
b13
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 106 Create Well"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b17
]
[
sp:
object
_:
b18
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
_:
b17
]
[
sp:
object
_:
b19
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWell>
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b17
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b19
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b21
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
_:
b17
])
;
sp:
where
([
sp:
object
_:
b22
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b18
;
sp:
predicate
ddr:
nameWell
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b23
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b24
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b21
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b24
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b21
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b22
]
;
sp:
variable
_:
b25
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b25
;
sp:
arg2
_:
b23
]
;
sp:
variable
_:
b20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b18
]
;
sp:
variable
_:
b26
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
_:
b26
]
;
sp:
variable
_:
b17
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
Optional data - extendedReport
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"createDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#Report>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"extendedReportContent"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#hasContent>
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"dTimExtendedReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimEnd
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"createDate"
^^
xsd:
string
]
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
;
sp:
predicate
ddr:
extendedReportRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"extendedReportContent"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimExtendedReport"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTim
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
])
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"createDate"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildTemporalPartOfAWellBoreURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
arg3
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
[
rdf:
type
xsd:
string
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
]
;
sp:
variable
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 106 Create Well"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWell>
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
_:
b7
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
nameWell
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b8
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b9
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b9
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b7
]
;
sp:
variable
_:
b10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b10
;
sp:
arg2
_:
b8
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b3
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
_:
b11
]
;
sp:
variable
_:
b2
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 104 Transfer dTimEnd"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b12
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
_:
b13
])
;
sp:
where
([
sp:
object
_:
b14
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b15
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b12
;
sp:
predicate
ddr:
dTimEnd
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b14
]
;
sp:
variable
_:
b16
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b16
;
sp:
arg2
_:
b15
]
;
sp:
variable
_:
b13
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 105
Classify a DailyDrillingReport"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b17
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b18
])
;
sp:
where
([
sp:
object
_:
b19
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b20
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b21
;
sp:
predicate
ddr:
versionKindRef
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
selectDailyDrillingReportType
;
sp:
arg1
_:
b21
]
;
sp:
variable
_:
b17
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b19
]
;
sp:
variable
_:
b22
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
_:
b22
;
sp:
arg2
_:
b20
]
;
sp:
variable
_:
b18
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 103a Set name of DailyDrillingReport as label
Minimum data - createDate, dTimStart, nameWellBore"""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b23
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b24
])
;
sp:
where
([
sp:
object
_:
b25
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b23
;
sp:
predicate
ddr:
name
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b26
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b25
]
;
sp:
variable
_:
b27
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
_:
b27
;
sp:
arg2
_:
b26
]
;
sp:
variable
_:
b24
])
]
.
_:
b11
sp:
varName
"normalizedWellName"
^^
xsd:
string
.
_:
b10
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b9
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
.
_:
b8
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b7
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b6
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b5
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b3
sp:
varName
"nameWell"
^^
xsd:
string
.
_:
b2
sp:
varName
"well"
^^
xsd:
string
.
_:
b16
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b15
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b14
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b13
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b12
sp:
varName
"dTimEnd"
^^
xsd:
string
.
_:
b22
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b21
sp:
varName
"versionKind"
^^
xsd:
string
.
_:
b20
sp:
varName
"createDate"
^^
xsd:
string
.
_:
b19
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b18
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
.
_:
b17
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b27
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b26
sp:
varName
"createDate"
^^
xsd:
string
.
_:
b25
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b24
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
.
_:
b23
sp:
varName
"nameDailyDrillingReport"
^^
xsd:
string
.
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"createDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
_:
b27
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#Report>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b27
]
[
sp:
object
[
sp:
varName
"extendedReportContent"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#hasContent>
;
sp:
subject
_:
b27
]
[
sp:
object
[
sp:
varName
"dTimExtendedReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
_:
b27
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ddr:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimEnd
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"createDate"
^^
xsd:
string
]
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
;
sp:
predicate
ddr:
extendedReportRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"extendedReportContent"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimExtendedReport"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTim
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
]
])
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"createDate"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildTemporalPartOfAWellBoreURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
arg3
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
[
rdf:
type
xsd:
string
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
]
;
sp:
variable
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
]
.
_:
b11
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b10
sp:
varName
"versionKind"
^^
xsd:
string
.
_:
b9
sp:
varName
"createDate"
^^
xsd:
string
.
_:
b8
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b7
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
.
_:
b6
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b16
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b15
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b14
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b13
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b12
sp:
varName
"dTimEnd"
^^
xsd:
string
.
_:
b26
sp:
varName
"normalizedWellName"
^^
xsd:
string
.
_:
b25
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b24
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
.
_:
b23
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b22
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b21
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b20
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b18
sp:
varName
"nameWell"
^^
xsd:
string
.
_:
b17
sp:
varName
"well"
^^
xsd:
string
.
_:
b2
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
.
_:
b3
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b1
sp:
varName
"nameDailyDrillingReport"
^^
xsd:
string
.
_:
b4
sp:
varName
"createDate"
^^
xsd:
string
.
_:
b5
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-drillReport-v1.1.1.ttl.tbc
View file @
0bcbb79
# Saved by TopBraid on
Sun Sep 25 18:41:25
BST 2011
# Saved by TopBraid on
Wed Sep 28 18:18:02
BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment