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
2012-03-26 12:07:15 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
66795a5a9c209b7d7b1b4266aec6360d6c02019e
66795a5a
1 parent
24fae29e
Added licence check to SPIN constraints
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
6 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 @
66795a5
...
...
@@ -191,6 +191,57 @@ arg:kindRef
])
]
.
<http://www.epim.no/schemas/mprml/1#Obj_report>
spin:
constraint
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_field>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
[
sp:
varName
"installation"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"fieldName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"installation"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
not
;
sp:
arg1
[
rdf:
type
rhspin:
currentUserIsOperatorOfFieldWithName
;
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 field with name "
;
sp:
arg2
[
sp:
varName
"fieldName"
^^
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
;
...
...
@@ -205,12 +256,12 @@ mpr-proxy-constraints:CheckId
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
3
sp:
subject
_:
b
4
])
;
sp:
where
([
sp:
object
[
sp:
varName
"kindRef"
^^
xsd:
string
...
...
@@ -272,12 +323,12 @@ mpr-proxy-constraints:CheckIdAndNameMatch
[
rdf:
type
sp:
Construct
;
sp:
templates
([
sp:
object
spin:
ConstraintViolation
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
4
sp:
subject
_:
b
5
]
[
sp:
object
[
sp:
varName
"message"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
4
sp:
subject
_:
b
5
])
;
sp:
where
([
sp:
object
[
sp:
varName
"kindRef"
^^
xsd:
string
...
...
@@ -372,12 +423,12 @@ mpr-proxy-constraints:CheckName
[
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
...
...
Please
register
or
login
to post a comment