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-09-01 20:25:49 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6aac63119cd85fb7142e1b7ee98cb38f33d00be4
6aac6311
1 parent
b6563c2e
Set spin:thisUnbound to true at STEP 18 and 20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
388 additions
and
366 deletions
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
View file @
6aac631
# Saved by TopBraid on Fri Aug 26 16:10:49 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix
NPD_110412124707:
<file:///www.reportinghub.no/input/NPD_110412124707.xml#>
.
@prefix
NPD_1104121247071:
<file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#>
.
...
...
@@ -153,142 +152,264 @@ ddr:Obj_drillReport
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 009 - Construct all datatype values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
_:
b2
;
rdfs:
comment
"STEP 018 - Construct all object properties that need to match on tags"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
sp:
subject
_:
b
1
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b2
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b1
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
3
;
sp:
subject
_:
b
1
]
[
sp:
object
_:
b
1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b4
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
_:
b4
;
sp:
where
([
sp:
object
[
sp:
varName
"childType"
^^
xsd:
string
]
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"childType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b5
;
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
predicate
owl:
onProperty
;
sp:
subject
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"propertyName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
arg2
"(.*):(.*)"
;
sp:
arg3
"$2"
]
;
sp:
variable
[
sp:
varName
"tagName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
sp:
varName
"tagName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"propertyName"
^^
xsd:
string
]
]
]
[
sp:
object
[
sp:
varName
"instType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
[
sp:
varName
"instType"
^^
xsd:
string
]
])
;
spin:
thisUnbound
"true"
^^
xsd:
boolean
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 009 - Construct all datatype values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
;
sp:
predicate
_:
b3
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b3
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b2
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b5
])
;
sp:
where
([
sp:
object
_:
b5
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b6
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
5
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
5
sp:
arg1
_:
b
6
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
6
sp:
arg2
_:
b
7
]
]
;
sp:
variable
_:
b
2
sp:
variable
_:
b
3
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
2
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
3
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
8
;
sp:
subject
_:
b
8
]
[
sp:
object
_:
b
9
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b
7
sp:
subject
_:
b
8
]
[
sp:
object
rdfs:
Datatype
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
8
sp:
subject
_:
b
9
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
9
;
sp:
object
_:
b
10
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
8
sp:
subject
_:
b
9
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
rdf:
type
afn:
namespace
;
sp:
arg1
_:
b
9
sp:
arg1
_:
b
10
]
;
sp:
arg2
"http://www.w3.org/2001/XMLSchema#"
]
]
[
sp:
object
_:
b1
0
;
]
[
sp:
object
_:
b1
1
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
5
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b11
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b10
sp:
subject
_:
b11
]
[
sp:
object
_:
b12
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b13
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
7
;
sp:
object
_:
b
8
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b1
2
sp:
subject
_:
b1
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
cast
;
sp:
arg1
_:
b1
1
sp:
arg1
_:
b1
2
]
;
sp:
variable
_:
b
1
sp:
variable
_:
b
2
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 020 - Construct all other object properties"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
3
;
sp:
predicate
_:
b1
4
;
sp:
templates
([
sp:
object
_:
b1
4
;
sp:
predicate
_:
b1
5
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
5
sp:
subject
_:
b1
6
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
4
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
5
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
3
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
4
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
5
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
4
])
;
sp:
where
([
sp:
object
_:
b1
6
;
sp:
where
([
sp:
object
_:
b1
7
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b1
7
]
[
sp:
object
_:
b1
4
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
5
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b1
7
]
[
sp:
object
_:
b1
6
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
7
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
3
;
sp:
subject
_:
b1
4
]
[
sp:
object
_:
b1
4
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
...
...
@@ -296,177 +417,101 @@ ddr:Thing
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
4
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
4
])
]
[
sp:
object
_:
b1
8
;
]
[
sp:
object
_:
b1
9
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b1
7
;
sp:
object
_:
b1
8
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b18
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 018 - Construct all object properties that need to match on tags"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b19
;
sp:
predicate
_:
b20
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b21
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b20
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b19
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b21
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b19
])
;
sp:
where
([
sp:
object
_:
b22
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b20
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b23
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b20
]
;
sp:
variable
_:
b24
]
[
sp:
object
_:
b22
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b19
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b19
])
]
[
sp:
object
_:
b25
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b19
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b25
;
sp:
arg2
"(.*):(.*)"
;
sp:
arg3
"$2"
]
;
sp:
variable
_:
b26
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
_:
b26
;
sp:
arg2
_:
b24
]
]
[
sp:
object
_:
b27
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b23
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b27
])
spin:
thisUnbound
"true"
^^
xsd:
boolean
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 006 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
8
;
sp:
predicate
_:
b2
9
;
sp:
templates
([
sp:
object
_:
b2
0
;
sp:
predicate
_:
b2
1
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
30
sp:
subject
_:
b
22
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b2
9
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b2
1
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b2
8
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b2
0
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b
30
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b
22
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
31
sp:
subject
_:
b
23
])
;
sp:
where
([
sp:
object
_:
b
31
;
sp:
where
([
sp:
object
_:
b
23
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
32
;
]
[
sp:
object
_:
b
24
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
31
sp:
subject
_:
b
23
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
31
sp:
subject
_:
b
23
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
32
sp:
arg1
_:
b
24
]
]
;
sp:
variable
_:
b
33
sp:
variable
_:
b
25
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#enum"
;
sp:
arg2
_:
b
33
sp:
arg2
_:
b
25
]
]
;
sp:
variable
_:
b2
9
sp:
variable
_:
b2
1
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
9
]
[
sp:
object
_:
b2
9
;
sp:
subject
_:
b2
1
]
[
sp:
object
_:
b2
1
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
34
]
[
sp:
object
_:
b
35
;
sp:
subject
_:
b
26
]
[
sp:
object
_:
b
27
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b
34
]
[
sp:
object
_:
b
36
;
sp:
subject
_:
b
26
]
[
sp:
object
_:
b
28
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
34
;
sp:
object
_:
b
26
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
36
sp:
subject
_:
b
28
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
path
[
rdf:
type
sp:
ModPath
;
...
...
@@ -474,121 +519,121 @@ ddr:Thing
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
37
;
sp:
subject
_:
b
27
]
[
sp:
object
_:
b
29
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
31
sp:
subject
_:
b
23
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
37
]
[
sp:
object
_:
b3
8
;
sp:
subject
_:
b
29
]
[
sp:
object
_:
b3
0
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b
37
]
[
sp:
object
_:
b
35
;
sp:
subject
_:
b
29
]
[
sp:
object
_:
b
27
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
8
]
[
sp:
object
_:
b3
8
;
sp:
subject
_:
b2
0
]
[
sp:
object
_:
b3
0
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b2
8
sp:
subject
_:
b2
0
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 004 - Construct UOM values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
9
;
sp:
templates
([
sp:
object
_:
b3
1
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
40
]
[
sp:
object
_:
b
41
;
sp:
subject
_:
b
32
]
[
sp:
object
_:
b
33
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
40
]
[
sp:
object
_:
b
42
;
sp:
subject
_:
b
32
]
[
sp:
object
_:
b
34
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b
40
]
[
sp:
object
_:
b
40
;
sp:
predicate
_:
b
43
;
sp:
subject
_:
b
32
]
[
sp:
object
_:
b
32
;
sp:
predicate
_:
b
35
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
44
sp:
subject
_:
b
36
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
43
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b
35
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
42
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b
34
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
44
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b
36
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
45
sp:
subject
_:
b
37
])
;
sp:
where
([
sp:
object
_:
b
45
;
sp:
where
([
sp:
object
_:
b
37
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
46
;
]
[
sp:
object
_:
b
38
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
45
]
[
sp:
object
_:
b
41
;
sp:
subject
_:
b
37
]
[
sp:
object
_:
b
33
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
45
sp:
subject
_:
b
37
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
45
sp:
subject
_:
b
37
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
46
sp:
arg1
_:
b
38
]
;
sp:
variable
_:
b
47
sp:
variable
_:
b
39
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
47
sp:
arg2
_:
b
39
]
]
;
sp:
variable
_:
b
43
sp:
variable
_:
b
35
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
43
]
[
sp:
object
_:
b
43
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
35
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b4
8
]
[
sp:
object
_:
b3
9
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b3
1
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b4
8
]
[
sp:
object
_:
b4
9
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b4
1
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b4
8
;
sp:
object
_:
b4
0
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b4
9
]
[
sp:
object
_:
b
50
;
sp:
subject
_:
b4
1
]
[
sp:
object
_:
b
42
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
45
sp:
subject
_:
b
37
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
50
]
[
sp:
object
_:
b
51
;
sp:
subject
_:
b
42
]
[
sp:
object
_:
b
43
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b
50
sp:
subject
_:
b
42
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b
51
sp:
arg1
_:
b
43
]
;
sp:
variable
_:
b
42
sp:
variable
_:
b
34
])
]
.
...
...
@@ -608,7 +653,7 @@ ddr:version
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://topbraid.org/sxml>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://topbraid.org/sxml>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
...
...
@@ -618,321 +663,298 @@ owl:Thing
[
sp:
varName
"p"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
52
sp:
subject
_:
b
44
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"b"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
52
sp:
subject
_:
b
44
])
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
53
_:
b54
_:
b55
_:
b56
)
;
sp:
where
([
sp:
object
_:
b
56
;
sp:
resultVariables
(
_:
b
45
_:
b46
_:
b47
_:
b48
)
;
sp:
where
([
sp:
object
_:
b
48
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b
55
]
[
sp:
object
_:
b
55
;
sp:
subject
_:
b
47
]
[
sp:
object
_:
b
47
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
54
sp:
subject
_:
b
46
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
54
sp:
subject
_:
b
46
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
54
sp:
subject
_:
b
46
]))
]
[
sp:
object
_:
b
54
;
]
[
sp:
object
_:
b
46
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
53
sp:
subject
_:
b
45
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
57
_:
b58
_:
b59
_:
b60
)
;
sp:
resultVariables
(
_:
b
49
_:
b50
_:
b51
_:
b52
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
61
sp:
subject
_:
b
53
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
62
;
sp:
object
_:
b
54
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
<http://www.topbraid.org/2007/05/composite.owl#child>
]
;
sp:
subject
_:
b
61
]
[
sp:
object
_:
b
63
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
55
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b
61
]
[
sp:
object
_:
b
60
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
52
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b
62
]
[
sp:
object
_:
b
64
;
sp:
subject
_:
b
54
]
[
sp:
object
_:
b
56
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b
62
sp:
subject
_:
b
54
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
64
sp:
arg1
_:
b
56
]
;
sp:
variable
_:
b
65
sp:
variable
_:
b
57
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#has"
;
sp:
arg2
_:
b
65
sp:
arg2
_:
b
57
]
]
;
sp:
variable
_:
b5
9
sp:
variable
_:
b5
1
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
63
;
sp:
arg1
_:
b
55
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b
66
sp:
variable
_:
b
58
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
66
sp:
arg2
_:
b
58
]
]
;
sp:
variable
_:
b5
8
sp:
variable
_:
b5
0
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/map/ddr#"
;
sp:
arg2
_:
b
66
;
sp:
arg2
_:
b
58
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b
65
sp:
arg4
_:
b
57
]
]
;
sp:
variable
_:
b
57
sp:
variable
_:
b
49
])
]
;
spin:
update
[
rdf:
type
sp:
Modify
;
sp:
deletePattern
([
sp:
object
_:
b
67
;
sp:
deletePattern
([
sp:
object
_:
b
59
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b6
8
sp:
subject
_:
b6
0
])
;
sp:
insertPattern
([
sp:
object
_:
b6
9
;
sp:
insertPattern
([
sp:
object
_:
b6
1
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b6
8
sp:
subject
_:
b6
0
])
;
sp:
where
([
sp:
object
_:
b6
8
;
sp:
where
([
sp:
object
_:
b6
0
;
sp:
predicate
owl:
onProperty
;
sp:
subject
[
sp:
varName
"r"
^^
xsd:
string
]
]
[
sp:
object
_:
b
67
;
]
[
sp:
object
_:
b
59
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b6
8
sp:
subject
_:
b6
0
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
fn:
starts-with
;
sp:
arg1
_:
b
67
;
sp:
arg1
_:
b
59
;
sp:
arg2
"has"
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b
67
;
sp:
arg1
_:
b
59
;
sp:
arg2
"has(.*)"
;
sp:
arg3
"$1"
]
]
;
sp:
variable
_:
b6
9
sp:
variable
_:
b6
1
])
]
.
_:
b39
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b41
sp:
varName
"uom"
^^
xsd:
string
.
_:
b2
sp:
varName
"value"
^^
xsd:
string
.
_:
b42
sp:
varName
"value"
^^
xsd:
string
.
_:
b3
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b43
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b5
sp:
varName
"child"
^^
xsd:
string
.
_:
b45
sp:
varName
"child"
^^
xsd:
string
.
_:
b6
sp:
varName
"childType"
^^
xsd:
string
.
_:
b46
sp:
varName
"childType"
^^
xsd:
string
.
_:
b7
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b47
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b8
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b48
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b9
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b
49
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
10
sp:
varName
"
someXSDtype"
^^
xsd:
string
.
_:
b
50
_:
b
11
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
51
_:
b
12
sp:
varName
"text"
^^
xsd:
string
.
_:
b28
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b29
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b13
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
31
_:
b
14
sp:
varName
"child"
^^
xsd:
string
.
_:
b
32
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b
15
sp:
varName
"
formalProperty"
^^
xsd:
string
.
_:
b
33
sp:
varName
"child
LocalName"
^^
xsd:
string
.
_:
b
17
sp:
varName
"child
Type"
^^
xsd:
string
.
_:
b
34
_:
b
18
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b35
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b36
sp:
varName
"instType"
^^
xsd:
string
.
_:
b37
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b38
sp:
varName
"text"
^^
xsd:
string
.
_:
b19
sp:
varName
"
child"
^^
xsd:
string
.
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b20
sp:
varName
"
formalProperty"
^^
xsd:
string
.
sp:
varName
"
enumeratedValue"
^^
xsd:
string
.
_:
b2
2
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b2
1
sp:
varName
"
opnameU"
^^
xsd:
string
.
_:
b23
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
sp:
varName
"
child"
^^
xsd:
string
.
_:
b24
sp:
varName
"
propertyName"
^^
xsd:
string
.
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b25
sp:
varName
"
xmlTag"
^^
xsd:
string
.
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b26
sp:
varName
"
tagName"
^^
xsd:
string
.
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b27
sp:
varName
"instType"
^^
xsd:
string
.
_:
b13
sp:
varName
"child"
^^
xsd:
string
.
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b
14
sp:
varName
"
formalProperty"
^^
xsd:
string
.
_:
b
28
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
16
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b
29
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b
17
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b
30
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
18
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
31
sp:
varName
"
rangeU"
^^
xsd:
string
.
_:
b1
sp:
varName
"value"
^^
xsd:
string
.
_:
b33
sp:
varName
"uom"
^^
xsd:
string
.
_:
b2
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b34
sp:
varName
"value"
^^
xsd:
string
.
_:
b4
sp:
varName
"child"
^^
xsd:
string
.
_:
b35
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b5
sp:
varName
"childType"
^^
xsd:
string
.
_:
b37
sp:
varName
"child"
^^
xsd:
string
.
_:
b6
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b38
sp:
varName
"childType"
^^
xsd:
string
.
_:
b7
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b39
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b8
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b40
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b9
sp:
varName
"someXSDtype"
^^
xsd:
string
.
_:
b41
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
10
_:
b
42
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
11
_:
b
43
sp:
varName
"text"
^^
xsd:
string
.
_:
b
12
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
44
sp:
varName
"
c"
^^
xsd:
string
.
_:
b57
_:
b45
sp:
varName
"pp"
^^
xsd:
string
.
_:
b46
sp:
varName
"p"
^^
xsd:
string
.
_:
b47
sp:
varName
"s"
^^
xsd:
string
.
_:
b48
sp:
varName
"e"
^^
xsd:
string
.
_:
b49
sp:
varName
"ddrCPU"
^^
xsd:
string
.
_:
b5
8
_:
b5
0
sp:
varName
"ddrCU"
^^
xsd:
string
.
_:
b5
9
_:
b5
1
sp:
varName
"ddrPU"
^^
xsd:
string
.
_:
b
60
_:
b
52
sp:
varName
"mre"
^^
xsd:
string
.
_:
b
61
_:
b
53
sp:
varName
"s"
^^
xsd:
string
.
_:
b
62
_:
b
54
sp:
varName
"c"
^^
xsd:
string
.
_:
b
63
_:
b
55
sp:
varName
"name"
^^
xsd:
string
.
_:
b
64
_:
b
56
sp:
varName
"pname"
^^
xsd:
string
.
_:
b
65
_:
b
57
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b
66
_:
b
58
sp:
varName
"tcname"
^^
xsd:
string
.
_:
b53
sp:
varName
"pp"
^^
xsd:
string
.
_:
b54
sp:
varName
"p"
^^
xsd:
string
.
_:
b55
sp:
varName
"s"
^^
xsd:
string
.
_:
b56
sp:
varName
"e"
^^
xsd:
string
.
_:
b52
sp:
varName
"c"
^^
xsd:
string
.
_:
b67
_:
b59
sp:
varName
"oldLabel"
^^
xsd:
string
.
_:
b6
8
_:
b6
0
sp:
varName
"p"
^^
xsd:
string
.
_:
b6
9
_:
b6
1
sp:
varName
"newLabel"
^^
xsd:
string
.
[]
sxml:
tag
"witsml:porePressure"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment