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
Ralph Hodgson
2011-08-05 18:06:28 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fb421d122e61b5c348be63eb5e71d7cc8567bcc4
fb421d12
1 parent
e3ed5bab
optimization of DDR ingest rules
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
398 additions
and
397 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 @
fb421d1
# Saved by TopBraid on Fri Aug 05 18:0
1:44
PDT 2011
# Saved by TopBraid on Fri Aug 05 18:0
5:47
PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://spinrdf.org/spin
...
...
@@ -23,7 +23,7 @@ ddr:Cs_activity
sxml:
element
"witsml:activity"
^^
xsd:
string
.
ddr:
Cs_alias
sxml:
element
"witsml:
rigAlias"
^^
xsd:
string
,
"witsml:alias"
.
sxml:
element
"witsml:
alias"
,
"witsml:rigAlias"
^^
xsd:
string
.
ddr:
Cs_bitRecord
sxml:
element
"witsml:bitRecord"
.
...
...
@@ -71,7 +71,7 @@ ddr:Cs_drillReportPorePressure
sxml:
element
"witsml:drillReportPorePressure"
.
ddr:
Cs_drillReportStatusInfo
sxml:
element
"witsml:
statusInfo"
^^
xsd:
string
,
"witsml:drillReportStatusInfo"
.
sxml:
element
"witsml:
drillReportStatusInfo"
,
"witsml:statusInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportStratInfo
sxml:
element
"witsml:drillReportStratInfo"
.
...
...
@@ -107,7 +107,7 @@ ddr:Cs_refWellWellboreRig
sxml:
element
"witsml:refWellWellboreRig"
.
ddr:
Cs_wellAlias
sxml:
element
"witsml:well
Alias"
,
"witsml:wellboreAlias"
^^
xsd:
string
.
sxml:
element
"witsml:well
boreAlias"
^^
xsd:
string
,
"witsml:wellAlias"
.
ddr:
Cs_wellCRS
sxml:
element
"witsml:wellCRS"
.
...
...
@@ -124,432 +124,432 @@ ddr:Obj_drillReport
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0
20 - Construct all other object properties - WIP
"
^^
xsd:
string
;
rdfs:
comment
"STEP 0
04 - Construct UOM values
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
_:
b2
;
sp:
subject
_:
b3
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
4
sp:
subject
_:
b
2
]
[
sp:
object
_:
b3
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b2
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b1
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
_:
b5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b6
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b2
;
sp:
predicate
owl:
onProperty
;
sp:
predicate
_:
b5
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b5
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b7
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b6
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b7
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 006 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b8
;
sp:
predicate
_:
b9
;
sp:
subject
_:
b10
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
10
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
6
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
5
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
8
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
4
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
11
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
12
sp:
subject
_:
b
8
])
;
sp:
where
([
sp:
object
_:
b
12
;
sp:
where
([
sp:
object
_:
b
8
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b
13
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
9
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b12
sp:
subject
_:
b8
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b8
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
uom
"
^^
xsd:
string
[
sp:
varName
"
aNode
"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
12
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
8
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b13
]
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b9
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
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
_:
b14
sp:
arg2
[
rdf:
type
smf:
titleCase
;
sp:
arg1
_:
b10
]
]
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
5
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b
5
]
[
sp:
object
_:
b
5
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
6
;
sp:
subject
_:
b1
1
]
[
sp:
object
_:
b1
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
7
;
sp:
subject
_:
b1
1
]
[
sp:
object
_:
b1
2
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b15
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b17
sp:
subject
_:
b6
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
object
_:
b11
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b16
]
[
sp:
object
_:
b18
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b12
]
[
sp:
object
_:
b13
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b8
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
9
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
4
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b16
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b19
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b8
sp:
subject
_:
b1
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b14
]
;
sp:
variable
_:
b4
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
2 - Construct datatype datetime
values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
20
;
sp:
predicate
_:
b
21
;
sp:
subject
_:
b
22
rdfs:
comment
"STEP 00
3 - Construct datatype string
values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
15
;
sp:
predicate
_:
b
16
;
sp:
subject
_:
b
17
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
23
]
[
sp:
object
_:
b
22
;
sp:
subject
_:
b
18
]
[
sp:
object
_:
b
17
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
23
]
[
sp:
object
_:
b
21
;
sp:
subject
_:
b
18
]
[
sp:
object
_:
b
16
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
23
]
[
sp:
object
_:
b
20
;
sp:
subject
_:
b
18
]
[
sp:
object
_:
b
15
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
23
]
[
sp:
object
_:
b
23
;
sp:
subject
_:
b
18
]
[
sp:
object
_:
b
18
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
24
sp:
subject
_:
b
19
])
;
sp:
where
([
sp:
object
_:
b
24
;
sp:
where
([
sp:
object
_:
b
19
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b2
5
;
sp:
subject
_:
b
17
]
[
sp:
object
_:
b2
0
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
24
sp:
subject
_:
b
19
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
24
sp:
subject
_:
b
19
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b2
5
sp:
arg1
_:
b2
0
]
;
sp:
variable
_:
b2
6
sp:
variable
_:
b2
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
_:
b2
6
sp:
arg2
_:
b2
1
]
]
;
sp:
variable
_:
b
21
sp:
variable
_:
b
16
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
21
]
[
sp:
object
_:
b
21
;
sp:
subject
_:
b
16
]
[
sp:
object
_:
b
16
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
8
;
sp:
subject
_:
b2
2
]
[
sp:
object
_:
b2
3
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b2
7
sp:
subject
_:
b2
2
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
dateTime
;
sp:
object
xsd:
string
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b2
8
]
[
sp:
object
_:
b2
9
;
sp:
subject
_:
b2
3
]
[
sp:
object
_:
b2
4
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
24
sp:
subject
_:
b
19
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
9
]
[
sp:
object
_:
b
30
;
sp:
subject
_:
b2
4
]
[
sp:
object
_:
b
15
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b2
9
]
[
sp:
object
_:
b
31
;
sp:
subject
_:
b2
4
]
[
sp:
object
_:
b
25
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
22
sp:
subject
_:
b
17
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b2
7
;
sp:
object
_:
b2
2
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b31
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
dateTime
;
sp:
arg1
_:
b30
]
;
sp:
variable
_:
b20
sp:
subject
_:
b25
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0
04 - Construct UOM value
s"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b32
;
rdfs:
comment
"STEP 0
30 - Construct ep-activity type statement
s"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/activity#DrillingActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b33
]
[
sp:
object
_:
b34
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b33
]
[
sp:
object
_:
b35
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b33
]
[
sp:
object
_:
b33
;
sp:
predicate
_:
b36
;
sp:
subject
_:
b37
sp:
subject
_:
b26
])
;
sp:
where
([
sp:
object
ddr:
Cs_activity
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b26
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 002 - Construct datatype datetime values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b27
;
sp:
predicate
_:
b28
;
sp:
subject
_:
b29
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
8
]
[
sp:
object
_:
b
37
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
29
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b3
8
]
[
sp:
object
_:
b
36
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
28
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b3
8
]
[
sp:
object
_:
b
35
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
27
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b3
8
]
[
sp:
object
_:
b3
8
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b3
0
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b3
9
sp:
subject
_:
b3
1
])
;
sp:
where
([
sp:
object
_:
b3
9
;
sp:
where
([
sp:
object
_:
b3
1
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
37
]
[
sp:
object
_:
b
40
;
sp:
subject
_:
b
29
]
[
sp:
object
_:
b
32
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b39
]
[
sp:
object
_:
b34
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b39
sp:
subject
_:
b31
]
[
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
_:
b3
9
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b3
1
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
40
sp:
arg1
_:
b
32
]
;
sp:
variable
_:
b
41
sp:
variable
_:
b
33
]
[
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
[
rdf:
type
smf:
titleCase
;
sp:
arg1
_:
b41
]
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b33
]
]
;
sp:
variable
_:
b
36
]
[
sp:
object
owl:
Object
Property
;
sp:
variable
_:
b
28
]
[
sp:
object
owl:
Datatype
Property
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b
36
;
sp:
subject
_:
b
28
]
[
sp:
object
_:
b
28
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
42
]
[
sp:
object
_:
b3
2
;
sp:
subject
_:
b
34
]
[
sp:
object
_:
b3
5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b42
]
[
sp:
object
_:
b43
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b37
sp:
subject
_:
b34
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b42
;
sp:
object
xsd:
dateTime
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
43
]
[
sp:
object
_:
b
44
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
36
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b3
9
sp:
subject
_:
b3
1
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
45
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b
37
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b44
sp:
subject
_:
b36
]
[
sp:
object
_:
b38
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b29
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b34
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b38
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
d
oubl
e
;
sp:
arg1
_:
b
45
[
rdf:
type
xsd:
d
ateTim
e
;
sp:
arg1
_:
b
37
]
;
sp:
variable
_:
b
35
sp:
variable
_:
b
27
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
3 - Construct datatype string v
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
46
;
sp:
predicate
_:
b4
7
;
sp:
subject
_:
b4
8
rdfs:
comment
"STEP 00
6 - Construct Enumerated V
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
39
;
sp:
predicate
_:
b4
0
;
sp:
subject
_:
b4
1
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
9
]
[
sp:
object
_:
b4
8
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
1
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
9
]
[
sp:
object
_:
b4
7
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
0
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
9
]
[
sp:
object
_:
b
46
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b
39
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
9
]
[
sp:
object
_:
b4
9
;
sp:
subject
_:
b4
2
]
[
sp:
object
_:
b4
2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
50
sp:
subject
_:
b
43
])
;
sp:
where
([
sp:
object
_:
b
50
;
sp:
where
([
sp:
object
_:
b
43
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b4
8
]
[
sp:
object
_:
b
51
;
sp:
subject
_:
b4
1
]
[
sp:
object
_:
b
44
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
50
sp:
subject
_:
b
43
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
50
sp:
subject
_:
b
43
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b51
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b44
]
]
;
sp:
variable
_:
b
52
sp:
variable
_:
b
45
]
[
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
52
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#
has
"
;
sp:
arg2
_:
b
45
]
]
;
sp:
variable
_:
b4
7
]
[
sp:
object
owl:
Datatype
Property
;
sp:
variable
_:
b4
0
]
[
sp:
object
owl:
Object
Property
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
7
]
[
sp:
object
_:
b4
7
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b4
0
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
54
;
sp:
subject
_:
b
46
]
[
sp:
object
_:
b
47
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b53
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
string
;
sp:
subject
_:
b46
]
[
sp:
object
_:
b48
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b41
]
[
sp:
object
_:
b46
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b48
]
[
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
_:
b
54
]
[
sp:
object
_:
b
55
;
sp:
subject
_:
b
47
]
[
sp:
object
_:
b
49
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
50
sp:
subject
_:
b
43
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
55
]
[
sp:
object
_:
b
46
;
sp:
subject
_:
b
49
]
[
sp:
object
_:
b
50
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b
55
]
[
sp:
object
_:
b
56
;
sp:
subject
_:
b
49
]
[
sp:
object
_:
b
47
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b48
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b53
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b56
sp:
subject
_:
b39
]
[
sp:
object
_:
b50
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b39
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 030 - Construct ep-activity type statements"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/activity#DrillingActivity>
;
rdfs:
comment
"STEP 020 - Construct all other object properties - WIP"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b51
;
sp:
predicate
_:
b52
;
sp:
subject
_:
b53
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b57
sp:
subject
_:
b54
]
[
sp:
object
_:
b53
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b54
]
[
sp:
object
_:
b52
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b54
]
[
sp:
object
_:
b51
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b54
]
[
sp:
object
_:
b54
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b51
])
;
sp:
where
([
sp:
object
ddr:
Cs_activity
;
sp:
where
([
sp:
object
_:
b55
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b56
]
[
sp:
object
_:
b52
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b56
]
[
sp:
object
_:
b55
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b51
]
[
sp:
object
_:
b51
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b53
]
[
sp:
object
_:
b57
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b53
]
[
sp:
object
_:
b56
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b57
])
]
.
...
...
@@ -567,283 +567,284 @@ ddr:version
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/schema/1.1.1/ddr>
,
<http://topbraid.org/sxml>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://topbraid.org/sxml>
,
<http://www.reportinghub.no/ep/schema/1.1.1/ddr
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b58
_:
b59
_:
b60
_:
b61
)
;
sp:
where
([
sp:
object
_:
b61
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b60
]
[
sp:
object
_:
b60
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b59
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b59
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b59
]))
]
[
sp:
object
_:
b59
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b58
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b62
_:
b63
_:
b64
_:
b65
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
2
sp:
subject
_:
b6
6
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b6
3
;
sp:
object
_:
b6
7
;
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
_:
b6
2
]
[
sp:
object
_:
b6
4
;
sp:
subject
_:
b6
6
]
[
sp:
object
_:
b6
8
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b62
]
[
sp:
object
_:
b61
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b63
sp:
subject
_:
b66
]
[
sp:
object
_:
b65
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b67
]
[
sp:
object
_:
b69
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b6
3
sp:
subject
_:
b6
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b6
5
sp:
arg1
_:
b6
9
]
;
sp:
variable
_:
b
66
sp:
variable
_:
b
70
]
[
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
66
sp:
arg2
_:
b
70
]
]
;
sp:
variable
_:
b6
0
sp:
variable
_:
b6
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b6
4
;
sp:
arg1
_:
b6
8
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b
67
sp:
variable
_:
b
71
]
[
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
67
sp:
arg2
_:
b
71
]
]
;
sp:
variable
_:
b
59
sp:
variable
_:
b
63
]
[
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
67
;
sp:
arg2
_:
b
71
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b
66
sp:
arg4
_:
b
70
]
]
;
sp:
variable
_:
b58
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b68
_:
b69
_:
b70
_:
b71
)
;
sp:
where
([
sp:
object
_:
b71
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b70
]
[
sp:
object
_:
b70
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b69
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b69
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b69
]))
]
[
sp:
object
_:
b69
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b68
sp:
variable
_:
b62
])
]
.
_:
b
67
sp:
varName
"
tcname
"
^^
xsd:
string
.
_:
b
51
sp:
varName
"
child
"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
tcpname
"
^^
xsd:
string
.
_:
b
52
sp:
varName
"
formalProperty
"
^^
xsd:
string
.
_:
b
65
sp:
varName
"
pname
"
^^
xsd:
string
.
_:
b
53
sp:
varName
"
inst
"
^^
xsd:
string
.
_:
b
64
sp:
varName
"
nam
e"
^^
xsd:
string
.
_:
b
55
sp:
varName
"
childTyp
e"
^^
xsd:
string
.
_:
b
63
sp:
varName
"
c
"
^^
xsd:
string
.
_:
b
56
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b
62
sp:
varName
"
s
"
^^
xsd:
string
.
_:
b
57
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b
61
sp:
varName
"
mr
e"
^^
xsd:
string
.
_:
b
39
sp:
varName
"
enumeratedValu
e"
^^
xsd:
string
.
_:
b
6
0
sp:
varName
"
ddrP
U"
^^
xsd:
string
.
_:
b
4
0
sp:
varName
"
opname
U"
^^
xsd:
string
.
_:
b
59
sp:
varName
"
ddrCU
"
^^
xsd:
string
.
_:
b
41
sp:
varName
"
inst
"
^^
xsd:
string
.
_:
b
58
sp:
varName
"
ddrCPU
"
^^
xsd:
string
.
_:
b
43
sp:
varName
"
child
"
^^
xsd:
string
.
_:
b
71
sp:
varName
"e"
^^
xsd:
string
.
_:
b
44
sp:
varName
"
childTyp
e"
^^
xsd:
string
.
_:
b
70
sp:
varName
"
s
"
^^
xsd:
string
.
_:
b
45
sp:
varName
"
childLocalName
"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
p
"
^^
xsd:
string
.
_:
b
46
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b
68
sp:
varName
"
pp
"
^^
xsd:
string
.
_:
b
47
sp:
varName
"
rangeU
"
^^
xsd:
string
.
_:
b
57
sp:
varName
"
activity
"
^^
xsd:
string
.
_:
b
48
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b10
_:
b49
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b50
sp:
varName
"text"
^^
xsd:
string
.
_:
b27
sp:
varName
"dateTime"
^^
xsd:
string
.
_:
b28
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b29
sp:
varName
"inst"
^^
xsd:
string
.
_:
b
12
_:
b
31
sp:
varName
"child"
^^
xsd:
string
.
_:
b
13
_:
b
32
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
14
_:
b
33
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b9
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b15
_:
b34
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b16
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b17
sp:
varName
"instType"
^^
xsd:
string
.
_:
b35
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b
18
_:
b
36
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
19
_:
b
37
sp:
varName
"text"
^^
xsd:
string
.
_:
b8
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b6
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b38
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
5
sp:
varName
"childType
"
^^
xsd:
string
.
_:
b
1
sp:
varName
"rangeU
"
^^
xsd:
string
.
_:
b
2
sp:
varName
"formalProperty
"
^^
xsd:
string
.
_:
b
3
sp:
varName
"uom
"
^^
xsd:
string
.
_:
b
1
sp:
varName
"child
"
^^
xsd:
string
.
_:
b
4
sp:
varName
"value
"
^^
xsd:
string
.
_:
b
3
sp:
varName
"inst
"
^^
xsd:
string
.
_:
b
5
sp:
varName
"opnameU
"
^^
xsd:
string
.
_:
b
7
sp:
varName
"instType
"
^^
xsd:
string
.
_:
b
6
sp:
varName
"inst
"
^^
xsd:
string
.
_:
b48
sp:
varName
"inst"
^^
xsd:
string
.
_:
b8
sp:
varName
"child"
^^
xsd:
string
.
_:
b50
sp:
varName
"child"
^^
xsd:
string
.
_:
b9
sp:
varName
"childType"
^^
xsd:
string
.
_:
b51
sp:
varName
"childType"
^^
xsd:
string
.
_:
b52
_:
b10
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b47
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b53
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b11
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b
54
sp:
varName
"
range
Type"
^^
xsd:
string
.
_:
b
12
sp:
varName
"
inst
Type"
^^
xsd:
string
.
_:
b
55
_:
b
13
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
46
_:
b
14
sp:
varName
"text"
^^
xsd:
string
.
_:
b
56
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b
15
sp:
varName
"
text
"
^^
xsd:
string
.
_:
b22
_:
b16
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b17
sp:
varName
"inst"
^^
xsd:
string
.
_:
b
24
_:
b
19
sp:
varName
"child"
^^
xsd:
string
.
_:
b2
5
_:
b2
0
sp:
varName
"childType"
^^
xsd:
string
.
_:
b26
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b21
sp:
varName
"
dtpnameU
"
^^
xsd:
string
.
sp:
varName
"
childLocalName
"
^^
xsd:
string
.
_:
b2
7
_:
b2
2
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b2
8
_:
b2
3
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b2
9
_:
b2
4
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b30
sp:
varName
"text"
^^
xsd:
string
.
_:
b31
_:
b25
sp:
varName
"instType"
^^
xsd:
string
.
_:
b2
0
sp:
varName
"
dateTime
"
^^
xsd:
string
.
_:
b2
6
sp:
varName
"
activity
"
^^
xsd:
string
.
_:
b
37
sp:
varName
"
inst
"
^^
xsd:
string
.
_:
b
62
sp:
varName
"
ddrCPU
"
^^
xsd:
string
.
_:
b
39
sp:
varName
"
child
"
^^
xsd:
string
.
_:
b
63
sp:
varName
"
ddrCU
"
^^
xsd:
string
.
_:
b
40
sp:
varName
"
childType
"
^^
xsd:
string
.
_:
b
64
sp:
varName
"
ddrPU
"
^^
xsd:
string
.
_:
b
34
sp:
varName
"
uom
"
^^
xsd:
string
.
_:
b
65
sp:
varName
"
mre
"
^^
xsd:
string
.
_:
b
41
sp:
varName
"
childLocalName
"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
s
"
^^
xsd:
string
.
_:
b
36
sp:
varName
"
opnameU
"
^^
xsd:
string
.
_:
b
67
sp:
varName
"
c
"
^^
xsd:
string
.
_:
b
42
sp:
varName
"
allValuesRestriction
"
^^
xsd:
string
.
_:
b
68
sp:
varName
"
name
"
^^
xsd:
string
.
_:
b
32
sp:
varName
"
rangeU
"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
pname
"
^^
xsd:
string
.
_:
b
43
sp:
varName
"
instTyp
e"
^^
xsd:
string
.
_:
b
70
sp:
varName
"
tcpnam
e"
^^
xsd:
string
.
_:
b
44
sp:
varName
"t
extNod
e"
^^
xsd:
string
.
_:
b
71
sp:
varName
"t
cnam
e"
^^
xsd:
string
.
_:
b
45
sp:
varName
"
text
"
^^
xsd:
string
.
_:
b
58
sp:
varName
"
pp
"
^^
xsd:
string
.
_:
b35
sp:
varName
"value"
^^
xsd:
string
.
_:
b59
sp:
varName
"p"
^^
xsd:
string
.
_:
b60
sp:
varName
"s"
^^
xsd:
string
.
_:
b61
sp:
varName
"e"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment