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-10-15 10:34:28 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6e3a54b3f3a8c0be98ba3ddf922dc97e4456437
d6e3a54b
1 parent
3377e061
Removed nameWell constraint for good
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
65 deletions
www.reportinghub.no/ep/spin/SPIN_EP-DDR-constraints.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EP-DDR-constraints.spin.ttl
View file @
d6e3a54
...
...
@@ -27,56 +27,22 @@
ddr:
Obj_drillReport
spin:
constraint
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
predicate
spin:
violationRoot
;
sp:
subject
_:
b1
]
[
sp:
object
ddr:
nameWell
;
sp:
predicate
spin:
violationPath
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/spin/lib#nameWell>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
[
rdf:
type
sp:
Ask
;
rdfs:
comment
"DDRs can only be submitted if a user is logged in"
^^
xsd:
string
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellByName
;
arg:
wellName
[
sp:
varName
"wellName"
^^
xsd:
string
]
[
rdf:
type
rhspin:
companyName
]
;
sp:
variable
[
sp:
varName
"
well
"
^^
xsd:
string
[
sp:
varName
"
companyName
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
rhspin:
npdTripleExists
;
sp:
arg1
[
sp:
varName
"well"
^^
xsd:
string
]
;
sp:
arg2
rdf:
type
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/well#Well>
sp:
arg1
[
rdf:
type
sp:
bound
;
sp:
arg1
[
sp:
varName
"companyName"
^^
xsd:
string
]
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
concat
;
sp:
arg1
"Unregistered well name "
;
sp:
arg2
[
sp:
varName
"wellName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"message"
^^
xsd:
string
]
])
]
;
...
...
@@ -84,18 +50,18 @@ ddr:Obj_drillReport
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
sp:
subject
_:
b
1
]
[
sp:
object
spin:
_this
;
sp:
predicate
spin:
violationRoot
;
sp:
subject
_:
b
2
sp:
subject
_:
b
1
]
[
sp:
object
ddr:
nameWellbore
;
sp:
predicate
spin:
violationPath
;
sp:
subject
_:
b
2
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
2
sp:
subject
_:
b
1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"wellBoreName"
^^
xsd:
string
...
...
@@ -131,24 +97,4 @@ ddr:Obj_drillReport
[
sp:
varName
"message"
^^
xsd:
string
]
])
]
;
spin:
constraint
[
rdf:
type
sp:
Ask
;
rdfs:
comment
"DDRs can only be submitted if a user is logged in"
^^
xsd:
string
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
companyName
]
;
sp:
variable
[
sp:
varName
"companyName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
sp:
bound
;
sp:
arg1
[
sp:
varName
"companyName"
^^
xsd:
string
]
]
]
])
]
.
...
...
Please
register
or
login
to post a comment