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
Holger Knublauch
2011-12-08 12:55:16 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0f59aaf08c04eb0c6d0cf840c7ea510b71dc3391
0f59aaf0
1 parent
e89a6ecf
Re-added SPIN function numberWellbore
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
View file @
0f59aaf
...
...
@@ -31,7 +31,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/spin/rh>
,
<http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://spinrdf.org/spin>
,
<http://www.witsml.org/schemas/1series>
,
<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/activity-purpose>
,
<http://www.reportinghub.no/ep/schema/1.0/facility>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<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/drilling-equipment-type>
,
<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/report>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://www.reportinghub.no/spin/rh>
,
<http://www.witsml.org/schemas/1series>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ep-spin-lib:
Function
...
...
@@ -1223,6 +1223,42 @@ ep-spin-lib:normalizeTimeFromDateTime
spl:
valueType
xsd:
dateTime
]
.
ep-spin-lib:
numberWellbore
rdf:
type
spin:
MagicProperty
;
rdfs:
comment
"A magic property that safely gets the NPD number of a well bore (variable on the right) from a DDR SXML structure (resource on the left side)."
^^
xsd:
string
;
rdfs:
label
"number wellbore"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
MagicProperties
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"number"
^^
xsd:
string
])
;
sp:
where
([
sp:
object
[
sp:
varName
"ref"
^^
xsd:
string
]
;
sp:
predicate
ddr:
wellboreAliasRef
;
sp:
subject
spin:
_arg1
]
[
sp:
object
ddr:
WNS_NPDnumber
;
sp:
predicate
ddr:
namingSystemRef
;
sp:
subject
[
sp:
varName
"ref"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"number"
^^
xsd:
string
]
;
sp:
predicate
ddr:
name
;
sp:
subject
[
sp:
varName
"ref"
^^
xsd:
string
]
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
rdfs:
comment
"The drill report (left hand side)."
^^
xsd:
string
;
spl:
predicate
sp:
arg1
;
spl:
valueType
ddr:
Obj_drillReport
]
;
spin:
returnType
xsd:
string
.
ep-spin-lib:
selectActivitySuccessType
rdf:
type
spin:
Function
;
rdfs:
label
"select ActivitySuccessType"
^^
xsd:
string
;
...
...
Please
register
or
login
to post a comment