David Leal

Use of temporal parts of a WellBore

# Saved by TopBraid on Tue Aug 02 12:39:11 BST 2011
# Saved by TopBraid on Thu Aug 04 09:28:03 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/ep/schema/1.1/well
......@@ -15,7 +15,7 @@
<http://www.reportinghub.no/ep/schema/1.1/activity>
rdf:type owl:Ontology ;
owl:imports <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.linkedmodel.org/1.1/schema/ordered> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-activity:Activity
......@@ -24,33 +24,33 @@ ep-activity:Activity
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
] .
ep-activity:DailyDrillingActivity
......@@ -59,13 +59,13 @@ ep-activity:DailyDrillingActivity
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
owl:onProperty ep-activity:onWellBore
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -74,13 +74,13 @@ ep-activity:DailyDrillingActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#WellBore> ;
owl:onProperty ep-activity:onWellBore
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyDrillingReport
......@@ -147,22 +147,22 @@ ep-activity:OffshoreWellActivity
rdfs:subClassOf ep-activity:OffshoreActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:onProperty ep-activity:onWell
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onRig
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ;
owl:onProperty ep-activity:onRig
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onWell
] .
......@@ -206,7 +206,7 @@ ep-activity:WeeklyProductionActivity
] .
ep-activity:createdAt
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "created at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
......@@ -228,7 +228,7 @@ ep-activity:onWell
rdfs:label "on well"^^xsd:string .
ep-activity:onWellBore
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "on WellBore"^^xsd:string .
ep-activity:reportOn
......
# Saved by TopBraid on Mon Aug 01 13:33:39 PDT 2011
# Saved by TopBraid on Thu Aug 04 10:01:25 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/well
# imports: http://www.reportinghub.no/ep/schema/1.1/core
......@@ -14,25 +14,34 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-well:AllOrPartOfTheLifeOfAWellBore
rdf:type owl:Class ;
rdfs:label "all or part of the life of a well bore"^^xsd:string .
ep-well:TemporalPartOfAWellBore
rdf:type owl:Class ;
rdfs:label "temporal part of a well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore .
ep-well:Well
rdf:type owl:Class ;
rdfs:label "Well"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-well:WellBore ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#name>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#name>
owl:allValuesFrom ep-well:WellBore ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
] .
ep-well:WellBore
rdf:type owl:Class ;
rdfs:label "Well bore"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:label "well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 09:22:54 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
......@@ -66,13 +66,34 @@ ep-spin-lib:buildDailyDrillingReportURI
])
] .
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 (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b3
])
] .
ep-spin-lib:buildURI
rdf:type spin:Function ;
rdfs:label "build URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:resource ;
......@@ -81,17 +102,17 @@ ep-spin-lib:buildURI
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b3
sp:variable _:b4
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] .
......@@ -101,14 +122,14 @@ ep-spin-lib:buildWellBoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
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/WellBore#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b4
sp:variable _:b5
])
] .
......@@ -118,14 +139,14 @@ ep-spin-lib:buildWellURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
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/Well#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b5
sp:variable _:b6
])
] .
......@@ -135,7 +156,7 @@ ep-spin-lib:normalizeString
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b6) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
......@@ -143,67 +164,67 @@ ep-spin-lib:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b7
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b7
sp:arg1 _:b8
] ;
sp:variable _:b8
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b8
sp:arg1 _:b9
] ;
sp:variable _:b9
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b9 ;
sp:arg1 _:b10 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b10
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b10 ;
sp:arg1 _:b11 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b11
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b11 ;
sp:arg1 _:b12 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b12
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b12 ;
sp:arg1 _:b13 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b13
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b13 ;
sp:arg1 _:b14 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b14
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b14
sp:arg1 _:b15
]
] ;
sp:variable _:b6
sp:variable _:b7
])
] ;
spin:constraint
......@@ -212,34 +233,37 @@ ep-spin-lib:normalizeString
spl:valueType xsd:string
] .
_:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b14
sp:varName "t4"^^xsd:string .
sp:varName "t3"^^xsd:string .
_:b13
sp:varName "t3"^^xsd:string .
sp:varName "t2"^^xsd:string .
_:b12
sp:varName "t2"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b11
sp:varName "t1"^^xsd:string .
sp:varName "t0b"^^xsd:string .
_:b10
sp:varName "t0b"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b9 sp:varName "t0a"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b8 sp:varName "s2"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b7 sp:varName "s1"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b6 sp:varName "normalizedStr"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 09:22:54 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 10:29:52 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# Saved by TopBraid on Thu Aug 04 10:31:12 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
......@@ -14,5 +16,5 @@
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# Saved by TopBraid on Thu Aug 04 10:31:12 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......@@ -13,5 +13,7 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
......