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-24 18:25:14 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
bf7f81b7ac99853323d9a80d9b4b30f5c7493ee9
bf7f81b7
2 parents
d2fab273
84b380f7
Merge branch 'npd-dups'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
143 additions
and
216 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
View file @
bf7f81b
...
...
@@ -25,96 +25,33 @@
<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:
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 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
;
rdfs:
comment
"STEP 106 Create Well Part"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWell>
;
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:
varName
"well"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
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:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"
dailyDrillingActivity"
^^
xsd:
string
[
sp:
varName
"
well"
^^
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
...
...
@@ -122,43 +59,41 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
dTimStart"
^^
xsd:
string
[
sp:
varName
"
nameWell"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
predicate
ep-spin-lib:
nameWell
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTim
End"
^^
xsd:
string
[
sp:
varName
"dTim
Start"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTim
End
;
sp:
predicate
ddr:
dTim
Start
;
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:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
ddr:
extendedReportRef
;
sp:
subject
spin:
_this
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"extendedReportContent"
^^
xsd:
string
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimExtendedReport"
^^
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
"well"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTim
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#partOfWell>
;
sp:
subject
[
sp:
varName
"extendedReport"
^^
xsd:
string
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
...
...
@@ -170,17 +105,6 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
]
]
[
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
]
;
...
...
@@ -190,31 +114,6 @@ replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore)
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
...
...
@@ -374,112 +273,140 @@ Classify a DailyDrillingReport"""^^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>
;
rdfs:
comment
"""STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore
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
"well"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"nameWell"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWell>
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"well"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
well#TemporalPartOfAWell>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
activity#DailyDrillingActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"well"
^^
xsd:
string
]
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
_:
b3
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b8
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#humanRecognizableName>
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b9
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod>
;
sp:
subject
_:
b3
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#Report>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b9
]
[
sp:
object
_:
b10
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#hasContent>
;
sp:
subject
_:
b9
]
[
sp:
object
_:
b11
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#createdAt>
;
sp:
subject
_:
b9
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
where
([
sp:
object
_:
b8
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"nameWell"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWell
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
]
[
sp:
object
_:
b5
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
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
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
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
_:
b12
;
sp:
predicate
ddr:
dTimEnd
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b4
;
sp:
predicate
ddr:
createDate
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
_:
b13
;
sp:
predicate
ddr:
extendedReportRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b10
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b13
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
_:
b11
;
sp:
predicate
ddr:
dTim
;
sp:
subject
_:
b13
])
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
sp:
arg1
_:
b8
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
sp:
variable
_:
b14
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
[
rdf:
type
ep-spin-lib:
buildDailyDrillingReportURI
;
sp:
arg1
_:
b14
;
sp:
arg2
_:
b4
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
sp:
variable
_:
b2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b14
;
sp:
arg2
_:
b5
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
sp:
variable
_:
b3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWell"
^^
xsd:
string
]
[
rdf:
type
ep-spin-lib:
buildTemporalPartOfAWellBoreURI
;
sp:
arg1
_:
b14
;
sp:
arg2
_:
b5
;
sp:
arg3
_:
b12
]
;
sp:
variable
[
sp:
varName
"normalizedWellName"
^^
xsd:
string
]
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
[
sp:
varName
"normalizedWellName"
^^
xsd:
string
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
[
rdf:
type
xsd:
string
;
sp:
arg1
_:
b8
]
]
;
sp:
variable
[
sp:
varName
"well"
^^
xsd:
string
]
sp:
variable
_:
b7
])
]
.
_:
b2
sp:
varName
"dailyDrillingReport"
^^
xsd:
string
.
_:
b3
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b4
sp:
varName
"createDate"
^^
xsd:
string
.
_:
b5
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b6
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
.
_:
b7
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b8
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b10
sp:
varName
"extendedReportContent"
^^
xsd:
string
.
_:
b11
sp:
varName
"dTimExtendedReport"
^^
xsd:
string
.
_:
b12
sp:
varName
"dTimEnd"
^^
xsd:
string
.
_:
b13
sp:
varName
"extendedReport"
^^
xsd:
string
.
_:
b14
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment