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-08-24 11:15:34 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
fb0086611e0aff79abdfbf602b0312f1d11eb3a7
fb008661
2 parents
6d2ecf74
b93ce7d5
Merge branch 'NewDDRMappings2011-08-22'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
382 additions
and
383 deletions
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
View file @
fb00866
# Saved by TopBraid on
Mon Aug 15 12:16:07 PD
T 2011
# Saved by TopBraid on
Tue Aug 23 09:11:41 BS
T 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# 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
...
...
@@ -42,7 +41,7 @@ ddr:Cs_activity
sxml:
element
"witsml:activity"
^^
xsd:
string
.
ddr:
Cs_alias
sxml:
element
"witsml:
alias"
,
"witsml:rigAlias"
^^
xsd:
string
.
sxml:
element
"witsml:
rigAlias"
^^
xsd:
string
,
"witsml:alias"
.
ddr:
Cs_bitRecord
sxml:
element
"witsml:bitRecord"
.
...
...
@@ -135,7 +134,7 @@ ddr:Cs_refWellWellboreRig
sxml:
element
"witsml:refWellWellboreRig"
.
ddr:
Cs_wellAlias
sxml:
element
"witsml:well
Alias"
^^
xsd:
string
,
"witsml:wellbore
Alias"
^^
xsd:
string
.
sxml:
element
"witsml:well
boreAlias"
^^
xsd:
string
,
"witsml:well
Alias"
^^
xsd:
string
.
ddr:
Cs_wellCRS
sxml:
element
"witsml:wellCRS"
.
...
...
@@ -152,210 +151,238 @@ ddr:Obj_drillReport
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
9 - Construct all datatype
values"
^^
xsd:
string
;
rdfs:
comment
"STEP 00
4 - Construct UOM
values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
_:
b2
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b2
;
sp:
predicate
_:
b5
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
sp:
subject
_:
b
6
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
2
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
5
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
1
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
4
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
3
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
7
])
;
sp:
where
([
sp:
object
_:
b
4
;
sp:
where
([
sp:
object
_:
b
7
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
5
;
]
[
sp:
object
_:
b
8
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
sp:
subject
_:
b7
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b7
]
[
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
7
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
5
sp:
arg1
_:
b
8
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
9
]
[
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
9
]
]
;
sp:
variable
_:
b
2
]
[
sp:
object
owl:
Datatype
Property
;
sp:
variable
_:
b
5
]
[
sp:
object
owl:
Object
Property
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
2
;
sp:
subject
_:
b
5
]
[
sp:
object
_:
b
5
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
8
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b
1
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b
7
]
[
sp:
object
rdfs:
Datatype
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b11
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
sp:
subject
spin:
_this
]
[
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
_:
b8
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
rdf:
type
afn:
namespace
;
sp:
arg1
_:
b9
]
;
sp:
arg2
"http://www.w3.org/2001/XMLSchema#"
]
]
[
sp:
object
_:
b10
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b12
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
7
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
0
]
[
sp:
object
_:
b1
1
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
3
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b12
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b7
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b12
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
cast
;
arg:
datatype
_:
b9
;
sp:
arg1
_:
b11
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b13
]
;
sp:
variable
_:
b
1
sp:
variable
_:
b
4
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0
20 - Construct all other object properti
es"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
3
;
sp:
predicate
_:
b1
4
;
rdfs:
comment
"STEP 0
06 - Construct Enumerated Valu
es"
^^
xsd:
string
;
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
_:
b13
])
;
sp:
where
([
sp:
object
_:
b16
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b17
]
[
sp:
object
_:
b14
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b17
]
[
sp:
object
_:
b16
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b13
]
[
sp:
object
_:
b13
;
])
;
sp:
where
([
sp:
object
_:
b17
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b18
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b17
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
aNode
"
^^
xsd:
string
[
sp:
varName
"
uom
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
3
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b1
7
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b18
]
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b13
])
]
[
sp:
object
_:
b18
;
sp:
variable
_:
b19
]
[
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
_:
b19
]
]
;
sp:
variable
_:
b15
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b15
]
[
sp:
object
_:
b15
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b21
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b22
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
17
;
sp:
object
_:
b
20
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b18
sp:
subject
_:
b22
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b23
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b17
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b24
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b21
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b24
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b14
])
]
;
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
_:
b
19
;
sp:
predicate
_:
b2
0
;
sp:
templates
([
sp:
object
_:
b
25
;
sp:
predicate
_:
b2
6
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
1
sp:
subject
_:
b2
7
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b2
1
]
[
sp:
object
_:
b2
0
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
6
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b2
1
]
[
sp:
object
_:
b
19
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b
25
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b2
1
]
[
sp:
object
_:
b2
1
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
19
sp:
subject
_:
b
25
])
;
sp:
where
([
sp:
object
_:
b2
2
;
sp:
where
([
sp:
object
_:
b2
8
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b2
3
]
[
sp:
object
_:
b2
0
;
sp:
subject
_:
b2
9
]
[
sp:
object
_:
b2
6
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b2
3
sp:
subject
_:
b2
9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b2
0
sp:
arg1
_:
b2
6
]
;
sp:
variable
_:
b
24
]
[
sp:
object
_:
b2
2
;
sp:
variable
_:
b
30
]
[
sp:
object
_:
b2
8
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
19
]
[
sp:
object
_:
b
19
;
sp:
subject
_:
b
25
]
[
sp:
object
_:
b
25
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
...
...
@@ -363,209 +390,161 @@ ddr:Thing
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
19
sp:
subject
_:
b
25
])
]
[
sp:
object
_:
b
25
;
]
[
sp:
object
_:
b
31
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b
19
sp:
subject
_:
b
25
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b
25
;
sp:
arg1
_:
b
31
;
sp:
arg2
"(.*):(.*)"
;
sp:
arg3
"$2"
]
;
sp:
variable
_:
b
26
sp:
variable
_:
b
32
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
_:
b
26
;
sp:
arg2
_:
b
24
sp:
arg1
_:
b
32
;
sp:
arg2
_:
b
30
]
]
[
sp:
object
_:
b
27
;
]
[
sp:
object
_:
b
33
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b2
3
;
sp:
object
_:
b2
9
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
27
sp:
subject
_:
b
33
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0
06 - Construct Enumerated Valu
es"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
28
;
sp:
predicate
_:
b
29
;
rdfs:
comment
"STEP 0
20 - Construct all other object properti
es"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
34
;
sp:
predicate
_:
b
35
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
0
sp:
subject
_:
b3
6
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
29
;
sp:
subject
_:
b3
6
]
[
sp:
object
_:
b
35
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
28
;
sp:
subject
_:
b3
6
]
[
sp:
object
_:
b
34
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b3
0
;
sp:
subject
_:
b3
6
]
[
sp:
object
_:
b3
6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b3
1
sp:
subject
_:
b3
4
])
;
sp:
where
([
sp:
object
_:
b31
;
sp:
where
([
sp:
object
_:
b37
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b38
]
[
sp:
object
_:
b35
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b38
]
[
sp:
object
_:
b37
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b34
]
[
sp:
object
_:
b34
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b32
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b31
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
uom
"
^^
xsd:
string
[
sp:
varName
"
aNode
"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b3
1
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b3
4
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b32
]
]
;
sp:
variable
_:
b33
]
[
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
_:
b33
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
variable
_:
b29
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b29
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b34
]
[
sp:
object
_:
b35
;
sp:
predicate
owl:
allValuesFrom
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b34
]
[
sp:
object
_:
b36
;
])
]
[
sp:
object
_:
b39
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b3
4
;
sp:
object
_:
b3
8
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b36
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b35
]
[
sp:
object
_:
b37
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b31
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b37
]
[
sp:
object
_:
b38
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b37
]
[
sp:
object
_:
b35
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b28
]
[
sp:
object
_:
b38
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b28
sp:
subject
_:
b39
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 004 - Construct UOM values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b39
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b40
]
[
sp:
object
_:
b41
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b40
]
[
sp:
object
_:
b42
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b40
]
[
sp:
object
_:
b40
;
sp:
predicate
_:
b43
;
rdfs:
comment
"STEP 009 - Construct all datatype values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b40
;
sp:
predicate
_:
b41
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
4
sp:
subject
_:
b4
2
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
4
]
[
sp:
object
_:
b4
3
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
1
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
4
]
[
sp:
object
_:
b4
2
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
0
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
4
]
[
sp:
object
_:
b4
4
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b4
5
sp:
subject
_:
b4
3
])
;
sp:
where
([
sp:
object
_:
b4
5
;
sp:
where
([
sp:
object
_:
b4
3
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b4
6
;
]
[
sp:
object
_:
b4
4
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b45
]
[
sp:
object
_:
b41
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b45
sp:
subject
_:
b43
]
[
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
_:
b4
5
sp:
subject
_:
b4
3
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b4
6
sp:
arg1
_:
b4
4
]
;
sp:
variable
_:
b4
7
sp:
variable
_:
b4
5
]
[
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
_:
b4
7
sp:
arg2
_:
b4
5
]
]
;
sp:
variable
_:
b4
3
]
[
sp:
object
owl:
Object
Property
;
sp:
variable
_:
b4
1
]
[
sp:
object
owl:
Datatype
Property
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
3
]
[
sp:
object
_:
b4
3
;
sp:
subject
_:
b4
1
]
[
sp:
object
_:
b4
1
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b4
8
]
[
sp:
object
_:
b
39
;
sp:
subject
_:
b4
6
]
[
sp:
object
_:
b
47
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b4
8
]
[
sp:
object
_:
b49
;
sp:
subject
_:
b4
6
]
[
sp:
object
rdfs:
Datatype
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
sp:
subject
_:
b47
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b48
;
sp:
path
[
rdf:
type
sp:
ModPath
;
...
...
@@ -573,22 +552,41 @@ ddr:Thing
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b49
]
[
sp:
object
_:
b50
;
sp:
subject
_:
b47
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
rdf:
type
afn:
namespace
;
sp:
arg1
_:
b48
]
;
sp:
arg2
"http://www.w3.org/2001/XMLSchema#"
]
]
[
sp:
object
_:
b49
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b4
5
sp:
subject
_:
b4
3
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
50
]
[
sp:
object
_:
b5
1
;
sp:
subject
_:
b
49
]
[
sp:
object
_:
b5
0
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b50
sp:
subject
_:
b49
]
[
sp:
object
_:
b51
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b46
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b51
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b5
1
[
rdf:
type
spif:
cast
;
sp:
arg1
_:
b5
0
]
;
sp:
variable
_:
b4
2
sp:
variable
_:
b4
0
])
]
.
...
...
@@ -605,113 +603,113 @@ 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/
transform/1.1/wellAndWellBoreAlias>
,
<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://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:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
spin:
query
[
rdf:
type
sp:
Select
;
sp:
where
([
sp:
object
[
sp:
varName
"p"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b52
]
[
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
_:
b52
])
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b53
_:
b54
_:
b55
_:
b56
)
;
sp:
where
([
sp:
object
_:
b56
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b55
]
[
sp:
object
_:
b55
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b54
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b54
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b54
]))
]
[
sp:
object
_:
b54
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b53
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b57
_:
b58
_:
b59
_:
b60
)
;
sp:
resultVariables
(
_:
b52
_:
b53
_:
b54
_:
b55
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
61
sp:
subject
_:
b
56
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
62
;
sp:
object
_:
b
57
;
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
56
]
[
sp:
object
_:
b
58
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b
61
]
[
sp:
object
_:
b
60
;
sp:
subject
_:
b
56
]
[
sp:
object
_:
b
55
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b
62
]
[
sp:
object
_:
b
64
;
sp:
subject
_:
b
57
]
[
sp:
object
_:
b
59
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b
62
sp:
subject
_:
b
57
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
64
sp:
arg1
_:
b
59
]
;
sp:
variable
_:
b6
5
sp:
variable
_:
b6
0
]
[
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
_:
b6
5
sp:
arg2
_:
b6
0
]
]
;
sp:
variable
_:
b5
9
sp:
variable
_:
b5
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
63
;
sp:
arg1
_:
b
58
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b6
6
sp:
variable
_:
b6
1
]
[
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
_:
b6
6
sp:
arg2
_:
b6
1
]
]
;
sp:
variable
_:
b5
8
sp:
variable
_:
b5
3
]
[
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
_:
b6
6
;
sp:
arg2
_:
b6
1
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b6
5
sp:
arg4
_:
b6
0
]
]
;
sp:
variable
_:
b57
sp:
variable
_:
b52
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b62
_:
b63
_:
b64
_:
b65
)
;
sp:
where
([
sp:
object
_:
b65
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b64
]
[
sp:
object
_:
b64
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b63
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b63
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b63
]))
]
[
sp:
object
_:
b63
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b62
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
where
([
sp:
object
[
sp:
varName
"p"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b66
]
[
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
_:
b66
])
])
]
;
spin:
update
...
...
@@ -760,174 +758,175 @@ _:b68
_:
b67
sp:
varName
"oldLabel"
^^
xsd:
string
.
_:
b52
_:
b61
sp:
varName
"tcname"
^^
xsd:
string
.
_:
b60
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b59
sp:
varName
"pname"
^^
xsd:
string
.
_:
b58
sp:
varName
"name"
^^
xsd:
string
.
_:
b57
sp:
varName
"c"
^^
xsd:
string
.
_:
b56
sp:
varName
"
e
"
^^
xsd:
string
.
sp:
varName
"
s
"
^^
xsd:
string
.
_:
b55
sp:
varName
"
s
"
^^
xsd:
string
.
sp:
varName
"
mre
"
^^
xsd:
string
.
_:
b54
sp:
varName
"
p
"
^^
xsd:
string
.
sp:
varName
"
ddrPU
"
^^
xsd:
string
.
_:
b53
sp:
varName
"
pp
"
^^
xsd:
string
.
sp:
varName
"
ddrCU
"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
tcname
"
^^
xsd:
string
.
_:
b
52
sp:
varName
"
ddrCPU
"
^^
xsd:
string
.
_:
b65
sp:
varName
"
tcpnam
e"
^^
xsd:
string
.
sp:
varName
"e"
^^
xsd:
string
.
_:
b64
sp:
varName
"
pname
"
^^
xsd:
string
.
sp:
varName
"
s
"
^^
xsd:
string
.
_:
b63
sp:
varName
"
name
"
^^
xsd:
string
.
sp:
varName
"
p
"
^^
xsd:
string
.
_:
b62
sp:
varName
"c"
^^
xsd:
string
.
_:
b61
sp:
varName
"s"
^^
xsd:
string
.
_:
b60
sp:
varName
"mre"
^^
xsd:
string
.
_:
b59
sp:
varName
"ddrPU"
^^
xsd:
string
.
sp:
varName
"pp"
^^
xsd:
string
.
_:
b
58
sp:
varName
"
ddrCU
"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
c
"
^^
xsd:
string
.
_:
b
57
sp:
varName
"
ddrCPU
"
^^
xsd:
string
.
_:
b
13
sp:
varName
"
text
"
^^
xsd:
string
.
_:
b12
sp:
varName
"
instTyp
e"
^^
xsd:
string
.
sp:
varName
"
textNod
e"
^^
xsd:
string
.
_:
b11
sp:
varName
"
text
"
^^
xsd:
string
.
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b10
sp:
varName
"
textNode
"
^^
xsd:
string
.
sp:
varName
"
allValuesRestriction
"
^^
xsd:
string
.
_:
b9
sp:
varName
"
someXSDtyp
e"
^^
xsd:
string
.
_:
b9
sp:
varName
"
childLocalNam
e"
^^
xsd:
string
.
_:
b8
sp:
varName
"
range
Type"
^^
xsd:
string
.
_:
b8
sp:
varName
"
child
Type"
^^
xsd:
string
.
_:
b7
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b7
sp:
varName
"
child
"
^^
xsd:
string
.
_:
b
6
sp:
varName
"childLocalName
"
^^
xsd:
string
.
_:
b
5
sp:
varName
"opnameU
"
^^
xsd:
string
.
_:
b
5
sp:
varName
"childTyp
e"
^^
xsd:
string
.
_:
b
4
sp:
varName
"valu
e"
^^
xsd:
string
.
_:
b
4
sp:
varName
"child
"
^^
xsd:
string
.
_:
b
3
sp:
varName
"uom
"
^^
xsd:
string
.
_:
b
2
sp:
varName
"dtpnam
eU"
^^
xsd:
string
.
_:
b
1
sp:
varName
"rang
eU"
^^
xsd:
string
.
_:
b1
sp:
varName
"value"
^^
xsd:
string
.
_:
b24
sp:
varName
"text"
^^
xsd:
string
.
_:
b18
_:
b23
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b22
sp:
varName
"instType"
^^
xsd:
string
.
_:
b17
_:
b21
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b20
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b1
6
sp:
varName
"child
Typ
e"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"child
LocalNam
e"
^^
xsd:
string
.
_:
b1
4
sp:
varName
"
formalProperty
"
^^
xsd:
string
.
_:
b1
8
sp:
varName
"
childType
"
^^
xsd:
string
.
_:
b1
3
_:
b1
7
sp:
varName
"child"
^^
xsd:
string
.
_:
b27
_:
b15
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b14
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b33
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
26
_:
b
32
sp:
varName
"tagName"
^^
xsd:
string
.
_:
b
25
_:
b
31
sp:
varName
"xmlTag"
^^
xsd:
string
.
_:
b
24
_:
b
30
sp:
varName
"propertyName"
^^
xsd:
string
.
_:
b2
3
_:
b2
9
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b2
2
_:
b2
8
sp:
varName
"childType"
^^
xsd:
string
.
_:
b2
0
_:
b2
6
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b
19
_:
b
25
sp:
varName
"child"
^^
xsd:
string
.
_:
b39
sp:
varName
"instType"
^^
xsd:
string
.
_:
b38
sp:
varName
"
text
"
^^
xsd:
string
.
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b37
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b36
sp:
varName
"instType"
^^
xsd:
string
.
sp:
varName
"childType"
^^
xsd:
string
.
_:
b35
sp:
varName
"
rangeU
"
^^
xsd:
string
.
sp:
varName
"
formalProperty
"
^^
xsd:
string
.
_:
b34
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b33
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b32
sp:
varName
"childType"
^^
xsd:
string
.
_:
b31
sp:
varName
"child"
^^
xsd:
string
.
_:
b29
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b28
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b51
sp:
varName
"
text
"
^^
xsd:
string
.
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b50
sp:
varName
"text
Node
"
^^
xsd:
string
.
sp:
varName
"text"
^^
xsd:
string
.
_:
b49
sp:
varName
"
instTyp
e"
^^
xsd:
string
.
sp:
varName
"
textNod
e"
^^
xsd:
string
.
_:
b48
sp:
varName
"
allValuesRestriction
"
^^
xsd:
string
.
sp:
varName
"
someXSDtype
"
^^
xsd:
string
.
_:
b47
sp:
varName
"
childLocalNam
e"
^^
xsd:
string
.
sp:
varName
"
rangeTyp
e"
^^
xsd:
string
.
_:
b46
sp:
varName
"
childType
"
^^
xsd:
string
.
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b45
sp:
varName
"child"
^^
xsd:
string
.
sp:
varName
"child
LocalName
"
^^
xsd:
string
.
_:
b4
3
sp:
varName
"
opnameU
"
^^
xsd:
string
.
_:
b4
4
sp:
varName
"
childType
"
^^
xsd:
string
.
_:
b4
2
sp:
varName
"
value
"
^^
xsd:
string
.
_:
b4
3
sp:
varName
"
child
"
^^
xsd:
string
.
_:
b41
sp:
varName
"
uom
"
^^
xsd:
string
.
sp:
varName
"
dtpnameU
"
^^
xsd:
string
.
_:
b
39
sp:
varName
"
rangeU
"
^^
xsd:
string
.
_:
b
40
sp:
varName
"
value
"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl.tbc
View file @
fb00866
# Saved by TopBraid on
Mon Aug 15 12:16:07 PDT 2011
# Saved by TopBraid on
Tue Aug 23 09:11:41 BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment