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
2012-10-11 01:26:17 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51d2337742e443f772c71afaca4b7c9254d20261
51d23377
1 parent
7278c512
added constraint on wellname to well test
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
59 deletions
www.reportinghub.no/ep/spin/SPIN_MPR-proxy-constraints.spin.ttl
www.reportinghub.no/ep/spin/SPIN_MPR-proxy-constraints.spin.ttl
View file @
51d2337
...
...
@@ -85,16 +85,6 @@ arg:kindRef
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckIdAndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Platform>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
spin:
constraint
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
...
...
@@ -105,44 +95,28 @@ arg:kindRef
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
wellbore>
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
wellBoreName"
^^
xsd:
string
[
sp:
varName
"
fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
bound
;
sp:
arg1
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
rhspin:
currentUserIsOperatorOf
WellBore
;
arg:
wellBore
[
sp:
varName
"
wellBore"
^^
xsd:
string
sp:
arg1
[
rdf:
type
rhspin:
currentUserIsOperatorOf
FieldWithName
;
arg:
fieldName
[
sp:
varName
"
fieldName"
^^
xsd:
string
]
]
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"Your company is not the operator of
well bore with name "
;
sp:
arg2
[
sp:
varName
"
wellBoreName"
^^
xsd:
string
sp:
arg1
"Your company is not the operator of
field with name "
;
sp:
arg2
[
sp:
varName
"
fieldName"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -161,28 +135,44 @@ arg:kindRef
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
field>
;
sp:
where
([
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_
wellbore>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
fieldName"
^^
xsd:
string
[
sp:
varName
"
wellBoreName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
arg:
wellBoreName
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
bound
;
sp:
arg1
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
rhspin:
currentUserIsOperatorOf
FieldWithName
;
arg:
fieldName
[
sp:
varName
"
fieldName"
^^
xsd:
string
sp:
arg1
[
rdf:
type
rhspin:
currentUserIsOperatorOf
WellBore
;
arg:
wellBore
[
sp:
varName
"
wellBore"
^^
xsd:
string
]
]
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"Your company is not the operator of
field with name "
;
sp:
arg2
[
sp:
varName
"
fieldName"
^^
xsd:
string
sp:
arg1
"Your company is not the operator of
well bore with name "
;
sp:
arg2
[
sp:
varName
"
wellBoreName"
^^
xsd:
string
]
]
;
sp:
variable
...
...
@@ -192,31 +182,31 @@ arg:kindRef
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
arg:
type
<http://www.reportinghub.no/ep/schema/well#WellBore>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckIdAndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_field>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_
platform>
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_
terminal>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_field>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
arg:
type
<http://www.reportinghub.no/ep/schema/well#WellBore>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
...
...
@@ -226,17 +216,27 @@ arg:kindRef
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
arg:
type
<http://www.reportinghub.no/ep/schema/well#WellBore>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckIdAndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_terminal>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Facility>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
[
rdf:
type
mpr-proxy-constraints:
CheckId
AndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_field>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckIdAndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Platform>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckIdAndNameMatch
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_wellbore>
;
arg:
type
<http://www.reportinghub.no/ep/schema/well#WellBore>
]
.
...
...
@@ -294,6 +294,46 @@ arg:kindRef
])
]
.
<http://www.epim.no/schemas/mprml/1#Obj_wellTest>
spin:
constraint
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b5
])
;
sp:
where
([
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#nameWell>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
rhspin:
npdIndividualByName
;
arg:
name
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
arg:
type
<http://www.reportinghub.no/ep/schema/well#Well>
]
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"[RH-19] Invalid well name : "
;
sp:
arg2
[
sp:
varName
"wellName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"message"
^^
xsd:
string
]
])
]
.
<http://www.reportinghub.no/ep/spin/mpr-proxy-constraints>
rdf:
type
owl:
Ontology
;
rdfs:
comment
"Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."
^^
xsd:
string
;
...
...
@@ -308,12 +348,12 @@ mpr-proxy-constraints:CheckId
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
5
sp:
subject
_:
b
6
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
5
sp:
subject
_:
b
6
])
;
sp:
where
([
sp:
object
[
sp:
varName
"kindRef"
^^
xsd:
string
...
...
@@ -375,12 +415,12 @@ mpr-proxy-constraints:CheckIdAndNameMatch
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
6
sp:
subject
_:
b
7
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
6
sp:
subject
_:
b
7
])
;
sp:
where
([
sp:
object
[
sp:
varName
"kindRef"
^^
xsd:
string
...
...
@@ -475,12 +515,12 @@ mpr-proxy-constraints:CheckName
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
7
sp:
subject
_:
b
8
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
7
sp:
subject
_:
b
8
])
;
sp:
where
([
sp:
object
[
sp:
varName
"kindRef"
^^
xsd:
string
...
...
Please
register
or
login
to post a comment