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-08-03 20:29:01 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13e0046cbc9b5bbf125110f6678c575464246cb8
13e0046c
1 parent
24bc0fdf
Misc clean up of EP ontologies and SXML importer
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
953 additions
and
877 deletions
www.reportinghub.no/ep/schema/1.1/SCHEMA_EP-ABSTRACT-(v1.1.1).ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-(v1.1).ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-(v1.1).ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_ddr-(v1.1.1).ttl
www.reportinghub.no/ep/transform/TRANSFORM_normalization-(v1.1.1).ttl.tbc → www.reportinghub.no/ep/transform/TRANSFORM_ddr-(v1.1.1).ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-(v1.1.1).ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-(v1.1.1).ttl.tbc
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
www.reportinghub.no/ep/schema/1.1/SCHEMA_EP-ABSTRACT-(v1.1.1).ttl
View file @
13e0046
@prefix
:
<http://www.energistics.org/schemas/abstract#>
.
@prefix
vaem:
<http://www.linkedmodel.org/schema/vaem#>
.
@prefix
dc:
<http://purl.org/dc/elements/1.1/>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
@prefix
dtype:
<http://www.linkedmodel.org/schema/dtype#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
skos:
<http://www.w3.org/2004/02/skos/core#>
.
:
AbstractDataObject
a
<http://www.w3.org/2002/07/owl#Class>
;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract data object"
^^
xsd:
string
;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
:
AbstractObject
;
dc:
description
"Substitution group for normative data objects."
^^
xsd:
string
.
:
AbstractContextualObject
a
<http://www.w3.org/2002/07/owl#Class>
;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract contextual object"
^^
xsd:
string
;
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
:
AbstractObject
;
dc:
description
"Substitution group for contextual objects."
^^
xsd:
string
.
dc:
description
<http://www.w3.org/2000/01/rdf-schema#label>
"description"
^^
xsd:
string
.
:
AbstractObject
a
<http://www.w3.org/2002/07/owl#Class>
;
<http://www.w3.org/2000/01/rdf-schema#label>
"Abstract object"
^^
xsd:
string
;
# baseURI: http://www.energistics.org/schemas/abstract
# imports: http://www.linkedmodel.org/schema/dtype
# imports: http://www.linkedmodel.org/schema/vaem
@prefix
abstract:
<http://www.energistics.org/schemas/abstract#>
.
@prefix
dc:
<http://purl.org/dc/elements/1.1/>
.
@prefix
dtype:
<http://www.linkedmodel.org/schema/dtype#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
skos:
<http://www.w3.org/2004/02/skos/core#>
.
@prefix
vaem:
<http://www.linkedmodel.org/schema/vaem#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
dc:
description
rdfs:
label
"description"
^^
xsd:
string
.
<http://www.energistics.org/schemas/abstract>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.linkedmodel.org/schema/vaem>
,
<http://www.linkedmodel.org/schema/dtype>
;
owl:
versionInfo
"Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"
^^
xsd:
string
.
abstract:
AbstractContextualObject
rdf:
type
owl:
Class
;
rdfs:
label
"Abstract contextual object"
^^
xsd:
string
;
rdfs:
subClassOf
abstract:
AbstractObject
;
dc:
description
"Substitution group for contextual objects."
^^
xsd:
string
.
abstract:
AbstractDataObject
rdf:
type
owl:
Class
;
rdfs:
label
"Abstract data object"
^^
xsd:
string
;
rdfs:
subClassOf
abstract:
AbstractObject
;
dc:
description
"Substitution group for normative data objects."
^^
xsd:
string
.
abstract:
AbstractObject
rdf:
type
owl:
Class
;
rdfs:
label
"Abstract object"
^^
xsd:
string
;
dc:
description
"""The intended abstract supertype of all schema roots
that may be a member of a substitution group (whether contextual or data).
The type of root global elements should be extended from this type and the
root global element should be declared to be a member of one of the above substitution groups."""
^^
xsd:
string
.
skos:
prefLabel
a
<http://www.w3.org/2002/07/owl#AnnotationProperty>
;
<http://www.w3.org/2000/01/rdf-schema#label>
"pref label"
^^
xsd:
string
.
<http://www.energistics.org/schemas/abstract>
a
<http://www.w3.org/2002/07/owl#Ontology>
;
<http://www.w3.org/2002/07/owl#imports>
<http://www.linkedmodel.org/schema/dtype>
,
<http://www.linkedmodel.org/schema/vaem>
;
<http://www.w3.org/2002/07/owl#versionInfo>
"Created with TopBraid Composer from the XML Schema http://www.energistics.org/schemas/abstract"
^^
xsd:
string
.
root global element should be declared to be a member of one of the above substitution groups."""
^^
xsd:
string
.
skos:
prefLabel
rdf:
type
owl:
AnnotationProperty
;
rdfs:
label
"pref label"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-(v1.1).ttl
View file @
13e0046
# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@prefix
ep-spin-lib-1
.1
:
<http://www.reportinghub.no/ep/spin/1.1/lib#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
smf:
<http://topbraid.org/sparqlmotionfunctions#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ep-spin-lib:
Function
rdf:
type
spin:
Function
;
rdfs:
label
"Function"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
.
ep-spin-lib:
buildURI
rdf:
type
spin:
Function
;
rdfs:
label
"build URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
resource
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
spin:
_arg2
]
]
;
sp:
variable
_:
b1
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
string
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg2
;
spl:
valueType
xsd:
string
]
.
ep-spin-lib:
buildWellBoreURI
rdf:
type
spin:
Function
;
rdfs:
label
"build well bore URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/L_9999/W_9999#"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b2
])
]
.
ep-spin-lib:
buildWellURI
rdf:
type
spin:
Function
;
rdfs:
label
"build well URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/L_9999#"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b3
])
]
.
ep-spin-lib:
normalizeString
rdf:
type
spin:
Function
;
rdfs:
label
"normalize string"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
encodeURL
;
sp:
arg1
_:
b6
]
;
sp:
variable
_:
b7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b7
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b8
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b9
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b10
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b11
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b12
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
smf:
upperCase
;
sp:
arg1
_:
b12
]
]
;
sp:
variable
_:
b4
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
string
]
.
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b5
sp:
varName
"s1"
^^
xsd:
string
.
_:
b6
sp:
varName
"s2"
^^
xsd:
string
.
_:
b7
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b8
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b9
sp:
varName
"t1"
^^
xsd:
string
.
_:
b10
sp:
varName
"t2"
^^
xsd:
string
.
_:
b11
sp:
varName
"t3"
^^
xsd:
string
.
_:
b12
sp:
varName
"t4"
^^
xsd:
string
.
_:
b4
sp:
varName
"normalizedStr"
^^
xsd:
string
.
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@prefix
ep-spin-lib-1
.1
:
<http://www.reportinghub.no/ep/spin/1.1/lib#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
smf:
<http://topbraid.org/sparqlmotionfunctions#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spif:
<http://spinrdf.org/spif#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ep-spin-lib:
Function
rdf:
type
spin:
Function
;
rdfs:
label
"Function"
^^
xsd:
string
;
rdfs:
subClassOf
spin:
Functions
;
spin:
abstract
"true"
^^
xsd:
boolean
.
ep-spin-lib:
buildURI
rdf:
type
spin:
Function
;
rdfs:
label
"build URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
spin:
_arg2
]
]
;
sp:
variable
_:
b1
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
string
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg2
;
spl:
valueType
xsd:
string
]
.
ep-spin-lib:
buildWellBoreURI
rdf:
type
spin:
Function
;
rdfs:
label
"build well bore URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/L_9999/W_9999#"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b2
])
]
.
ep-spin-lib:
buildWellURI
rdf:
type
spin:
Function
;
rdfs:
label
"build well URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/L_9999#"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b3
])
]
.
ep-spin-lib:
normalizeString
rdf:
type
spin:
Function
;
rdfs:
label
"normalize string"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b6
]
;
sp:
variable
_:
b7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b7
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b8
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b9
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b10
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b11
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b12
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b12
]
]
;
sp:
variable
_:
b4
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
string
]
.
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b5
sp:
varName
"s1"
^^
xsd:
string
.
_:
b6
sp:
varName
"s2"
^^
xsd:
string
.
_:
b7
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b8
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b9
sp:
varName
"t1"
^^
xsd:
string
.
_:
b10
sp:
varName
"t2"
^^
xsd:
string
.
_:
b11
sp:
varName
"t3"
^^
xsd:
string
.
_:
b12
sp:
varName
"t4"
^^
xsd:
string
.
_:
b4
sp:
varName
"normalizedStr"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-(v1.1).ttl.tbc
View file @
13e0046
# Saved by TopBraid on Mon Aug 01 14:26:29 PDT 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
composite:
index
"0"
^^
xsd:
int
]
.
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
composite:
index
"0"
^^
xsd:
int
]
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-(v1.1.1).ttl
View file @
13e0046
...
...
@@ -119,784 +119,781 @@ ddr:DrillReports
ddr:
Obj_drillReport
sxml:
element
"witsml:drillReport"
^^
xsd:
string
.
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 020 - Construct all other object properties - WIP"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
_:
b2
;
sp:
subject
_:
b3
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
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:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b5
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b6
;
ddr:
schemaLocation
rdfs:
domain
ddr:
Obj_drillReports
;
sxml:
attribute
"xsi:schemaLocation"
^^
xsd:
string
.
ddr:
uom
sxml:
attribute
"uom"
^^
xsd:
string
.
ddr:
version
rdfs:
domain
ddr:
DrillReports
;
sxml:
attribute
"version"
^^
xsd:
string
.
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:
type
owl:
Ontology
;
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
(
_:
b1
_:
b2
_:
b3
_:
b4
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
sp:
subject
_:
b
5
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
7
;
sp:
object
_:
b
6
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
sp:
subPath
<http://www.topbraid.org/2007/05/composite.owl#child>
]
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b8
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b7
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b2
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b8
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b8
]
;
sp:
variable
_:
b9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#has"
;
sp:
arg2
_:
b9
]
]
;
sp:
variable
_:
b3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b7
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b10
]
]
;
sp:
variable
_:
b2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/map/ddr#"
;
sp:
arg2
_:
b10
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b9
]
]
;
sp:
variable
_:
b1
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b11
_:
b12
_:
b13
_:
b14
)
;
sp:
where
([
sp:
object
_:
b14
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b13
]
[
sp:
object
_:
b13
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b12
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b12
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b12
]))
]
[
sp:
object
_:
b12
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b11
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
3 - Construct datatype string
values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
9
;
sp:
predicate
_:
b1
0
;
sp:
subject
_:
b1
1
rdfs:
comment
"STEP 00
2 - Construct datatype datetime
values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
15
;
sp:
predicate
_:
b1
6
;
sp:
subject
_:
b1
7
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
1
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
7
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
0
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
6
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b
15
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
2
;
sp:
subject
_:
b1
8
]
[
sp:
object
_:
b1
8
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
9
])
;
sp:
where
([
sp:
object
_:
b1
3
;
sp:
where
([
sp:
object
_:
b1
9
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b1
1
]
[
sp:
object
_:
b
14
;
sp:
subject
_:
b1
7
]
[
sp:
object
_:
b
20
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
9
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
9
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
14
sp:
arg1
_:
b
20
]
;
sp:
variable
_:
b
15
sp:
variable
_:
b
21
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
s
m
f:
buildURI
;
[
rdf:
type
s
pi
f:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
15
sp:
arg2
_:
b
21
]
]
;
sp:
variable
_:
b1
0
sp:
variable
_:
b1
6
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
0
]
[
sp:
object
_:
b
16
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b
22
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b1
3
sp:
subject
_:
b1
9
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
16
]
[
sp:
object
_:
b
9
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b
23
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b
16
]
[
sp:
object
_:
b
17
;
sp:
subject
_:
b
22
]
[
sp:
object
_:
b
24
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
1
sp:
subject
_:
b1
7
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
18
;
sp:
object
_:
b
25
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
17
]
[
sp:
object
_:
b
19
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b
26
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
18
sp:
subject
_:
b
25
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
19
]
[
sp:
object
_:
b2
0
;
sp:
subject
_:
b
26
]
[
sp:
object
_:
b2
7
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b
19
]
[
sp:
object
_:
b1
0
;
sp:
subject
_:
b
26
]
[
sp:
object
_:
b1
6
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
19
sp:
subject
_:
b
26
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
string
;
sp:
object
xsd:
dateTime
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b20
sp:
subject
_:
b27
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
dateTime
;
sp:
arg1
_:
b23
]
;
sp:
variable
_:
b15
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
6 - Construct Enumerated V
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
1
;
sp:
predicate
_:
b2
2
;
sp:
subject
_:
b
23
rdfs:
comment
"STEP 00
3 - Construct datatype string v
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
8
;
sp:
predicate
_:
b2
9
;
sp:
subject
_:
b
30
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b
23
;
sp:
subject
_:
b
31
]
[
sp:
object
_:
b
30
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b2
2
;
sp:
subject
_:
b
31
]
[
sp:
object
_:
b2
9
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b2
1
;
sp:
subject
_:
b
31
]
[
sp:
object
_:
b2
8
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b
24
;
sp:
subject
_:
b
31
]
[
sp:
object
_:
b
31
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
25
sp:
subject
_:
b
32
])
;
sp:
where
([
sp:
object
_:
b
25
;
sp:
where
([
sp:
object
_:
b
32
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
23
]
[
sp:
object
_:
b
26
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b
33
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
25
sp:
subject
_:
b
32
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
25
sp:
subject
_:
b
32
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b26
]
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b33
]
;
sp:
variable
_:
b
27
sp:
variable
_:
b
34
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
s
m
f:
buildURI
;
[
rdf:
type
s
pi
f:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#
has
"
;
sp:
arg2
_:
b
27
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
34
]
]
;
sp:
variable
_:
b2
2
]
[
sp:
object
owl:
Object
Property
;
sp:
variable
_:
b2
9
]
[
sp:
object
owl:
Datatype
Property
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b22
sp:
subject
_:
b29
]
[
sp:
object
_:
b35
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b32
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b35
]
[
sp:
object
_:
b28
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b35
]
[
sp:
object
_:
b36
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
23
sp:
subject
_:
b
30
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
29
;
sp:
object
_:
b
37
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
28
]
[
sp:
object
_:
b3
0
;
sp:
subject
_:
b
36
]
[
sp:
object
_:
b3
8
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
29
sp:
subject
_:
b
37
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b30
]
[
sp:
object
_:
b22
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b30
]
[
sp:
object
_:
b31
;
sp:
subject
_:
b38
]
[
sp:
object
_:
b39
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b30
sp:
subject
_:
b38
]
[
sp:
object
_:
b29
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b38
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
object
xsd:
string
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b31
]
[
sp:
object
_:
b32
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b25
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b33
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b31
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b33
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b21
sp:
subject
_:
b39
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 004 - Construct UOM values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
34
;
sp:
templates
([
sp:
object
_:
b
40
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
36
;
sp:
subject
_:
b
41
]
[
sp:
object
_:
b
42
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
37
;
sp:
subject
_:
b
41
]
[
sp:
object
_:
b
43
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
35
;
sp:
predicate
_:
b
38
;
sp:
subject
_:
b
39
sp:
subject
_:
b
41
]
[
sp:
object
_:
b
41
;
sp:
predicate
_:
b
44
;
sp:
subject
_:
b
45
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b
39
;
sp:
subject
_:
b4
6
]
[
sp:
object
_:
b
45
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b
38
;
sp:
subject
_:
b4
6
]
[
sp:
object
_:
b
44
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b
37
;
sp:
subject
_:
b4
6
]
[
sp:
object
_:
b
43
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
0
]
[
sp:
object
_:
b4
0
;
sp:
subject
_:
b4
6
]
[
sp:
object
_:
b4
6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b4
1
sp:
subject
_:
b4
7
])
;
sp:
where
([
sp:
object
_:
b4
1
;
sp:
where
([
sp:
object
_:
b4
7
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
39
]
[
sp:
object
_:
b4
2
;
sp:
subject
_:
b
45
]
[
sp:
object
_:
b4
8
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
1
]
[
sp:
object
_:
b
36
;
sp:
subject
_:
b4
7
]
[
sp:
object
_:
b
42
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b4
1
sp:
subject
_:
b4
7
]
[
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
1
sp:
subject
_:
b4
7
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b4
2
sp:
arg1
_:
b4
8
]
;
sp:
variable
_:
b4
3
sp:
variable
_:
b4
9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
s
m
f:
buildURI
;
[
rdf:
type
s
pi
f:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#has"
;
sp:
arg2
[
rdf:
type
s
m
f:
titleCase
;
sp:
arg1
_:
b4
3
sp:
arg2
[
rdf:
type
s
pi
f:
titleCase
;
sp:
arg1
_:
b4
9
]
]
]
;
sp:
variable
_:
b
38
sp:
variable
_:
b
44
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
38
]
[
sp:
object
_:
b
44
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
50
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
39
sp:
subject
_:
b
45
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
45
;
sp:
object
_:
b
51
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
46
;
sp:
subject
_:
b
50
]
[
sp:
object
_:
b
52
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
45
sp:
subject
_:
b
51
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
46
]
[
sp:
object
_:
b
34
;
sp:
subject
_:
b
52
]
[
sp:
object
_:
b
40
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b
46
]
[
sp:
object
_:
b
38
;
sp:
subject
_:
b
52
]
[
sp:
object
_:
b
44
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
46
]
[
sp:
object
_:
b
47
;
sp:
subject
_:
b
52
]
[
sp:
object
_:
b
53
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b4
1
sp:
subject
_:
b4
7
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
47
]
[
sp:
object
_:
b
48
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
54
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b
47
sp:
subject
_:
b
53
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b
48
sp:
arg1
_:
b
54
]
;
sp:
variable
_:
b
37
sp:
variable
_:
b
43
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
2 - Construct datatype datetime v
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
49
;
sp:
predicate
_:
b5
0
;
sp:
subject
_:
b5
1
rdfs:
comment
"STEP 00
6 - Construct Enumerated V
alues"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
55
;
sp:
predicate
_:
b5
6
;
sp:
subject
_:
b5
7
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
2
]
[
sp:
object
_:
b5
1
;
sp:
subject
_:
b5
8
]
[
sp:
object
_:
b5
7
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b5
2
]
[
sp:
object
_:
b5
0
;
sp:
subject
_:
b5
8
]
[
sp:
object
_:
b5
6
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b5
2
]
[
sp:
object
_:
b
49
;
sp:
subject
_:
b5
8
]
[
sp:
object
_:
b
55
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b5
2
]
[
sp:
object
_:
b5
2
;
sp:
subject
_:
b5
8
]
[
sp:
object
_:
b5
8
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b5
3
sp:
subject
_:
b5
9
])
;
sp:
where
([
sp:
object
_:
b5
3
;
sp:
where
([
sp:
object
_:
b5
9
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b5
1
]
[
sp:
object
_:
b
54
;
sp:
subject
_:
b5
7
]
[
sp:
object
_:
b
60
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
3
sp:
subject
_:
b5
9
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b5
3
sp:
subject
_:
b5
9
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b54
[
rdf:
type
spif:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b60
]
]
;
sp:
variable
_:
b
55
sp:
variable
_:
b
61
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
s
m
f:
buildURI
;
[
rdf:
type
s
pi
f:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
55
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#
has
"
;
sp:
arg2
_:
b
61
]
]
;
sp:
variable
_:
b50
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b50
]
[
sp:
object
_:
b56
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b53
]
[
sp:
object
sxml:
TextNode
;
sp:
variable
_:
b56
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b56
]
[
sp:
object
_:
b57
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b56
]
[
sp:
object
_:
b58
;
]
[
sp:
object
_:
b62
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
1
sp:
subject
_:
b5
7
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b
59
;
sp:
object
_:
b
63
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
58
]
[
sp:
object
_:
b6
0
;
sp:
subject
_:
b
62
]
[
sp:
object
_:
b6
4
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
59
sp:
subject
_:
b
63
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b60
]
[
sp:
object
_:
b61
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b60
]
[
sp:
object
_:
b50
;
sp:
subject
_:
b64
]
[
sp:
object
_:
b56
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b60
sp:
subject
_:
b64
]
[
sp:
object
_:
b65
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b64
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
dateTime
;
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
_:
b61
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
dateTime
;
sp:
arg1
_:
b57
]
;
sp:
variable
_:
b49
sp:
subject
_:
b65
]
[
sp:
object
_:
b66
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b59
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b66
]
[
sp:
object
_:
b67
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b66
]
[
sp:
object
_:
b65
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b55
]
[
sp:
object
_:
b67
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b55
])
]
;
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
_:
b68
;
sp:
predicate
_:
b69
;
sp:
subject
_:
b70
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b62
sp:
subject
_:
b71
]
[
sp:
object
_:
b70
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b71
]
[
sp:
object
_:
b69
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b71
]
[
sp:
object
_:
b68
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b71
]
[
sp:
object
_:
b71
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b68
])
;
sp:
where
([
sp:
object
ddr:
Cs_activity
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b62
])
]
.
ddr:
schemaLocation
rdfs:
domain
ddr:
Obj_drillReports
;
sxml:
attribute
"xsi:schemaLocation"
^^
xsd:
string
.
ddr:
uom
sxml:
attribute
"uom"
^^
xsd:
string
.
ddr:
version
rdfs:
domain
ddr:
DrillReports
;
sxml:
attribute
"version"
^^
xsd:
string
.
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:
type
owl:
Ontology
;
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
(
_:
b63
_:
b64
_:
b65
_:
b66
)
;
sp:
where
([
sp:
object
_:
b66
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b65
]
[
sp:
object
_:
b65
;
sp:
where
([
sp:
object
_:
b68
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b64
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b64
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b64
]))
]
[
sp:
object
_:
b64
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b63
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b67
_:
b68
_:
b69
_:
b70
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
subject
_:
b70
]
[
sp:
object
_:
b72
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b71
sp:
subject
_:
b68
]
[
sp:
object
_:
b73
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b70
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b7
2
;
sp:
object
_:
b7
4
;
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
_:
b71
]
[
sp:
object
_:
b73
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b71
]
[
sp:
object
_:
b70
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b72
]
[
sp:
object
_:
b74
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b72
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b74
]
;
sp:
variable
_:
b75
]
[
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
_:
b75
]
]
;
sp:
variable
_:
b69
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b73
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b76
]
[
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
_:
b76
]
]
;
sp:
variable
_:
b68
]
[
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
_:
b76
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b75
]
sp:
subPath
rdfs:
subClassOf
]
;
sp:
variable
_:
b67
sp:
subject
_:
b73
]
[
sp:
object
_:
b75
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b74
]
[
sp:
object
owl:
Restriction
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b75
]
[
sp:
object
_:
b69
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b75
]
[
sp:
object
_:
b72
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b75
])
]
;
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>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b76
])
;
sp:
where
([
sp:
object
ddr:
Cs_activity
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b76
])
]
.
_:
b66
sp:
varName
"e"
^^
xsd:
string
.
_:
b65
sp:
varName
"s"
^^
xsd:
string
.
_:
b64
sp:
varName
"p"
^^
xsd:
string
.
_:
b63
sp:
varName
"pp"
^^
xsd:
string
.
_:
b76
sp:
varName
"tcname"
^^
xsd:
string
.
_:
b75
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b74
sp:
varName
"pname"
^^
xsd:
string
.
_:
b73
sp:
varName
"name"
^^
xsd:
string
.
_:
b72
sp:
varName
"c"
^^
xsd:
string
.
_:
b71
sp:
varName
"s"
^^
xsd:
string
.
_:
b27
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b
70
sp:
varName
"
mre
"
^^
xsd:
string
.
_:
b
26
sp:
varName
"
valuesRestriction
"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
ddrPU
"
^^
xsd:
string
.
_:
b
25
sp:
varName
"
instClass
"
^^
xsd:
string
.
_:
b
68
sp:
varName
"
ddrCU
"
^^
xsd:
string
.
_:
b
24
sp:
varName
"
instType
"
^^
xsd:
string
.
_:
b
67
sp:
varName
"
ddrCPU
"
^^
xsd:
string
.
_:
b
23
sp:
varName
"
text
"
^^
xsd:
string
.
_:
b8
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b22
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b7
sp:
varName
"instClass"
^^
xsd:
string
.
_:
b21
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b6
sp:
varName
"instType"
^^
xsd:
string
.
_:
b20
sp:
varName
"childType"
^^
xsd:
string
.
_:
b5
sp:
varName
"childType"
^^
xsd:
string
.
_:
b19
sp:
varName
"child"
^^
xsd:
string
.
_:
b3
sp:
varName
"inst"
^^
xsd:
string
.
_:
b17
sp:
varName
"inst"
^^
xsd:
string
.
_:
b2
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b16
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b1
sp:
varName
"child"
^^
xsd:
string
.
_:
b15
sp:
varName
"dateTime"
^^
xsd:
string
.
_:
b
20
_:
b
39
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b
19
_:
b
38
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b
18
_:
b
37
sp:
varName
"instClass"
^^
xsd:
string
.
_:
b
17
_:
b
36
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
16
_:
b
35
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
15
_:
b
34
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b
14
_:
b
33
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
13
_:
b
32
sp:
varName
"child"
^^
xsd:
string
.
_:
b
11
_:
b
30
sp:
varName
"inst"
^^
xsd:
string
.
_:
b
10
_:
b
29
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b9
sp:
varName
"text"
^^
xsd:
string
.
_:
b28
sp:
varName
"text"
^^
xsd:
string
.
_:
b
33
_:
b
54
sp:
varName
"text"
^^
xsd:
string
.
_:
b
32
_:
b
53
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b31
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b30
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b52
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b
29
_:
b
51
sp:
varName
"instClass"
^^
xsd:
string
.
_:
b
28
_:
b
50
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
27
_:
b
49
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b
26
_:
b
48
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
25
_:
b
47
sp:
varName
"child"
^^
xsd:
string
.
_:
b
23
_:
b
45
sp:
varName
"inst"
^^
xsd:
string
.
_:
b
22
_:
b
44
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b
21
sp:
varName
"
enumeratedV
alue"
^^
xsd:
string
.
_:
b
43
sp:
varName
"
v
alue"
^^
xsd:
string
.
_:
b48
_:
b42
sp:
varName
"uom"
^^
xsd:
string
.
_:
b40
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b67
sp:
varName
"text"
^^
xsd:
string
.
_:
b
47
_:
b
66
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
46
sp:
varName
"
allValuesRestriction
"
^^
xsd:
string
.
_:
b
65
sp:
varName
"
rangeU
"
^^
xsd:
string
.
_:
b45
_:
b64
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b63
sp:
varName
"instClass"
^^
xsd:
string
.
_:
b
44
_:
b
62
sp:
varName
"instType"
^^
xsd:
string
.
_:
b
43
_:
b
61
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b
42
_:
b
60
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
41
_:
b
59
sp:
varName
"child"
^^
xsd:
string
.
_:
b
39
_:
b
57
sp:
varName
"inst"
^^
xsd:
string
.
_:
b
38
_:
b
56
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b37
sp:
varName
"value"
^^
xsd:
string
.
_:
b36
sp:
varName
"uom"
^^
xsd:
string
.
_:
b34
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b61
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b55
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b
60
_:
b
75
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b
59
_:
b
74
sp:
varName
"instClass"
^^
xsd:
string
.
_:
b
58
_:
b
73
sp:
varName
"instType"
^^
xsd:
string
.
_:
b57
sp:
varName
"text"
^^
xsd:
string
.
_:
b56
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b72
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
55
sp:
varName
"
childLocalName
"
^^
xsd:
string
.
_:
b
70
sp:
varName
"
inst
"
^^
xsd:
string
.
_:
b
54
sp:
varName
"
childType
"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
formalProperty
"
^^
xsd:
string
.
_:
b
53
_:
b
68
sp:
varName
"child"
^^
xsd:
string
.
_:
b
51
sp:
varName
"
inst
"
^^
xsd:
string
.
_:
b
76
sp:
varName
"
activity
"
^^
xsd:
string
.
_:
b
5
0
sp:
varName
"
dtpnameU
"
^^
xsd:
string
.
_:
b
1
0
sp:
varName
"
tcname
"
^^
xsd:
string
.
_:
b49
sp:
varName
"dateTime"
^^
xsd:
string
.
_:
b9
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b62
sp:
varName
"activity"
^^
xsd:
string
.
_:
b8
sp:
varName
"pname"
^^
xsd:
string
.
_:
b7
sp:
varName
"name"
^^
xsd:
string
.
_:
b6
sp:
varName
"c"
^^
xsd:
string
.
_:
b5
sp:
varName
"s"
^^
xsd:
string
.
_:
b4
sp:
varName
"mre"
^^
xsd:
string
.
_:
b3
sp:
varName
"ddrPU"
^^
xsd:
string
.
_:
b2
sp:
varName
"ddrCU"
^^
xsd:
string
.
_:
b1
sp:
varName
"ddrCPU"
^^
xsd:
string
.
_:
b14
sp:
varName
"e"
^^
xsd:
string
.
_:
b13
sp:
varName
"s"
^^
xsd:
string
.
_:
b12
sp:
varName
"p"
^^
xsd:
string
.
_:
b11
sp:
varName
"pp"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_
normalization
-(v1.1.1).ttl.tbc
→
www.reportinghub.no/ep/transform/TRANSFORM_
ddr
-(v1.1.1).ttl.tbc
View file @
13e0046
# Saved by TopBraid on Mon Aug 01 13:35:23 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/normalization
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
composite:
index
"0"
^^
xsd:
int
]
.
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass"
;
composite:
index
"0"
^^
xsd:
int
]
;
inference:
completeMode
"true"
^^
xsd:
boolean
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-(v1.1.1).ttl
View file @
13e0046
# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin
@prefix
ddr-normalization:
<http://www.reportinghub.no/ep/transform/ddr/normalization#>
.
@prefix
ddr-normalization-1
.1
:
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#>
.
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@prefix
normalization:
<http://www.reportinghub.no/ep/transform/normalization#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 101 Make Well and Well Bore Instances"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b4
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#nameWellbore>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#nameWell>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b4
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellURI
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b2
]
;
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreURI
;
sp:
arg1
_:
b6
]
;
sp:
variable
_:
b1
])
]
.
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr>
,
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
_:
b2
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b4
sp:
varName
"nameWell"
^^
xsd:
string
.
_:
b5
sp:
varName
"normalizedWellName"
^^
xsd:
string
.
_:
b3
sp:
varName
"normalizedWellNameU"
^^
xsd:
string
.
_:
b6
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b1
sp:
varName
"normalizedWellBoreNameU"
^^
xsd:
string
.
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix
ddr-normalization:
<http://www.reportinghub.no/ep/transform/ddr/normalization#>
.
@prefix
ddr-normalization-1
.1
:
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#>
.
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/lib#>
.
@prefix
normalization:
<http://www.reportinghub.no/ep/transform/normalization#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
rhspin:
<http://www.reportinghub.no/spin/rh#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 101 Make Well and Well Bore Instances"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#Well>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b4
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#nameWellbore>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#nameWell>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellByName
;
sp:
arg1
_:
b4
]
;
sp:
variable
_:
b3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
wellBoreByName
;
sp:
arg1
_:
b2
]
;
sp:
variable
_:
b1
])
]
.
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/transform/1.1/ddr>
,
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
_:
b4
sp:
varName
"nameWell"
^^
xsd:
string
.
_:
b3
sp:
varName
"well"
^^
xsd:
string
.
_:
b2
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b1
sp:
varName
"wellBore"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-(v1.1.1).ttl.tbc
View file @
13e0046
# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass"
;
composite:
index
"0"
^^
xsd:
int
]
.
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
@prefix
forms:
<http://www.topbraid.org/2007/01/forms.owl#>
.
@prefix
inference:
<http://www.topbraid.org/2007/06/inference.owl#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
visual:
<http://topbraid.org/visual#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
[]
rdf:
type
inference:
Configuration
;
composite:
child
[
rdf:
type
<http://spinrdf.org/spin#TopSPIN>
;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass"
;
composite:
index
"0"
^^
xsd:
int
]
.
...
...
www.reportinghub.no/spin/SPIN-RH-v1.0.spin.ttl
View file @
13e0046
# baseURI: http://www.reportinghub.no/spin/rh
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/spin/spinmapl
# imports: http://www.reportinghub.no/1.1/schema/npd
# imports: http://spinrdf.org/spin
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
...
...
@@ -42,7 +42,7 @@
<http://www.reportinghub.no/spin/rh>
rdf:
type
owl:
Ontology
;
rdfs:
comment
"A collection of SPIN functions and templates to support working with the ReportingHub schemas."
^^
xsd:
string
;
owl:
imports
<http://
topbraid.org/spin/spinmapl>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/1.1/schema/npd
>
;
owl:
imports
<http://
www.reportinghub.no/1.1/schema/npd>
,
<http://spinrdf.org/spin>
,
<http://topbraid.org/spin/spinmapl
>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
rhspin:
GetWellBoresOfWell
...
...
@@ -82,7 +82,7 @@ rhspin:baaById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/BAA-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/BAA-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -104,7 +104,7 @@ rhspin:companyById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Company-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Company-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -126,7 +126,7 @@ rhspin:discoveryById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Discovery-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Discovery-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -148,7 +148,7 @@ rhspin:facilityById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Facility-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Facility-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -170,7 +170,7 @@ rhspin:fieldById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Field-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Field-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -192,7 +192,7 @@ rhspin:licenceById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Licence-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Licence-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -207,6 +207,91 @@ rhspin:licenceById
]
;
spin:
returnType
<http://www.reportinghub.no/schema/npd#Licence>
.
rhspin:
normalizeString
rdf:
type
spin:
Function
;
rdfs:
comment
"Takes a raw string and \"normalizes\" it, replacing special characters so that they can be used in URIs."
^^
xsd:
string
;
rdfs:
label
"normalize string"
^^
xsd:
string
;
rdfs:
subClassOf
spl:
StringFunctions
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
trim
;
sp:
arg1
_:
b4
]
;
sp:
variable
_:
b5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
encodeURL
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b6
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b7
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b8
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b9
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
_:
b10
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
spif:
upperCase
;
sp:
arg1
_:
b11
]
]
;
sp:
variable
_:
b3
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
string
]
;
spin:
returnType
xsd:
string
.
rhspin:
parentCompanyByName
rdf:
type
spin:
Function
;
rdfs:
comment
"Gets the URI resource of a parent company based on its NPD name."
^^
xsd:
string
;
...
...
@@ -216,7 +301,7 @@ rhspin:parentCompanyByName
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/ParentCompany-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/ParentCompany-"
;
sp:
arg2
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
[
sp:
varName
"name"
^^
xsd:
string
]
;
...
...
@@ -243,7 +328,7 @@ rhspin:tufById
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/TUF-"
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/TUF-"
;
sp:
arg2
[
sp:
varName
"id"
^^
xsd:
string
]
]
...
...
@@ -273,16 +358,10 @@ rhspin:wellBoreByName
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/data/npd/WellBore-"
;
sp:
arg2
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
;
sp:
arg2
" "
;
sp:
arg3
"_"
]
;
sp:
arg2
"/"
;
sp:
arg3
"__"
sp:
arg1
"https://www.reportinghub.no/ep/data/WellBore-"
;
sp:
arg2
[
rdf:
type
rhspin:
normalizeString
;
sp:
arg1
[
sp:
varName
"wellBoreName"
^^
xsd:
string
]
]
]
])
;
...
...
@@ -305,12 +384,10 @@ rhspin:wellByName
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
rdf:
type
sp:
iri
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"https://www.reportinghub.no/
data/npd
/Well-"
;
sp:
arg2
[
rdf:
type
spif:
replaceAll
;
sp:
arg1
"https://www.reportinghub.no/
ep/data
/Well-"
;
sp:
arg2
[
rdf:
type
rhspin:
normalizeString
;
sp:
arg1
[
sp:
varName
"wellName"
^^
xsd:
string
]
;
sp:
arg2
"/"
;
sp:
arg3
"__"
]
]
]
])
;
...
...
@@ -324,6 +401,26 @@ rhspin:wellByName
]
;
spin:
returnType
<http://www.reportinghub.no/schema/npd#Well>
.
_:
b2
sp:
varName
"wellBore"
^^
xsd:
string
.
_:
b3
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b4
sp:
varName
"s1"
^^
xsd:
string
.
_:
b5
sp:
varName
"s2"
^^
xsd:
string
.
_:
b6
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b7
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b8
sp:
varName
"t1"
^^
xsd:
string
.
_:
b9
sp:
varName
"t2"
^^
xsd:
string
.
_:
b10
sp:
varName
"t3"
^^
xsd:
string
.
_:
b11
sp:
varName
"t4"
^^
xsd:
string
.
_:
b1
sp:
varName
"wellBoreName"
^^
xsd:
string
.
_:
b2
sp:
varName
"wellBore"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment