Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2011-09-01 20:25:49 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6aac63119cd85fb7142e1b7ee98cb38f33d00be4
6aac6311
1 parent
b6563c2e
Set spin:thisUnbound to true at STEP 18 and 20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
960 additions
and
938 deletions
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
View file @
6aac631
# Saved by TopBraid on Fri Aug 26 16:10:49 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
@prefix
NPD_110412124707:
<file:///www.reportinghub.no/input/NPD_110412124707.xml#>
.
@prefix
NPD_1104121247071:
<file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#>
.
@prefix
NPD_1104121247072:
<file:///EPIM-Ontologies/www.reportinghub.no/examples/xml/NPD_110412124707.xml#>
.
@prefix
TemplateTest:
<file:///www.reportinghub.no/examples/xml/TemplateTest.xml#>
.
@prefix
TemplateTest1:
<file:///EPIM-Ontologies/www.reportinghub.no/examples/xml/TemplateTest.xml#>
.
@prefix
afn:
<http://jena.hpl.hp.com/ARQ/function#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
ddr:
<http://www.reportinghub.no/ep/schema/ddr#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
p20020110:
<file:///EPIM/www.reportinghub.no/examples/xml/G3%20%20T2%20020110.xml#>
.
@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
sxml:
<http://topbraid.org/sxml#>
.
@prefix
wellAndWellBoreAlias:
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
ddr:
Cs_activity
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
spin:
_this
])
;
sp:
where
()
]
;
sxml:
element
"witsml:activity"
^^
xsd:
string
.
ddr:
Cs_alias
sxml:
element
"witsml:alias"
,
"witsml:rigAlias"
^^
xsd:
string
.
ddr:
Cs_bitRecord
sxml:
element
"witsml:bitRecord"
.
ddr:
Cs_documentAudit
sxml:
element
"witsml:documentAudit"
.
ddr:
Cs_documentEvent
sxml:
element
"witsml:documentEvent"
.
ddr:
Cs_documentFileCreation
sxml:
element
"witsml:documentFileCreation"
.
ddr:
Cs_documentInfo
sxml:
element
"witsml:documentInfo"
.
ddr:
Cs_documentSecurityInfo
sxml:
element
"witsml:documentSecurityInfo"
.
ddr:
Cs_drillReportControlIncidentInfo
sxml:
element
"witsml:controlIncidentInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportCoreInfo
sxml:
element
"witsml:coreInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportEquipFailureInfo
sxml:
element
"witsml:equipFailureInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportFormTestInfo
sxml:
element
"witsml:formTestInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportGasReadingInfo
sxml:
element
"witsml:gasReadingInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportLithShowInfo
sxml:
element
"witsml:lithShowInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportLogInfo
sxml:
element
"witsml:logInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportPerfInfo
sxml:
element
"witsml:perfInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportPorePressure
sxml:
element
"witsml:porePressure"
^^
xsd:
string
.
ddr:
Cs_drillReportStatusInfo
sxml:
element
"witsml:statusInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportStratInfo
sxml:
element
"witsml:stratInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportSurveyStation
sxml:
element
"witsml:surveyStation"
^^
xsd:
string
.
ddr:
Cs_drillReportWellTestInfo
sxml:
element
"witsml:wellTestInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportWellboreInfo
sxml:
element
"witsml:wellboreInfo"
^^
xsd:
string
.
ddr:
Cs_fluid
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 031 - Construct ep-activity fluid statements"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/activity#FluidActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
])
;
sp:
where
()
]
;
sxml:
element
"witsml:fluid"
.
ddr:
Cs_geodeticModel
sxml:
element
"witsml:geodeticModel"
.
ddr:
Cs_localCRS
sxml:
element
"witsml:localCRS"
.
ddr:
Cs_location
sxml:
element
"witsml:location"
.
ddr:
Cs_projectionx
sxml:
element
"witsml:projectionx"
.
ddr:
Cs_refWellWellbore
sxml:
element
"witsml:refWellWellbore"
.
ddr:
Cs_refWellWellboreRig
sxml:
element
"witsml:refWellWellboreRig"
.
ddr:
Cs_wellAlias
sxml:
element
"witsml:wellAlias"
^^
xsd:
string
,
"witsml:wellboreAlias"
^^
xsd:
string
.
ddr:
Cs_wellCRS
sxml:
element
"witsml:wellCRS"
.
ddr:
Cs_wellDatum
sxml:
element
"witsml:wellDatum"
.
ddr:
DrillReports
sxml:
element
"witsml:drillReports"
^^
xsd:
string
.
ddr:
Obj_drillReport
sxml:
element
"witsml:drillReport"
^^
xsd:
string
.
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 009 - Construct all datatype values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
_:
b2
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b2
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b1
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b4
])
;
sp:
where
([
sp:
object
_:
b4
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b5
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
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
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b6
]
[
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
]
]
;
sp:
variable
_:
b2
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b2
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b8
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b7
]
[
sp:
object
rdfs:
Datatype
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b9
;
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:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b4
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b11
;
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
;
sp:
arg1
_:
b11
]
;
sp:
variable
_:
b1
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 020 - Construct all other object properties"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b13
;
sp:
predicate
_:
b14
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b15
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b15
]
[
sp:
object
_:
b14
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b15
]
[
sp:
object
_:
b13
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b15
]
[
sp:
object
_:
b15
;
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:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b13
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b13
])
]
[
sp:
object
_:
b18
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b17
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b18
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 018 - Construct all object properties that need to match on tags"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b19
;
sp:
predicate
_:
b20
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b21
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b20
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b19
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b21
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b19
])
;
sp:
where
([
sp:
object
_:
b22
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b20
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b23
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b20
]
;
sp:
variable
_:
b24
]
[
sp:
object
_:
b22
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b19
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b19
])
]
[
sp:
object
_:
b25
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b19
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b25
;
sp:
arg2
"(.*):(.*)"
;
sp:
arg3
"$2"
]
;
sp:
variable
_:
b26
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
_:
b26
;
sp:
arg2
_:
b24
]
]
[
sp:
object
_:
b27
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b23
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b27
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 006 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b28
;
sp:
predicate
_:
b29
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b30
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b30
]
[
sp:
object
_:
b29
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b30
]
[
sp:
object
_:
b28
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b30
]
[
sp:
object
_:
b30
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b31
])
;
sp:
where
([
sp:
object
_:
b31
;
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:
predicate
ddr:
uom
;
sp:
subject
_:
b31
])
]
[
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
]
]
;
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:
subject
_:
b34
]
[
sp:
object
_:
b36
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
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
_:
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
])
]
;
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
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b44
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b44
]
[
sp:
object
_:
b43
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b44
]
[
sp:
object
_:
b42
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b44
]
[
sp:
object
_:
b44
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b45
])
;
sp:
where
([
sp:
object
_:
b45
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b46
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b45
]
[
sp:
object
_:
b41
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b45
]
[
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
_:
b45
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b46
]
;
sp:
variable
_:
b47
]
[
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
_:
b47
]
]
;
sp:
variable
_:
b43
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b43
]
[
sp:
object
_:
b43
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b48
]
[
sp:
object
_:
b39
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b48
]
[
sp:
object
_:
b49
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b48
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b49
]
[
sp:
object
_:
b50
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b45
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b50
]
[
sp:
object
_:
b51
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b50
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b51
]
;
sp:
variable
_:
b42
])
]
.
ddr:
TimestampedCommentString
sxml:
element
"witsml:extendedReport"
^^
xsd:
string
.
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://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:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b61
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b62
;
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
_:
b61
]
[
sp:
object
_:
b63
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b61
]
[
sp:
object
_:
b60
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b62
]
[
sp:
object
_:
b64
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b62
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b64
]
;
sp:
variable
_:
b65
]
[
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
_:
b65
]
]
;
sp:
variable
_:
b59
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b63
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b66
]
[
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
_:
b66
]
]
;
sp:
variable
_:
b58
]
[
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
_:
b66
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b65
]
]
;
sp:
variable
_:
b57
])
]
;
spin:
update
[
rdf:
type
sp:
Modify
;
sp:
deletePattern
([
sp:
object
_:
b67
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b68
])
;
sp:
insertPattern
([
sp:
object
_:
b69
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b68
])
;
sp:
where
([
sp:
object
_:
b68
;
sp:
predicate
owl:
onProperty
;
sp:
subject
[
sp:
varName
"r"
^^
xsd:
string
]
]
[
sp:
object
_:
b67
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b68
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
fn:
starts-with
;
sp:
arg1
_:
b67
;
sp:
arg2
"has"
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b67
;
sp:
arg2
"has(.*)"
;
sp:
arg3
"$1"
]
]
;
sp:
variable
_:
b69
])
]
.
_:
b39
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b41
sp:
varName
"uom"
^^
xsd:
string
.
_:
b42
sp:
varName
"value"
^^
xsd:
string
.
_:
b43
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b45
sp:
varName
"child"
^^
xsd:
string
.
_:
b46
sp:
varName
"childType"
^^
xsd:
string
.
_:
b47
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b48
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b49
sp:
varName
"instType"
^^
xsd:
string
.
_:
b50
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b51
sp:
varName
"text"
^^
xsd:
string
.
_:
b28
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b29
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b31
sp:
varName
"child"
^^
xsd:
string
.
_:
b32
sp:
varName
"childType"
^^
xsd:
string
.
_:
b33
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b34
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b35
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b36
sp:
varName
"instType"
^^
xsd:
string
.
_:
b37
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b38
sp:
varName
"text"
^^
xsd:
string
.
_:
b19
sp:
varName
"child"
^^
xsd:
string
.
_:
b20
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b22
sp:
varName
"childType"
^^
xsd:
string
.
_:
b23
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b24
sp:
varName
"propertyName"
^^
xsd:
string
.
_:
b25
sp:
varName
"xmlTag"
^^
xsd:
string
.
_:
b26
sp:
varName
"tagName"
^^
xsd:
string
.
_:
b27
sp:
varName
"instType"
^^
xsd:
string
.
_:
b13
sp:
varName
"child"
^^
xsd:
string
.
_:
b14
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b16
sp:
varName
"childType"
^^
xsd:
string
.
_:
b17
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b18
sp:
varName
"instType"
^^
xsd:
string
.
_:
b1
sp:
varName
"value"
^^
xsd:
string
.
_:
b2
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b4
sp:
varName
"child"
^^
xsd:
string
.
_:
b5
sp:
varName
"childType"
^^
xsd:
string
.
_:
b6
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b7
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b8
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b9
sp:
varName
"someXSDtype"
^^
xsd:
string
.
_:
b10
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b11
sp:
varName
"text"
^^
xsd:
string
.
_:
b12
sp:
varName
"instType"
^^
xsd:
string
.
_:
b57
sp:
varName
"ddrCPU"
^^
xsd:
string
.
_:
b58
sp:
varName
"ddrCU"
^^
xsd:
string
.
_:
b59
sp:
varName
"ddrPU"
^^
xsd:
string
.
_:
b60
sp:
varName
"mre"
^^
xsd:
string
.
_:
b61
sp:
varName
"s"
^^
xsd:
string
.
_:
b62
sp:
varName
"c"
^^
xsd:
string
.
_:
b63
sp:
varName
"name"
^^
xsd:
string
.
_:
b64
sp:
varName
"pname"
^^
xsd:
string
.
_:
b65
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b66
sp:
varName
"tcname"
^^
xsd:
string
.
_:
b53
sp:
varName
"pp"
^^
xsd:
string
.
_:
b54
sp:
varName
"p"
^^
xsd:
string
.
_:
b55
sp:
varName
"s"
^^
xsd:
string
.
_:
b56
sp:
varName
"e"
^^
xsd:
string
.
_:
b52
sp:
varName
"c"
^^
xsd:
string
.
_:
b67
sp:
varName
"oldLabel"
^^
xsd:
string
.
_:
b68
sp:
varName
"p"
^^
xsd:
string
.
_:
b69
sp:
varName
"newLabel"
^^
xsd:
string
.
[]
sxml:
tag
"witsml:porePressure"
^^
xsd:
string
.
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix
NPD_110412124707:
<file:///www.reportinghub.no/input/NPD_110412124707.xml#>
.
@prefix
NPD_1104121247071:
<file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#>
.
@prefix
NPD_1104121247072:
<file:///EPIM-Ontologies/www.reportinghub.no/examples/xml/NPD_110412124707.xml#>
.
@prefix
TemplateTest:
<file:///www.reportinghub.no/examples/xml/TemplateTest.xml#>
.
@prefix
TemplateTest1:
<file:///EPIM-Ontologies/www.reportinghub.no/examples/xml/TemplateTest.xml#>
.
@prefix
afn:
<http://jena.hpl.hp.com/ARQ/function#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
ddr:
<http://www.reportinghub.no/ep/schema/ddr#>
.
@prefix
fn:
<http://www.w3.org/2005/xpath-functions#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
p20020110:
<file:///EPIM/www.reportinghub.no/examples/xml/G3%20%20T2%20020110.xml#>
.
@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
sxml:
<http://topbraid.org/sxml#>
.
@prefix
wellAndWellBoreAlias:
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
ddr:
Cs_activity
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
spin:
_this
])
;
sp:
where
()
]
;
sxml:
element
"witsml:activity"
^^
xsd:
string
.
ddr:
Cs_alias
sxml:
element
"witsml:alias"
,
"witsml:rigAlias"
^^
xsd:
string
.
ddr:
Cs_bitRecord
sxml:
element
"witsml:bitRecord"
.
ddr:
Cs_documentAudit
sxml:
element
"witsml:documentAudit"
.
ddr:
Cs_documentEvent
sxml:
element
"witsml:documentEvent"
.
ddr:
Cs_documentFileCreation
sxml:
element
"witsml:documentFileCreation"
.
ddr:
Cs_documentInfo
sxml:
element
"witsml:documentInfo"
.
ddr:
Cs_documentSecurityInfo
sxml:
element
"witsml:documentSecurityInfo"
.
ddr:
Cs_drillReportControlIncidentInfo
sxml:
element
"witsml:controlIncidentInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportCoreInfo
sxml:
element
"witsml:coreInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportEquipFailureInfo
sxml:
element
"witsml:equipFailureInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportFormTestInfo
sxml:
element
"witsml:formTestInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportGasReadingInfo
sxml:
element
"witsml:gasReadingInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportLithShowInfo
sxml:
element
"witsml:lithShowInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportLogInfo
sxml:
element
"witsml:logInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportPerfInfo
sxml:
element
"witsml:perfInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportPorePressure
sxml:
element
"witsml:porePressure"
^^
xsd:
string
.
ddr:
Cs_drillReportStatusInfo
sxml:
element
"witsml:statusInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportStratInfo
sxml:
element
"witsml:stratInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportSurveyStation
sxml:
element
"witsml:surveyStation"
^^
xsd:
string
.
ddr:
Cs_drillReportWellTestInfo
sxml:
element
"witsml:wellTestInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportWellboreInfo
sxml:
element
"witsml:wellboreInfo"
^^
xsd:
string
.
ddr:
Cs_fluid
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 031 - Construct ep-activity fluid statements"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/activity#FluidActivity>
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
])
;
sp:
where
()
]
;
sxml:
element
"witsml:fluid"
.
ddr:
Cs_geodeticModel
sxml:
element
"witsml:geodeticModel"
.
ddr:
Cs_localCRS
sxml:
element
"witsml:localCRS"
.
ddr:
Cs_location
sxml:
element
"witsml:location"
.
ddr:
Cs_projectionx
sxml:
element
"witsml:projectionx"
.
ddr:
Cs_refWellWellbore
sxml:
element
"witsml:refWellWellbore"
.
ddr:
Cs_refWellWellboreRig
sxml:
element
"witsml:refWellWellboreRig"
.
ddr:
Cs_wellAlias
sxml:
element
"witsml:wellAlias"
^^
xsd:
string
,
"witsml:wellboreAlias"
^^
xsd:
string
.
ddr:
Cs_wellCRS
sxml:
element
"witsml:wellCRS"
.
ddr:
Cs_wellDatum
sxml:
element
"witsml:wellDatum"
.
ddr:
DrillReports
sxml:
element
"witsml:drillReports"
^^
xsd:
string
.
ddr:
Obj_drillReport
sxml:
element
"witsml:drillReport"
^^
xsd:
string
.
ddr:
Thing
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
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"childType"
^^
xsd:
string
]
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"childType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"child"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
[
sp:
varName
"child"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
;
sp:
predicate
owl:
onProperty
;
sp:
subject
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
[
sp:
varName
"formalProperty"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"propertyName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
regex
;
sp:
arg1
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
arg2
"(.*):(.*)"
;
sp:
arg3
"$2"
]
;
sp:
variable
[
sp:
varName
"tagName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
sp:
varName
"tagName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"propertyName"
^^
xsd:
string
]
]
]
[
sp:
object
[
sp:
varName
"instType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
[
sp:
varName
"valuesRestriction"
^^
xsd:
string
]
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
[
sp:
varName
"instType"
^^
xsd:
string
]
])
;
spin:
thisUnbound
"true"
^^
xsd:
boolean
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 009 - Construct all datatype values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
;
sp:
predicate
_:
b3
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b3
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b2
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b5
])
;
sp:
where
([
sp:
object
_:
b5
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b6
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b5
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b6
]
;
sp:
variable
_:
b7
]
[
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
_:
b7
]
]
;
sp:
variable
_:
b3
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b3
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b9
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b8
]
[
sp:
object
rdfs:
Datatype
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b9
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b10
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b9
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
eq
;
sp:
arg1
[
rdf:
type
afn:
namespace
;
sp:
arg1
_:
b10
]
;
sp:
arg2
"http://www.w3.org/2001/XMLSchema#"
]
]
[
sp:
object
_:
b11
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b5
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b12
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b13
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b8
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b13
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
cast
;
sp:
arg1
_:
b12
]
;
sp:
variable
_:
b2
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 020 - Construct all other object properties"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b14
;
sp:
predicate
_:
b15
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b16
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b16
]
[
sp:
object
_:
b15
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b16
]
[
sp:
object
_:
b14
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b16
]
[
sp:
object
_:
b16
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b14
])
;
sp:
where
([
sp:
object
_:
b17
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b18
]
[
sp:
object
_:
b15
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b18
]
[
sp:
object
_:
b17
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b14
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"aNode"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b14
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"xmlTag"
^^
xsd:
string
]
;
sp:
predicate
sxml:
tag
;
sp:
subject
_:
b14
])
]
[
sp:
object
_:
b19
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b18
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b19
])
;
spin:
thisUnbound
"true"
^^
xsd:
boolean
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 006 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b20
;
sp:
predicate
_:
b21
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b22
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b22
]
[
sp:
object
_:
b21
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b22
]
[
sp:
object
_:
b20
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b22
]
[
sp:
object
_:
b22
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b23
])
;
sp:
where
([
sp:
object
_:
b23
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b24
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b23
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b23
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b24
]
]
;
sp:
variable
_:
b25
]
[
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
_:
b25
]
]
;
sp:
variable
_:
b21
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b21
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b26
]
[
sp:
object
_:
b27
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b26
]
[
sp:
object
_:
b28
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b26
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b28
]
[
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
_:
b27
]
[
sp:
object
_:
b29
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b23
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b30
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b27
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b30
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b20
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 004 - Construct UOM values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b31
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b33
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b34
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b32
;
sp:
predicate
_:
b35
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b36
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b36
]
[
sp:
object
_:
b35
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b36
]
[
sp:
object
_:
b34
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b36
]
[
sp:
object
_:
b36
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b37
])
;
sp:
where
([
sp:
object
_:
b37
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b38
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b37
]
[
sp:
object
_:
b33
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b37
]
[
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
_:
b37
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b38
]
;
sp:
variable
_:
b39
]
[
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
_:
b39
]
]
;
sp:
variable
_:
b35
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b35
]
[
sp:
object
_:
b35
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b40
]
[
sp:
object
_:
b31
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b40
]
[
sp:
object
_:
b41
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b40
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b41
]
[
sp:
object
_:
b42
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b37
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b42
]
[
sp:
object
_:
b43
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b42
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b43
]
;
sp:
variable
_:
b34
])
]
.
ddr:
TimestampedCommentString
sxml:
element
"witsml:extendedReport"
^^
xsd:
string
.
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.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
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
_:
b44
]
[
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
_:
b44
])
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b45
_:
b46
_:
b47
_:
b48
)
;
sp:
where
([
sp:
object
_:
b48
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b47
]
[
sp:
object
_:
b47
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b46
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b46
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b46
]))
]
[
sp:
object
_:
b46
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b45
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b49
_:
b50
_:
b51
_:
b52
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b53
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b54
;
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
_:
b53
]
[
sp:
object
_:
b55
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b53
]
[
sp:
object
_:
b52
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b54
]
[
sp:
object
_:
b56
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b54
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b56
]
;
sp:
variable
_:
b57
]
[
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
_:
b57
]
]
;
sp:
variable
_:
b51
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b55
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b58
]
[
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
_:
b58
]
]
;
sp:
variable
_:
b50
]
[
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
_:
b58
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b57
]
]
;
sp:
variable
_:
b49
])
]
;
spin:
update
[
rdf:
type
sp:
Modify
;
sp:
deletePattern
([
sp:
object
_:
b59
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b60
])
;
sp:
insertPattern
([
sp:
object
_:
b61
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b60
])
;
sp:
where
([
sp:
object
_:
b60
;
sp:
predicate
owl:
onProperty
;
sp:
subject
[
sp:
varName
"r"
^^
xsd:
string
]
]
[
sp:
object
_:
b59
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b60
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
fn:
starts-with
;
sp:
arg1
_:
b59
;
sp:
arg2
"has"
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b59
;
sp:
arg2
"has(.*)"
;
sp:
arg3
"$1"
]
]
;
sp:
variable
_:
b61
])
]
.
_:
b2
sp:
varName
"value"
^^
xsd:
string
.
_:
b3
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b5
sp:
varName
"child"
^^
xsd:
string
.
_:
b6
sp:
varName
"childType"
^^
xsd:
string
.
_:
b7
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b8
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b9
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b10
sp:
varName
"someXSDtype"
^^
xsd:
string
.
_:
b11
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b12
sp:
varName
"text"
^^
xsd:
string
.
_:
b13
sp:
varName
"instType"
^^
xsd:
string
.
_:
b14
sp:
varName
"child"
^^
xsd:
string
.
_:
b15
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b17
sp:
varName
"childType"
^^
xsd:
string
.
_:
b18
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b19
sp:
varName
"instType"
^^
xsd:
string
.
_:
b20
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b21
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b23
sp:
varName
"child"
^^
xsd:
string
.
_:
b24
sp:
varName
"childType"
^^
xsd:
string
.
_:
b25
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b26
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b27
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b28
sp:
varName
"instType"
^^
xsd:
string
.
_:
b29
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b30
sp:
varName
"text"
^^
xsd:
string
.
_:
b31
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b33
sp:
varName
"uom"
^^
xsd:
string
.
_:
b34
sp:
varName
"value"
^^
xsd:
string
.
_:
b35
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b37
sp:
varName
"child"
^^
xsd:
string
.
_:
b38
sp:
varName
"childType"
^^
xsd:
string
.
_:
b39
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b40
sp:
varName
"allValuesRestriction"
^^
xsd:
string
.
_:
b41
sp:
varName
"instType"
^^
xsd:
string
.
_:
b42
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b43
sp:
varName
"text"
^^
xsd:
string
.
_:
b44
sp:
varName
"c"
^^
xsd:
string
.
_:
b45
sp:
varName
"pp"
^^
xsd:
string
.
_:
b46
sp:
varName
"p"
^^
xsd:
string
.
_:
b47
sp:
varName
"s"
^^
xsd:
string
.
_:
b48
sp:
varName
"e"
^^
xsd:
string
.
_:
b49
sp:
varName
"ddrCPU"
^^
xsd:
string
.
_:
b50
sp:
varName
"ddrCU"
^^
xsd:
string
.
_:
b51
sp:
varName
"ddrPU"
^^
xsd:
string
.
_:
b52
sp:
varName
"mre"
^^
xsd:
string
.
_:
b53
sp:
varName
"s"
^^
xsd:
string
.
_:
b54
sp:
varName
"c"
^^
xsd:
string
.
_:
b55
sp:
varName
"name"
^^
xsd:
string
.
_:
b56
sp:
varName
"pname"
^^
xsd:
string
.
_:
b57
sp:
varName
"tcpname"
^^
xsd:
string
.
_:
b58
sp:
varName
"tcname"
^^
xsd:
string
.
_:
b59
sp:
varName
"oldLabel"
^^
xsd:
string
.
_:
b60
sp:
varName
"p"
^^
xsd:
string
.
_:
b61
sp:
varName
"newLabel"
^^
xsd:
string
.
[]
sxml:
tag
"witsml:porePressure"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment