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-11-07 11:06:49 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
57e8c17a8d6a801fd0d99882ebc95002316f7d2d
57e8c17a
1 parent
a61d39b7
Function added to DPR-lib
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
1 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
57e8c17
...
...
@@ -19,7 +19,7 @@
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/production>
,
<http://www.witsml.org/schemas/131/addendum/combo>
;
owl:
imports
<http://
www.witsml.org/schemas/131/addendum/combo>
,
<http://www.reportinghub.no/ep/schema/1.0/production>
,
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ep-dpr-spin-lib:
BuildDailyProductionReportURI
...
...
@@ -2952,6 +2952,58 @@ ep-dpr-spin-lib:selectVolumeScale
])
]
.
ep-dpr-spin-lib:
selectWellTestReasonType
rdf:
type
spin:
Function
;
rdfs:
label
"select WellTestReasonType"
^^
xsd:
string
;
rdfs:
subClassOf
ep-dpr-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"wellTestReasonType"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
<http://www.witsml.org/schemas/131/addendum/combo#TR_initial>
]
;
sp:
arg2
<http://www.reportinghub.no/ep/schema/production-activity#InitialWellTest>
;
sp:
arg3
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
<http://www.witsml.org/schemas/131/addendum/combo#TR_periodic>
]
;
sp:
arg2
<http://www.reportinghub.no/ep/schema/production-activity#PeriodicWellTest>
;
sp:
arg3
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
<http://www.witsml.org/schemas/131/addendum/combo#TR_revision>
]
;
sp:
arg2
<http://www.reportinghub.no/ep/schema/production-activity#RevisionWellTest>
;
sp:
arg3
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
<http://www.witsml.org/schemas/131/addendum/combo#TR_unknown>
]
;
sp:
arg2
<http://www.reportinghub.no/ep/schema/production-activity#UnknownReasonWellTest>
;
sp:
arg3
[
rdf:
type
sp:
if
;
sp:
arg1
[
rdf:
type
sp:
eq
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
<http://www.witsml.org/schemas/131/addendum/combo#TR_other>
]
;
sp:
arg2
<http://www.reportinghub.no/ep/schema/production-activity#OtherReasonWellTest>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellTest>
]
]
]
]
]
;
sp:
variable
[
sp:
varName
"wellTestReasonType"
^^
xsd:
string
]
])
]
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment