Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Leal
2011-08-10 14:10:09 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f6e8a3fa1004fac97fb92b9e286ec36fc5962aa8
f6e8a3fa
1 parent
80404e37
Added mapping of Rig and its identifiers
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
739 additions
and
458 deletions
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-CORE-v1.0.ttl
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-FACILITY-v1.0.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.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/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl.tbc
www.reportinghub.no/ep/transform/TRANSFORM_ddr-wellboreInfo-v1.1.1.ttl
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-CORE-v1.0.ttl
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 1
0:37:51
BST 2011
# Saved by TopBraid on Wed Aug 10 1
3:54:55
BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.linkedmodel.org/1.2/schema/vaem
...
...
@@ -25,7 +25,7 @@ ep-core:PhysicalThing
rdfs:
subClassOf
owl:
Thing
.
ep-core:
apiName
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdfs:
label
"API name"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
...
...
@@ -35,11 +35,11 @@ ep-core:basisFor
rdfs:
label
"basis for"
^^
xsd:
string
.
ep-core:
derivedFrom
rdf:
type
owl:
ObjectProperty
,
owl:
Transitive
Property
;
rdf:
type
owl:
TransitiveProperty
,
owl:
Object
Property
;
rdfs:
label
"derived from"
^^
xsd:
string
.
ep-core:
dtiName
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
label
"DTI name"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
...
...
@@ -60,7 +60,7 @@ ep-core:hasTemporalPart
owl:
inverseOf
ep-core:
partOf
.
ep-core:
localFieldName
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdfs:
label
"local field name"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
...
...
@@ -71,13 +71,19 @@ ep-core:name
rdfs:
range
xsd:
string
.
ep-core:
npdCode
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdfs:
label
"NPD code"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
ep-core:
npdN
umber
ep-core:
npdN
ame
rdf:
type
owl:
FunctionalProperty
,
owl:
DatatypeProperty
;
rdfs:
label
"NPD name"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
ep-core:
npdNumber
rdf:
type
owl:
DatatypeProperty
,
owl:
FunctionalProperty
;
rdfs:
label
"NPD number"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
...
...
@@ -90,7 +96,7 @@ ep-core:partOf
owl:
inverseOf
ep-core:
hasPart
.
ep-core:
prospectName
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdfs:
label
"prospect name"
^^
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
ep-core:
name
.
...
...
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-FACILITY-v1.0.ttl
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 13:32:44 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://purl.org/dc/elements/1.1/
# imports: http://purl.org/dc/terms/
# imports: http://spinrdf.org/spin
# imports: http://
www.reportinghub.no/ep/schema/1.0/core
# imports: http://
purl.org/dc/terms/
@prefix
ep-fac:
<http://www.reportinghub.no/ep/schema/facility#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
...
...
@@ -15,9 +16,14 @@
<http://www.reportinghub.no/ep/schema/1.0/facility>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.reportinghub.no/ep/schema/1.0/core>
,
<http://spinrdf.org/spin>
,
<http://purl.org/dc/terms/>
,
<http://purl.org/dc/elements/1.1/>
;
owl:
imports
<http://
purl.org/dc/elements/1.1/>
,
<http://purl.org/dc/terms/>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
ep-fac:
AllOrPartOfTheLifeOfARig
rdf:
type
owl:
Class
;
rdfs:
label
"all or part of the life of a rig"
^^
xsd:
string
;
rdfs:
subClassOf
ep-fac:
Facility
.
ep-fac:
Facility
rdf:
type
owl:
Class
;
rdfs:
label
"facility"
^^
xsd:
string
;
...
...
@@ -33,7 +39,8 @@ ep-fac:MoveableFacility
ep-fac:
Rig
rdf:
type
owl:
Class
;
rdfs:
subClassOf
ep-fac:
Facility
.
rdfs:
label
"rig"
^^
xsd:
string
;
rdfs:
subClassOf
ep-fac:
AllOrPartOfTheLifeOfARig
.
ep-fac:
SubSurfaceFixedFacility
rdf:
type
owl:
Class
;
...
...
@@ -42,3 +49,8 @@ ep-fac:SubSurfaceFixedFacility
ep-fac:
SurfaceFixedFacility
rdf:
type
owl:
Class
;
rdfs:
subClassOf
ep-fac:
FixedFacility
.
ep-fac:
TemporalPartOfARig
rdf:
type
owl:
Class
;
rdfs:
label
"temporal part of a rig"
^^
xsd:
string
;
rdfs:
subClassOf
ep-fac:
AllOrPartOfTheLifeOfARig
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 1
0:38:00
BST 2011
# Saved by TopBraid on Wed Aug 10 1
3:36:32
BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/core
...
...
@@ -115,13 +115,53 @@ ep-spin-lib:buildPartActivityURI
])
]
.
ep-spin-lib:
buildRigURI
rdf:
type
spin:
Function
;
rdfs:
label
"build Rig URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/Rig/"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b5
])
]
.
ep-spin-lib:
buildTemporalPartOfARigURI
rdf:
type
spin:
Function
;
rdfs:
label
"build TemporalPartOfRig URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"https://www.reportinghub.no/ep/data/Rig/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"$"
;
sp:
arg3
spin:
_arg2
;
sp:
arg4
"$"
;
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b6
])
]
.
ep-spin-lib:
buildTemporalPartOfAWellBoreURI
rdf:
type
spin:
Function
;
rdfs:
label
"build TemporalPartOfWellBore URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -134,7 +174,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b
5
sp:
variable
_:
b
7
])
]
.
...
...
@@ -144,7 +184,7 @@ ep-spin-lib:buildURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
iri
;
...
...
@@ -153,17 +193,17 @@ ep-spin-lib:buildURI
sp:
arg2
spin:
_arg2
]
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
8
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg
2
;
spl:
predicate
sp:
arg
1
;
spl:
valueType
xsd:
string
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg
1
;
spl:
predicate
sp:
arg
2
;
spl:
valueType
xsd:
string
]
.
...
...
@@ -173,7 +213,7 @@ ep-spin-lib:normalizeString
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
...
...
@@ -181,67 +221,67 @@ ep-spin-lib:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b
8
sp:
variable
_:
b
10
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
_:
b
8
sp:
arg1
_:
b
10
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
encodeURL
;
sp:
arg1
_:
b
9
sp:
arg1
_:
b
11
]
;
sp:
variable
_:
b1
0
sp:
variable
_:
b1
2
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b1
0
;
sp:
arg1
_:
b1
2
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
1
sp:
variable
_:
b1
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b1
1
;
sp:
arg1
_:
b1
3
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
2
sp:
variable
_:
b1
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b1
2
;
sp:
arg1
_:
b1
4
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
3
sp:
variable
_:
b1
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b1
3
;
sp:
arg1
_:
b1
5
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b1
4
;
sp:
arg1
_:
b1
6
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
smf:
upperCase
;
sp:
arg1
_:
b1
5
sp:
arg1
_:
b1
7
]
]
;
sp:
variable
_:
b
7
sp:
variable
_:
b
9
])
]
;
spin:
constraint
...
...
@@ -256,7 +296,7 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -274,7 +314,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:
arg3
<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
]
;
sp:
variable
_:
b1
6
sp:
variable
_:
b1
8
])
]
.
...
...
@@ -284,7 +324,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
if
;
...
...
@@ -868,7 +908,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
]
;
sp:
variable
_:
b1
7
sp:
variable
_:
b1
9
])
]
.
...
...
@@ -878,7 +918,7 @@ ep-spin-lib:selectLabelOfSystem
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
18
)
;
sp:
resultVariables
(
_:
b
20
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -924,7 +964,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
]
;
sp:
variable
_:
b
18
sp:
variable
_:
b
20
])
]
.
...
...
@@ -934,7 +974,7 @@ ep-spin-lib:selectPressureTestType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
19
)
;
sp:
resultVariables
(
_:
b
21
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
if
;
...
...
@@ -951,7 +991,7 @@ ep-spin-lib:selectPressureTestType
sp:
arg2
<http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
]
]
;
sp:
variable
_:
b
19
sp:
variable
_:
b
21
])
]
.
...
...
@@ -961,60 +1001,66 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
0
)
;
sp:
where
([
sp:
object
_:
b2
0
;
sp:
resultVariables
(
_:
b2
2
)
;
sp:
where
([
sp:
object
_:
b2
2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#mapsTo>
;
sp:
subject
spin:
_arg1
])
]
.
_:
b
7
sp:
varName
"normalizedStr
"
^^
xsd:
string
.
_:
b
1
sp:
varName
"uri
"
^^
xsd:
string
.
_:
b
8
sp:
varName
"s1
"
^^
xsd:
string
.
_:
b
2
sp:
varName
"uri
"
^^
xsd:
string
.
_:
b9
sp:
varName
"s2"
^^
xsd:
string
.
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b7
sp:
varName
"uri"
^^
xsd:
string
.
_:
b8
sp:
varName
"uri"
^^
xsd:
string
.
_:
b9
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b10
sp:
varName
"
t0a
"
^^
xsd:
string
.
sp:
varName
"
s1
"
^^
xsd:
string
.
_:
b11
sp:
varName
"
t0b
"
^^
xsd:
string
.
sp:
varName
"
s2
"
^^
xsd:
string
.
_:
b12
sp:
varName
"t
1
"
^^
xsd:
string
.
sp:
varName
"t
0a
"
^^
xsd:
string
.
_:
b13
sp:
varName
"t
2
"
^^
xsd:
string
.
sp:
varName
"t
0b
"
^^
xsd:
string
.
_:
b14
sp:
varName
"t
3
"
^^
xsd:
string
.
sp:
varName
"t
1
"
^^
xsd:
string
.
_:
b15
sp:
varName
"t
4
"
^^
xsd:
string
.
sp:
varName
"t
2
"
^^
xsd:
string
.
_:
b16
sp:
varName
"
dailyDrillingReportType
"
^^
xsd:
string
.
sp:
varName
"
t3
"
^^
xsd:
string
.
_:
b17
sp:
varName
"drillingActivityPurposeType"
^^
xsd:
string
.
sp:
varName
"t4"
^^
xsd:
string
.
_:
b18
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b19
sp:
varName
"
pressureTest
Type"
^^
xsd:
string
.
sp:
varName
"
drillingActivityPurpose
Type"
^^
xsd:
string
.
_:
b20
sp:
varName
"wellBoreDrillingType"
^^
xsd:
string
.
_:
b18
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b1
sp:
varName
"uri"
^^
xsd:
string
.
_:
b2
sp:
varName
"uri"
^^
xsd:
string
.
_:
b21
sp:
varName
"pressureTestType"
^^
xsd:
string
.
_:
b3
sp:
varName
"uri"
^^
xsd:
string
.
_:
b22
sp:
varName
"wellBoreDrillingType"
^^
xsd:
string
.
_:
b
4
sp:
varName
"uri"
^^
xsd:
string
.
_:
b
6
sp:
varName
"uri"
^^
xsd:
string
.
_:
b5
sp:
varName
"uri"
^^
xsd:
string
.
_:
b6
sp:
varName
"uri"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl.tbc
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 1
0:38:00
BST 2011
# Saved by TopBraid on Wed Aug 10 1
3:36:32
BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-v1.1.1.ttl
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 1
1:35:30
BST 2011
# Saved by TopBraid on Wed Aug 10 1
4:09:07
BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
...
...
@@ -15,11 +16,12 @@
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
wellAndWellBoreAlias:
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#>
.
@prefix
wellboreInfo:
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/transform/1.1/well
AndWellBoreAlias>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/activity>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
>
;
owl:
imports
<http://www.reportinghub.no/ep/transform/1.1/well
boreInfo>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/activity>
,
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
,
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-normalization-v1.1.1.ttl.tbc
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 1
1:35:30
BST 2011
# Saved by TopBraid on Wed Aug 10 1
4:09:07
BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
# 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/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# 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#>
.
...
...
@@ -21,6 +23,7 @@
@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
...
...
@@ -36,7 +39,7 @@ ddr:Cs_activity
sxml:
element
"witsml:activity"
^^
xsd:
string
.
ddr:
Cs_alias
sxml:
element
"witsml:
rigAlias"
^^
xsd:
string
,
"witsml:alias"
.
sxml:
element
"witsml:
alias"
,
"witsml:rigAlias"
^^
xsd:
string
.
ddr:
Cs_bitRecord
sxml:
element
"witsml:bitRecord"
.
...
...
@@ -84,7 +87,7 @@ ddr:Cs_drillReportPorePressure
sxml:
element
"witsml:drillReportPorePressure"
.
ddr:
Cs_drillReportStatusInfo
sxml:
element
"witsml:
statusInfo"
^^
xsd:
string
,
"witsml:drillReportStatusInfo"
.
sxml:
element
"witsml:
drillReportStatusInfo"
,
"witsml:statusInfo"
^^
xsd:
string
.
ddr:
Cs_drillReportStratInfo
sxml:
element
"witsml:drillReportStratInfo"
.
...
...
@@ -120,7 +123,7 @@ ddr:Cs_refWellWellboreRig
sxml:
element
"witsml:refWellWellboreRig"
.
ddr:
Cs_wellAlias
sxml:
element
"witsml:well
Alias"
,
"witsml:wellboreAlias"
^^
xsd:
string
.
sxml:
element
"witsml:well
boreAlias"
^^
xsd:
string
,
"witsml:wellAlias"
.
ddr:
Cs_wellCRS
sxml:
element
"witsml:wellCRS"
.
...
...
@@ -137,346 +140,345 @@ ddr:Obj_drillReport
ddr:
Thing
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
4 - Construct UOM values"
^^
xsd:
string
;
rdfs:
comment
"STEP 00
3 - Construct datatype string values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b2
;
sp:
predicate
_:
b5
;
sp:
predicate
_:
b2
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
6
sp:
subject
_:
b
3
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
5
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
2
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
4
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
1
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b
6
]
[
sp:
object
_:
b
6
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
7
sp:
subject
_:
b
4
])
;
sp:
where
([
sp:
object
_:
b
7
;
sp:
where
([
sp:
object
_:
b
4
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
8
;
]
[
sp:
object
_:
b
5
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b7
sp:
subject
_:
b4
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
aNode"
^^
xsd:
string
[
sp:
varName
"
uom"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b
7
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b
4
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
8
sp:
arg1
_:
b
5
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#"
;
sp:
arg2
_:
b
9
sp:
arg2
_:
b
6
]
]
;
sp:
variable
_:
b
5
]
[
sp:
object
owl:
ObjectProperty
;
sp:
variable
_:
b
2
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
5
]
[
sp:
object
_:
b
5
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
2
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b
1
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
8
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b11
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
sp:
subject
_:
b7
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b10
;
sp:
object
xsd:
string
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
12
;
sp:
subject
_:
b
8
]
[
sp:
object
_:
b
9
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b
7
sp:
subject
_:
b
4
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
12
]
[
sp:
object
_:
b1
3
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b1
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b12
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b13
sp:
subject
_:
b9
]
[
sp:
object
_:
b10
;
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:
variable
_:
b4
sp:
subject
_:
b10
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
6 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
4
;
sp:
predicate
_:
b1
5
;
rdfs:
comment
"STEP 00
2 - Construct datatype datetime values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
1
;
sp:
predicate
_:
b1
2
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
6
sp:
subject
_:
b1
3
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
5
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
2
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
4
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
1
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
6
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
4
])
;
sp:
where
([
sp:
object
_:
b1
7
;
sp:
where
([
sp:
object
_:
b1
4
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b1
8
;
]
[
sp:
object
_:
b1
5
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
4
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
4
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b18
]
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b15
]
;
sp:
variable
_:
b1
9
sp:
variable
_:
b1
6
]
[
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
_:
b1
9
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#
"
;
sp:
arg2
_:
b1
6
]
]
;
sp:
variable
_:
b1
5
]
[
sp:
object
owl:
ObjectProperty
;
sp:
variable
_:
b1
2
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
5
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
2
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b
20
]
[
sp:
object
_:
b
21
;
sp:
subject
_:
b
17
]
[
sp:
object
_:
b
18
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b22
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
sp:
subject
_:
b17
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b20
;
sp:
object
xsd:
dateTime
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b22
sp:
subject
_:
b18
]
[
sp:
object
_:
b19
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b14
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b20
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b21
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
<http://www.linkedmodel.org/schema/dtype#EnumeratedValue>
;
sp:
object
_:
b17
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b23
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b17
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b24
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b23
]
[
sp:
object
_:
b21
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b24
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b14
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
dateTime
;
sp:
arg1
_:
b20
]
;
sp:
variable
_:
b11
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 020 - Construct all other object properties - WIP"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
5
;
sp:
predicate
_:
b2
6
;
sp:
templates
([
sp:
object
_:
b2
2
;
sp:
predicate
_:
b2
3
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
7
sp:
subject
_:
b2
4
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
6
;
sp:
subject
_:
b2
4
]
[
sp:
object
_:
b2
3
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
5
;
sp:
subject
_:
b2
4
]
[
sp:
object
_:
b2
2
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b2
7
]
[
sp:
object
_:
b2
7
;
sp:
subject
_:
b2
4
]
[
sp:
object
_:
b2
4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b2
5
sp:
subject
_:
b2
2
])
;
sp:
where
([
sp:
object
_:
b2
8
;
sp:
where
([
sp:
object
_:
b2
5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b2
9
]
[
sp:
object
_:
b2
6
;
sp:
subject
_:
b2
6
]
[
sp:
object
_:
b2
3
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b28
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b25
sp:
subject
_:
b26
]
[
sp:
object
_:
b25
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b22
]
[
sp:
object
_:
b22
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
30
;
]
[
sp:
object
_:
b
27
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b2
9
;
sp:
object
_:
b2
6
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b
30
sp:
subject
_:
b
27
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00
2 - Construct datatype datetime values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
31
;
sp:
predicate
_:
b
32
;
rdfs:
comment
"STEP 00
6 - Construct Enumerated Values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
28
;
sp:
predicate
_:
b
29
;
sp:
subject
spin:
_this
]
[
sp:
object
rdf:
Statement
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
3
sp:
subject
_:
b3
0
]
[
sp:
object
spin:
_this
;
sp:
predicate
rdf:
subject
;
sp:
subject
_:
b3
3
]
[
sp:
object
_:
b
32
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
29
;
sp:
predicate
rdf:
predicate
;
sp:
subject
_:
b3
3
]
[
sp:
object
_:
b
31
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b
28
;
sp:
predicate
rdf:
object
;
sp:
subject
_:
b3
3
]
[
sp:
object
_:
b3
3
;
sp:
subject
_:
b3
0
]
[
sp:
object
_:
b3
0
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b3
4
sp:
subject
_:
b3
1
])
;
sp:
where
([
sp:
object
_:
b3
4
;
sp:
where
([
sp:
object
_:
b3
1
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b3
5
;
]
[
sp:
object
_:
b3
2
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
4
sp:
subject
_:
b3
1
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"uom"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
subject
_:
b3
4
sp:
subject
_:
b3
1
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b35
[
rdf:
type
smf:
titleCase
;
sp:
arg1
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b32
]
]
;
sp:
variable
_:
b3
6
sp:
variable
_:
b3
3
]
[
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
_:
b3
6
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#
enum"
;
sp:
arg2
_:
b3
3
]
]
;
sp:
variable
_:
b
32
]
[
sp:
object
owl:
DatatypeProperty
;
sp:
variable
_:
b
29
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
32
]
[
sp:
object
_:
b
32
;
sp:
subject
_:
b
29
]
[
sp:
object
_:
b
29
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b3
7
]
[
sp:
object
_:
b3
8
;
sp:
subject
_:
b3
4
]
[
sp:
object
_:
b3
5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b37
sp:
subject
_:
b34
]
[
sp:
object
_:
b36
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
dateTime
;
sp:
object
_:
b34
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
rdfs:
subClassOf
]
;
sp:
subject
_:
b38
]
[
sp:
object
_:
b39
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b34
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b39
]
[
sp:
object
_:
b40
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b39
]
[
sp:
object
_:
b41
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
sp:
subject
_:
b36
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b37
;
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
_:
b41
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
dateTime
;
sp:
arg1
_:
b40
]
;
sp:
variable
_:
b31
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 003 - Construct datatype string values"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b42
;
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
;
...
...
@@ -501,11 +503,14 @@ ddr:Thing
]
[
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
"
uom"
^^
xsd:
string
[
sp:
varName
"
aNode"
^^
xsd:
string
]
;
sp:
predicate
ddr:
uom
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b45
])
]
[
rdf:
type
sp:
Bind
;
...
...
@@ -523,17 +528,20 @@ ddr:Thing
]
]
;
sp:
variable
_:
b43
]
[
sp:
object
owl:
DatatypeProperty
;
]
[
sp:
object
owl:
ObjectProperty
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b43
]
[
sp:
object
_:
b43
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b48
]
[
sp:
object
_:
b
49
;
]
[
sp:
object
_:
b
39
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b48
]
[
sp:
object
_:
b49
;
sp:
predicate
rdf:
type
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
xsd:
string
;
sp:
object
_:
b48
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
...
...
@@ -546,20 +554,15 @@ ddr:Thing
]
[
sp:
object
sxml:
TextNode
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b50
]
[
sp:
object
_:
b
42
;
]
[
sp:
object
_:
b
51
;
sp:
predicate
sxml:
text
;
sp:
subject
_:
b50
]
[
sp:
object
_:
b51
;
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
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
double
;
sp:
arg1
_:
b51
]
;
sp:
subject
_:
b51
sp:
variable
_:
b42
])
]
.
...
...
@@ -576,113 +579,113 @@ ddr:version
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/
schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://topbraid.org/sxml>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://www.reportinghub.no/ep/
transform/1.1/wellAndWellBoreAlias>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/report>
,
<http://topbraid.org/sxml>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/well>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
owl:
Thing
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b52
_:
b53
_:
b54
_:
b55
)
;
sp:
where
([
sp:
object
<http://topbraid.org/sxsd#ComplexType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b56
]
[
rdf:
type
sp:
TriplePath
;
sp:
object
_:
b57
;
sp:
path
[
rdf:
type
sp:
ModPath
;
sp:
modMax
-2
;
sp:
modMin
0
;
sp:
subPath
<http://www.topbraid.org/2007/05/composite.owl#child>
sp:
where
([
sp:
object
[
sp:
varName
"p"
^^
xsd:
string
]
;
sp:
subject
_:
b56
]
[
sp:
object
_:
b58
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b56
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
_:
b
57
]
[
sp:
object
_:
b
59
;
sp:
subject
_:
b
62
]
[
sp:
object
_:
b
64
;
sp:
predicate
<http://topbraid.org/sxsd#name>
;
sp:
subject
_:
b
57
sp:
subject
_:
b
62
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
59
sp:
arg1
_:
b
64
]
;
sp:
variable
_:
b6
0
sp:
variable
_:
b6
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/ddr#has"
;
sp:
arg2
_:
b6
0
sp:
arg2
_:
b6
5
]
]
;
sp:
variable
_:
b5
4
sp:
variable
_:
b5
9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
spif:
titleCase
;
sp:
arg1
_:
b
58
;
sp:
arg1
_:
b
63
;
sp:
arg2
"[a-z]s"
]
;
sp:
variable
_:
b6
1
sp:
variable
_:
b6
6
]
[
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
1
sp:
arg2
_:
b6
6
]
]
;
sp:
variable
_:
b5
3
sp:
variable
_:
b5
8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
buildURI
;
sp:
arg1
[
rdf:
type
fn:
concat
;
sp:
arg1
"http://www.reportinghub.no/map/ddr#"
;
sp:
arg2
_:
b6
1
;
sp:
arg2
_:
b6
6
;
sp:
arg3
"-has"
;
sp:
arg4
_:
b6
0
sp:
arg4
_:
b6
5
]
]
;
sp:
variable
_:
b52
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b62
_:
b63
_:
b64
_:
b65
)
;
sp:
where
([
sp:
object
_:
b65
;
sp:
predicate
<http://www.w3.org/ns/sawsdl#modelReference>
;
sp:
subject
_:
b64
]
[
sp:
object
_:
b64
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b63
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
<http://topbraid.org/sxsd#Sequence>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b63
])
([
sp:
object
<http://topbraid.org/sxsd#Choice>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b63
]))
]
[
sp:
object
_:
b63
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b62
])
]
;
spin:
query
[
rdf:
type
sp:
Select
;
sp:
where
([
sp:
object
[
sp:
varName
"p"
^^
xsd:
string
]
;
sp:
predicate
<http://www.topbraid.org/2007/05/composite.owl#child>
;
sp:
subject
_:
b66
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"b"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#basisFor>
;
sp:
subject
_:
b66
])
sp:
variable
_:
b57
])
]
;
spin:
update
...
...
@@ -722,184 +725,183 @@ owl:Thing
])
]
.
_:
b
42
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
newLabel"
^^
xsd:
string
.
_:
b
43
sp:
varName
"
dtpnameU"
^^
xsd:
string
.
_:
b
68
sp:
varName
"
p"
^^
xsd:
string
.
_:
b
45
sp:
varName
"
child"
^^
xsd:
string
.
_:
b
67
sp:
varName
"
oldLabel"
^^
xsd:
string
.
_:
b
46
sp:
varName
"c
hildType"
^^
xsd:
string
.
_:
b
52
sp:
varName
"c
"
^^
xsd:
string
.
_:
b
47
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b
56
sp:
varName
"
e"
^^
xsd:
string
.
_:
b
48
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b
55
sp:
varName
"
s"
^^
xsd:
string
.
_:
b
49
sp:
varName
"
rangeType"
^^
xsd:
string
.
_:
b
54
sp:
varName
"
p"
^^
xsd:
string
.
_:
b5
0
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b5
3
sp:
varName
"
pp"
^^
xsd:
string
.
_:
b
51
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
tcname"
^^
xsd:
string
.
_:
b
31
sp:
varName
"
dateTime"
^^
xsd:
string
.
_:
b
65
sp:
varName
"
tcpname"
^^
xsd:
string
.
_:
b
32
sp:
varName
"
dtpnameU"
^^
xsd:
string
.
_:
b
64
sp:
varName
"
pname"
^^
xsd:
string
.
_:
b
34
sp:
varName
"
child"
^^
xsd:
string
.
_:
b
63
sp:
varName
"
name"
^^
xsd:
string
.
_:
b
35
sp:
varName
"c
hildType"
^^
xsd:
string
.
_:
b
62
sp:
varName
"c
"
^^
xsd:
string
.
_:
b
36
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b
61
sp:
varName
"
s"
^^
xsd:
string
.
_:
b
37
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b
60
sp:
varName
"
mre"
^^
xsd:
string
.
_:
b
38
sp:
varName
"
rangeType"
^^
xsd:
string
.
_:
b
59
sp:
varName
"
ddrPU"
^^
xsd:
string
.
_:
b
39
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b
58
sp:
varName
"
ddrCU"
^^
xsd:
string
.
_:
b
40
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
57
sp:
varName
"
ddrCPU"
^^
xsd:
string
.
_:
b
41
_:
b
10
sp:
varName
"instType"
^^
xsd:
string
.
_:
b25
sp:
varName
"child"
^^
xsd:
string
.
_:
b9
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b26
sp:
varName
"formalProperty"
^^
xsd:
string
.
_:
b8
sp:
varName
"rangeType"
^^
xsd:
string
.
_:
b28
sp:
varName
"childType"
^^
xsd:
string
.
_:
b7
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b29
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b6
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b30
sp:
varName
"instType"
^^
xsd:
string
.
_:
b5
sp:
varName
"childType"
^^
xsd:
string
.
_:
b14
sp:
varName
"enumeratedValue"
^^
xsd:
string
.
_:
b4
sp:
varName
"child"
^^
xsd:
string
.
_:
b15
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b2
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b17
sp:
varName
"child"
^^
xsd:
string
.
_:
b1
sp:
varName
"text"
^^
xsd:
string
.
_:
b18
sp:
varName
"childType"
^^
xsd:
string
.
_:
b19
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b21
sp:
varName
"instType"
^^
xsd:
string
.
_:
b20
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
21
sp:
varName
"
rangeU"
^^
xsd:
string
.
_:
b
19
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b
22
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
18
sp:
varName
"
rangeType"
^^
xsd:
string
.
_:
b
23
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b
17
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b
24
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
16
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b1
sp:
varName
"rangeU"
^^
xsd:
string
.
_:
b15
sp:
varName
"childType"
^^
xsd:
string
.
_:
b3
sp:
varName
"uom"
^^
xsd:
string
.
_:
b14
sp:
varName
"child"
^^
xsd:
string
.
_:
b4
sp:
varName
"value"
^^
xsd:
string
.
_:
b12
sp:
varName
"dtpnameU"
^^
xsd:
string
.
_:
b5
sp:
varName
"opnameU"
^^
xsd:
string
.
_:
b11
sp:
varName
"dateTime"
^^
xsd:
string
.
_:
b7
sp:
varName
"child"
^^
xsd:
string
.
_:
b27
sp:
varName
"instType"
^^
xsd:
string
.
_:
b8
sp:
varName
"childType"
^^
xsd:
string
.
_:
b26
sp:
varName
"valuesRestriction"
^^
xsd:
string
.
_:
b9
sp:
varName
"childLocalName"
^^
xsd:
string
.
_:
b25
sp:
varName
"childType"
^^
xsd:
string
.
_:
b
10
sp:
varName
"
allValuesRestriction"
^^
xsd:
string
.
_:
b
23
sp:
varName
"
formalProperty"
^^
xsd:
string
.
_:
b
11
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
22
sp:
varName
"
child"
^^
xsd:
string
.
_:
b12
_:
b38
sp:
varName
"text"
^^
xsd:
string
.
_:
b37
sp:
varName
"textNode"
^^
xsd:
string
.
_:
b
13
sp:
varName
"
text"
^^
xsd:
string
.
_:
b
36
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
66
sp:
varName
"
c"
^^
xsd:
string
.
_:
b
35
sp:
varName
"
rangeU"
^^
xsd:
string
.
_:
b
62
sp:
varName
"
pp"
^^
xsd:
string
.
_:
b
34
sp:
varName
"
valuesRestriction"
^^
xsd:
string
.
_:
b
63
sp:
varName
"
p"
^^
xsd:
string
.
_:
b
33
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b
64
sp:
varName
"
s"
^^
xsd:
string
.
_:
b
32
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b
65
sp:
varName
"
e"
^^
xsd:
string
.
_:
b
31
sp:
varName
"
child"
^^
xsd:
string
.
_:
b
52
sp:
varName
"
ddrCPU"
^^
xsd:
string
.
_:
b
29
sp:
varName
"
opnameU"
^^
xsd:
string
.
_:
b
53
sp:
varName
"
ddrCU"
^^
xsd:
string
.
_:
b
28
sp:
varName
"
enumeratedValue"
^^
xsd:
string
.
_:
b5
4
sp:
varName
"
ddrPU"
^^
xsd:
string
.
_:
b5
1
sp:
varName
"
text"
^^
xsd:
string
.
_:
b5
5
sp:
varName
"
mre"
^^
xsd:
string
.
_:
b5
0
sp:
varName
"
textNode"
^^
xsd:
string
.
_:
b
56
sp:
varName
"
s"
^^
xsd:
string
.
_:
b
49
sp:
varName
"
instType"
^^
xsd:
string
.
_:
b
57
sp:
varName
"
c"
^^
xsd:
string
.
_:
b
48
sp:
varName
"
allValuesRestriction"
^^
xsd:
string
.
_:
b
58
sp:
varName
"
name"
^^
xsd:
string
.
_:
b
47
sp:
varName
"
childLocalName"
^^
xsd:
string
.
_:
b
59
sp:
varName
"
pname"
^^
xsd:
string
.
_:
b
46
sp:
varName
"
childType"
^^
xsd:
string
.
_:
b
60
sp:
varName
"
tcpname"
^^
xsd:
string
.
_:
b
45
sp:
varName
"
child"
^^
xsd:
string
.
_:
b
61
sp:
varName
"
tcname"
^^
xsd:
string
.
_:
b
43
sp:
varName
"
opnameU"
^^
xsd:
string
.
_:
b
67
sp:
varName
"
oldLabel"
^^
xsd:
string
.
_:
b
42
sp:
varName
"
value"
^^
xsd:
string
.
_:
b
68
sp:
varName
"
p"
^^
xsd:
string
.
_:
b
41
sp:
varName
"
uom"
^^
xsd:
string
.
_:
b
69
sp:
varName
"
newLabel"
^^
xsd:
string
.
_:
b
39
sp:
varName
"
rangeU"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-v1.1.1.ttl.tbc
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 12:50:05 BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-wellboreInfo-v1.1.1.ttl
0 → 100644
View file @
f6e8a3f
# Saved by TopBraid on Wed Aug 10 14:05:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
@prefix
:
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#>
.
@prefix
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/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/schema/ddr#Obj_drillReport>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 161 Set name for Rig"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#npdName>
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
_:
b3
;
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#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#wellboreInfo>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#rigAlias>
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#name>
;
sp:
subject
_:
b6
]
[
sp:
object
"NPD Name"
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#namingSystem>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onRig>
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b3
]
;
sp:
variable
_:
b9
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b9
;
sp:
arg2
_:
b4
]
;
sp:
variable
_:
b8
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 160 Set rig for drilling activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b10
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onRig>
;
sp:
subject
_:
b11
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#Rig>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b12
]
[
sp:
object
_:
b13
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#npdCode>
;
sp:
subject
_:
b12
]
[
sp:
object
_:
b12
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b10
])
;
sp:
where
([
sp:
object
_:
b14
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#nameWellbore>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b15
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b16
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b17
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#wellboreInfo>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b18
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#rigAlias>
;
sp:
subject
_:
b17
]
[
sp:
object
"NPD Code"
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#namingSystem>
;
sp:
subject
_:
b18
]
[
sp:
object
_:
b13
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/ddr#name>
;
sp:
subject
_:
b18
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b14
]
;
sp:
variable
_:
b19
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b13
]
;
sp:
variable
_:
b20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b19
;
sp:
arg2
_:
b15
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildRigURI
;
sp:
arg1
_:
b20
]
;
sp:
variable
_:
b12
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildTemporalPartOfARigURI
;
sp:
arg1
_:
b20
;
sp:
arg2
_:
b15
;
sp:
arg3
_:
b16
]
;
sp:
variable
_:
b10
])
]
.
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/ddr>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
[]
rdf:
type
smf:
regex
.
[]
rdf:
type
smf:
trim
.
[]
rdf:
type
fn:
starts-with
.
[]
rdf:
type
sp:
Modify
.
_:
b14
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b15
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b16
sp:
varName
"dTimEnd"
^^
xsd:
string
.
_:
b17
sp:
varName
"wellboreInfo"
^^
xsd:
string
.
_:
b18
sp:
varName
"rigAlias"
^^
xsd:
string
.
_:
b13
sp:
varName
"nameRig"
^^
xsd:
string
.
_:
b19
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b20
sp:
varName
"normalizedRigName"
^^
xsd:
string
.
_:
b11
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b12
sp:
varName
"rig"
^^
xsd:
string
.
_:
b10
sp:
varName
"temporalPartOfARig"
^^
xsd:
string
.
_:
b3
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b4
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b5
sp:
varName
"wellboreInfo"
^^
xsd:
string
.
_:
b6
sp:
varName
"rigAlias"
^^
xsd:
string
.
_:
b1
sp:
varName
"name"
^^
xsd:
string
.
_:
b8
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b7
sp:
varName
"temporalPartOfARig"
^^
xsd:
string
.
_:
b2
sp:
varName
"rig"
^^
xsd:
string
.
_:
b9
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
([]
[]
[
rdf:
type
sp:
Filter
]
[
rdf:
type
sp:
Bind
])
.
([])
.
([])
.
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
View file @
f6e8a3f
...
...
@@ -3,13 +3,13 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"lib/rh/ddr.css"
/>
</head>
<body>
<h1>
Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn
iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label
?wellBoreName } }
</h1>
<h1>
Summary report Wellbore: {# SELECT ?wellBoreName WHERE { ?reportOn
ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode
?wellBoreName } }
</h1>
<div>
End time: {= ui:label(spl:object(?reportOn, ep-activity:finishedAt)) }
</div>
<hr
/>
<table><tr>
<td
class=
"ddrSummaryLeft"
>
<rhswp:NameValuePair
arg:name=
"Report Number:"
arg:value=
"{ spl:object(?this, ?) }"
/>
<rhswp:NameValuePair
arg:name=
"Wellbore:"
arg:value=
"{
# SELECT ?wellBoreName WHERE { ?reportOn iso15926:hasPart/ep-activity:onWellBore/iso15926:temporalPartOf/rdfs:label
?wellBoreName } }"
/>
<rhswp:NameValuePair
arg:name=
"Wellbore:"
arg:value=
"{
= SELECT ?wellBoreName WHERE { ?reportOn ep-activity:onWellBore/ep-core:temporalPartOf/ep-core:npdCode
?wellBoreName } }"
/>
<rhswp:NameValuePair
arg:name=
"Status:"
arg:value=
"{= ui:label(spl:object(?this, rdf:type)) }"
/>
<rhswp:NameValuePair
arg:name=
"Operator:"
arg:value=
"{ spl:object(?this, ???) }"
/>
<rhswp:NameValuePair
arg:name=
"Rig name:"
arg:value=
"{ spl:object(?this, ???) }"
/>
...
...
Please
register
or
login
to post a comment