Holger Knublauch

Attempt to fix conflict

# Saved by TopBraid on Tue Aug 02 12:39:11 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
# Saved by TopBraid on Thu Aug 04 15:10:03 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/activity
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/ep/schema/1.1/well
# imports: http://www.reportinghub.no/ep/schema/1.1/equipment
# imports: http://www.linkedmodel.org/1.1/schema/ordered
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://www.reportinghub.no/ep/schema/1.1/core
# imports: http://www.reportinghub.no/ep/schema/well
@prefix : <http://www.reportinghub.no/ep/schema/activity#> .
@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
@prefix ep-activity-1.1: <http://www.reportinghub.no/ep/schema/1.1/activity#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.1/activity>
<http://www.reportinghub.no/ep/schema/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/well> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-activity:Activity
rdf:type owl:Class ;
rdfs:label "Activity"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf <http://www.reportinghub.no/iso15926/nativeOWL#Activity> ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
......@@ -46,26 +51,21 @@ ep-activity:Activity
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] .
ep-activity:DailyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Daily drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:DrillingActivity ;
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,48 +74,76 @@ 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
] .
ep-activity:DailyDrillingReport
rdf:type owl:Class ;
rdfs:label "Daily drilling report"^^xsd:string ;
rdfs:subClassOf ep-activity:Report ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DailyDrillingActivity ;
owl:onProperty ep-activity:reportOn
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyProductionActivity
rdf:type owl:Class ;
rdfs:label "Daily production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:ProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:Drill-bypass
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill bypass"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-initial
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill initial"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-re-entry
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill re-entry"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-re-spud
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill re-spud"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-redrill
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "redrill"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:Drill-sidetrack
rdf:type ep-activity:WellBoreDrillingType ;
rdfs:label "drill sidetrack"^^xsd:string ;
rdfs:subClassOf ep-activity:DrillingActivity .
ep-activity:DrillingActivity
rdf:type owl:Class ;
rdfs:label "Drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity .
rdfs:subClassOf ep-activity:Activity .
ep-activity:FinalDailyDrillingReport
ep-activity:FormationIntegrityTest
rdf:type owl:Class ;
rdfs:subClassOf ep-activity:DailyDrillingReport .
rdfs:label "formation integrity test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:LeakOffTest .
ep-activity:LeakOffTest
rdf:type owl:Class ;
rdfs:label "leak-off test"^^xsd:string ;
rdfs:subClassOf ep-activity:WellBorePressureTest ;
owl:disjointWith ep-activity:FormationIntegrityTest .
ep-activity:MonthlyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Weekly drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:WeeklyDrillingActivity ;
......@@ -125,17 +153,13 @@ ep-activity:MonthlyDrillingActivity
ep-activity:MonthlyProductionActivity
rdf:type owl:Class ;
rdfs:label "Monthly production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:WeeklyProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:NormalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-activity:DailyDrillingReport .
ep-activity:OffshoreActivity
rdf:type owl:Class ;
rdfs:label "Offshore activity"^^xsd:string ;
......@@ -147,48 +171,34 @@ 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
] .
ep-activity:PreliminaryDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-activity:DailyDrillingReport .
ep-activity:ProductionActivity
rdf:type owl:Class ;
rdfs:label "Production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity .
ep-activity:Report
rdf:type owl:Class ;
rdfs:label "Report"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty ep-activity:reportOn
] .
rdfs:subClassOf ep-activity:Activity .
ep-activity:WeeklyDrillingActivity
rdf:type owl:Class ;
rdfs:label "Weekly drilling activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:DrillingActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DailyDrillingActivity ;
......@@ -198,15 +208,25 @@ ep-activity:WeeklyDrillingActivity
ep-activity:WeeklyProductionActivity
rdf:type owl:Class ;
rdfs:label "Weekly production activity"^^xsd:string ;
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf ep-activity:ProductionActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DailyProductionActivity ;
owl:onProperty ep-activity:hasSubActivity
] .
ep-activity:WellBoreDrillingType
rdf:type rdfs:Class ;
rdfs:label "drill bypass"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-activity:WellBorePressureTest
rdf:type owl:Class ;
rdfs:label "well bore pressure test"^^xsd:string ;
rdfs:subClassOf ep-activity:Activity .
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 +248,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
......@@ -239,3 +259,10 @@ ep-activity:startedAt
rdf:type owl:DatatypeProperty ;
rdfs:label "started at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
ep-activity:wellBoreDrillingType
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-activity:DrillingActivity ;
rdfs:label "has sub activity"^^xsd:string ;
rdfs:range ep-activity:WellBoreDrillingType ;
rdfs:subPropertyOf rdf:type .
......
# Saved by TopBraid on Mon Aug 01 13:33:06 PDT 2011
# Saved by TopBraid on Thu Aug 04 15:07:45 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/core
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-core-1.1: <http://www.reportinghub.no/ep/schema/1.1/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -11,7 +13,7 @@
<http://www.reportinghub.no/ep/schema/1.1/core>
rdf:type owl:Ontology ;
owl:imports <http://www.linkedmodel.org/1.2/schema/vaem> ;
owl:imports <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> , <http://www.linkedmodel.org/1.2/schema/vaem> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:basisFor
......@@ -19,7 +21,7 @@ ep-core:basisFor
rdfs:label "basis for"^^xsd:string .
ep-core:derivedFrom
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
rdfs:label "derived from"^^xsd:string .
ep-core:hasPart
......
This diff could not be displayed because it is too large.
# Saved by TopBraid on Tue Jul 26 22:48:40 CEST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/equipment
# Saved by TopBraid on Thu Aug 04 13:47:58 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/equipment
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/equipment#> .
@prefix ep-eqt: <http://www.reportinghub.no/ep/schema/equipment#> .
@prefix ep-eqt-1.1: <http://www.reportinghub.no/ep/schema/1.1/equipment#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.1/equipment>
<http://www.reportinghub.no/ep/schema/equipment>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Tue Jul 26 22:56:33 CEST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/report
# imports: http://www.reportinghub.no/ep/schema/1.1/activity
# Saved by TopBraid on Thu Aug 04 14:54:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/report#> .
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@prefix ep-report-1.1: <http://www.reportinghub.no/ep/schema/1.1/report#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.1/report>
<http://www.reportinghub.no/ep/schema/report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/activity> , <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-report:DailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:Report .
ep-report:FinalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:NormalDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:PreliminaryDailyDrillingReport
rdf:type owl:Class ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:Report
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
......
# Saved by TopBraid on Mon Aug 01 13:33:39 PDT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/well
# Saved by TopBraid on Thu Aug 04 14:29:37 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/well
# imports: http://www.reportinghub.no/ep/schema/1.1/core
@prefix : <http://www.reportinghub.no/ep/schema/well#> .
@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> .
@prefix ep-well-1.1: <http://www.reportinghub.no/ep/schema/1.1/well#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/1.1/well>
<http://www.reportinghub.no/ep/schema/well>
rdf:type owl:Ontology ;
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 ;
......@@ -31,8 +40,8 @@ ep-well:Well
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 16:06:56 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://spinrdf.org/spin
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
......@@ -16,7 +17,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -66,13 +67,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 +103,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 +123,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 +140,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 +157,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 +165,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,32 +234,160 @@ ep-spin-lib:normalizeString
spl:valueType xsd:string
] .
_:b4 sp:varName "uri"^^xsd:string .
ep-spin-lib:selectDailyDrillingReportType
rdf:type spin:Function ;
rdfs:label "select DailyDrillingReportType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_normal>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_final>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
]
] ;
sp:variable _:b16
])
] .
_:b5 sp:varName "uri"^^xsd:string .
ep-spin-lib:selectPressureTestType
rdf:type spin:Function ;
rdfs:label "select PressureTestType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#PT_formationintegritytest>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#FormationIntegrityTest> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#PT_leakofftest>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#LeakOffTest>
]
] ;
sp:variable _:b17
])
] .
_:b14
ep-spin-lib:selectWellBoreDrillingType
rdf:type spin:Function ;
rdfs:label "select WellBoreDrillingType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_bypass>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-bypass> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_initial>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-initial> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_redrill>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-redrill> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_reentry>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-re-entry> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_respud>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-re-spud> ;
sp:arg3 [ rdf:type smf:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_sidetrack>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#Drill-sidetrack>
]
]
]
]
]
] ;
sp:variable _:b18
])
] .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b18
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b17
sp:varName "pressureTestType"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b13
_:b14
sp:varName "t3"^^xsd:string .
_:b12
_:b13
sp:varName "t2"^^xsd:string .
_:b11
_:b12
sp:varName "t1"^^xsd:string .
_:b10
_:b11
sp:varName "t0b"^^xsd:string .
_:b9 sp:varName "t0a"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b8 sp:varName "s2"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b7 sp:varName "s1"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "normalizedStr"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 16:06:56 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# 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.1.1/ddr
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@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 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 xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
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:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:drillReportWellboreInfo" .
ddr:Cs_fluid
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:wellboreAlias"^^xsd:string , "witsml:wellAlias" .
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:schemaLocation
rdfs:domain ddr:Obj_drillReports ;
sxml:attribute "xsi:schemaLocation"^^xsd:string .
ddr:uom
sxml:attribute "uom"^^xsd:string .
ddr:version
rdfs:domain ddr:DrillReports ;
sxml:attribute "version"^^xsd:string .
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b1 _:b2 _:b3 _:b4) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ rdf:type sp:TriplePath ;
sp:object _:b6 ;
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 _:b5
] [ sp:object _:b7 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b5
] [ sp:object _:b4 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b8
] ;
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b9
]
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b7 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b10
]
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b10 ;
sp:arg3 "-has" ;
sp:arg4 _:b9
]
] ;
sp:variable _:b1
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b11 _:b12 _:b13 _:b14) ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b13
] [ sp:object _:b13 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b12
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b12
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b12
]))
] [ sp:object _:b12 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b11
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate _:b16 ;
sp:subject _:b17
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b17 ;
sp:predicate rdf:subject ;
sp:subject _:b18
] [ sp:object _:b16 ;
sp:predicate rdf:predicate ;
sp:subject _:b18
] [ sp:object _:b15 ;
sp:predicate rdf:object ;
sp:subject _:b18
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b19
]) ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b17
] [ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b19
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b20
] ;
sp:variable _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b21
]
] ;
sp:variable _:b16
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b22 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b19
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate sxml:text ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ rdf:type sp:TriplePath ;
sp:object _:b25 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b25
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b26
] [ sp:object _:b16 ;
sp:predicate owl:onProperty ;
sp:subject _:b26
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b23
] ;
sp:variable _:b15
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate _:b29 ;
sp:subject _:b30
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b30 ;
sp:predicate rdf:subject ;
sp:subject _:b31
] [ sp:object _:b29 ;
sp:predicate rdf:predicate ;
sp:subject _:b31
] [ sp:object _:b28 ;
sp:predicate rdf:object ;
sp:subject _:b31
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b32
]) ;
sp:where ([ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b32
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b33
] ;
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b34
]
] ;
sp:variable _:b29
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b29
] [ sp:object _:b35 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b32
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b28 ;
sp:predicate sxml:text ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ rdf:type sp:TriplePath ;
sp:object _:b37 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b36
] [ sp:object _:b38 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b37
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b38
] [ sp:object _:b39 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b38
] [ sp:object _:b29 ;
sp:predicate owl:onProperty ;
sp:subject _:b38
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b39
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b40 ;
sp:predicate rdf:type ;
sp:subject _:b41
] [ sp:object _:b42 ;
sp:predicate ddr:uom ;
sp:subject _:b41
] [ sp:object _:b43 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b41
] [ sp:object _:b41 ;
sp:predicate _:b44 ;
sp:subject _:b45
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b45 ;
sp:predicate rdf:subject ;
sp:subject _:b46
] [ sp:object _:b44 ;
sp:predicate rdf:predicate ;
sp:subject _:b46
] [ sp:object _:b43 ;
sp:predicate rdf:object ;
sp:subject _:b46
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b47
]) ;
sp:where ([ sp:object _:b47 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b45
] [ sp:object _:b48 ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b42 ;
sp:predicate ddr:uom ;
sp:subject _:b47
] [ 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 _:b47
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b48
] ;
sp:variable _:b49
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 [ rdf:type spif:titleCase ;
sp:arg1 _:b49
]
]
] ;
sp:variable _:b44
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b44
] [ sp:object _:b50 ;
sp:predicate rdf:type ;
sp:subject _:b45
] [ rdf:type sp:TriplePath ;
sp:object _:b51 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b50
] [ sp:object _:b52 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b51
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b40 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b52
] [ sp:object _:b44 ;
sp:predicate owl:onProperty ;
sp:subject _:b52
] [ sp:object _:b53 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b47
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ sp:object _:b54 ;
sp:predicate sxml:text ;
sp:subject _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b54
] ;
sp:variable _:b43
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b55 ;
sp:predicate _:b56 ;
sp:subject _:b57
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b58
] [ sp:object _:b57 ;
sp:predicate rdf:subject ;
sp:subject _:b58
] [ sp:object _:b56 ;
sp:predicate rdf:predicate ;
sp:subject _:b58
] [ sp:object _:b55 ;
sp:predicate rdf:object ;
sp:subject _:b58
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b59
]) ;
sp:where ([ sp:object _:b59 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b57
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
sp:subject _:b59
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b59
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b60
]
] ;
sp:variable _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b61
]
] ;
sp:variable _:b56
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b62 ;
sp:predicate rdf:type ;
sp:subject _:b57
] [ rdf:type sp:TriplePath ;
sp:object _:b63 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b62
] [ sp:object _:b64 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b63
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b64
] [ sp:object _:b56 ;
sp:predicate owl:onProperty ;
sp:subject _:b64
] [ sp:object _:b65 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b64
] [ 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 _:b65
] [ sp:object _:b66 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b59
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b66
] [ sp:object _:b67 ;
sp:predicate sxml:text ;
sp:subject _:b66
] [ sp:object _:b65 ;
sp:predicate rdf:type ;
sp:subject _:b55
] [ sp:object _:b67 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b55
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b68 ;
sp:predicate _:b69 ;
sp:subject _:b70
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b71
] [ sp:object _:b70 ;
sp:predicate rdf:subject ;
sp:subject _:b71
] [ sp:object _:b69 ;
sp:predicate rdf:predicate ;
sp:subject _:b71
] [ sp:object _:b68 ;
sp:predicate rdf:object ;
sp:subject _:b71
] [ sp:object _:b71 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b68
]) ;
sp:where ([ sp:object _:b68 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b70
] [ sp:object _:b72 ;
sp:predicate rdf:type ;
sp:subject _:b68
] [ sp:object _:b73 ;
sp:predicate rdf:type ;
sp:subject _:b70
] [ rdf:type sp:TriplePath ;
sp:object _:b74 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b73
] [ sp:object _:b75 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b74
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b75
] [ sp:object _:b69 ;
sp:predicate owl:onProperty ;
sp:subject _:b75
] [ sp:object _:b72 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b75
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 030 - Construct ep-activity type statements"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b76
]) ;
sp:where ([ sp:object ddr:Cs_activity ;
sp:predicate rdf:type ;
sp:subject _:b76
])
] .
_:b27
sp:varName "rangeType"^^xsd:string .
_:b26
sp:varName "valuesRestriction"^^xsd:string .
_:b25
sp:varName "instClass"^^xsd:string .
_:b24
sp:varName "instType"^^xsd:string .
_:b23
sp:varName "text"^^xsd:string .
_:b22
sp:varName "textNode"^^xsd:string .
_:b21
sp:varName "childLocalName"^^xsd:string .
_:b20
sp:varName "childType"^^xsd:string .
_:b19
sp:varName "child"^^xsd:string .
_:b17
sp:varName "inst"^^xsd:string .
_:b16
sp:varName "dtpnameU"^^xsd:string .
_:b15
sp:varName "dateTime"^^xsd:string .
_:b39
sp:varName "rangeType"^^xsd:string .
_:b38
sp:varName "valuesRestriction"^^xsd:string .
_:b37
sp:varName "instClass"^^xsd:string .
_:b36
sp:varName "instType"^^xsd:string .
_:b35
sp:varName "textNode"^^xsd:string .
_:b34
sp:varName "childLocalName"^^xsd:string .
_:b33
sp:varName "childType"^^xsd:string .
_:b32
sp:varName "child"^^xsd:string .
_:b30
sp:varName "inst"^^xsd:string .
_:b29
sp:varName "dtpnameU"^^xsd:string .
_:b28
sp:varName "text"^^xsd:string .
_:b54
sp:varName "text"^^xsd:string .
_:b53
sp:varName "textNode"^^xsd:string .
_:b52
sp:varName "allValuesRestriction"^^xsd:string .
_:b51
sp:varName "instClass"^^xsd:string .
_:b50
sp:varName "instType"^^xsd:string .
_:b49
sp:varName "childLocalName"^^xsd:string .
_:b48
sp:varName "childType"^^xsd:string .
_:b47
sp:varName "child"^^xsd:string .
_:b45
sp:varName "inst"^^xsd:string .
_:b44
sp:varName "opnameU"^^xsd:string .
_:b43
sp:varName "value"^^xsd:string .
_:b42
sp:varName "uom"^^xsd:string .
_:b40
sp:varName "rangeU"^^xsd:string .
_:b67
sp:varName "text"^^xsd:string .
_:b66
sp:varName "textNode"^^xsd:string .
_:b65
sp:varName "rangeU"^^xsd:string .
_:b64
sp:varName "valuesRestriction"^^xsd:string .
_:b63
sp:varName "instClass"^^xsd:string .
_:b62
sp:varName "instType"^^xsd:string .
_:b61
sp:varName "childLocalName"^^xsd:string .
_:b60
sp:varName "childType"^^xsd:string .
_:b59
sp:varName "child"^^xsd:string .
_:b57
sp:varName "inst"^^xsd:string .
_:b56
sp:varName "opnameU"^^xsd:string .
_:b55
sp:varName "enumeratedValue"^^xsd:string .
_:b75
sp:varName "valuesRestriction"^^xsd:string .
_:b74
sp:varName "instClass"^^xsd:string .
_:b73
sp:varName "instType"^^xsd:string .
_:b72
sp:varName "childType"^^xsd:string .
_:b70
sp:varName "inst"^^xsd:string .
_:b69
sp:varName "formalProperty"^^xsd:string .
_:b68
sp:varName "child"^^xsd:string .
_:b76
sp:varName "activity"^^xsd:string .
_:b10
sp:varName "tcname"^^xsd:string .
_:b9 sp:varName "tcpname"^^xsd:string .
_:b8 sp:varName "pname"^^xsd:string .
_:b7 sp:varName "name"^^xsd:string .
_:b6 sp:varName "c"^^xsd:string .
_:b5 sp:varName "s"^^xsd:string .
_:b4 sp:varName "mre"^^xsd:string .
_:b3 sp:varName "ddrPU"^^xsd:string .
_:b2 sp:varName "ddrCU"^^xsd:string .
_:b1 sp:varName "ddrCPU"^^xsd:string .
_:b14
sp:varName "e"^^xsd:string .
_:b13
sp:varName "s"^^xsd:string .
_:b12
sp:varName "p"^^xsd:string .
_:b11
sp:varName "pp"^^xsd:string .
# Saved by TopBraid on Fri Aug 05 00:36:55 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://spinrdf.org/spin
# imports: http://topbraid.org/sxml
@prefix NPD_110412124707: <file:///www.reportinghub.no/input/NPD_110412124707.xml#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@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 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 xsd: <http://www.w3.org/2001/XMLSchema#> .
ddr:Cs_activity
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:drillReportControlIncidentInfo" .
ddr:Cs_drillReportCoreInfo
sxml:element "witsml:drillReportCoreInfo" .
ddr:Cs_drillReportEquipFailureInfo
sxml:element "witsml:drillReportEquipFailureInfo" .
ddr:Cs_drillReportFormTestInfo
sxml:element "witsml:drillReportFormTestInfo" .
ddr:Cs_drillReportGasReadingInfo
sxml:element "witsml:drillReportGasReadingInfo" .
ddr:Cs_drillReportLithShowInfo
sxml:element "witsml:drillReportLithShowInfo" .
ddr:Cs_drillReportLogInfo
sxml:element "witsml:drillReportLogInfo" .
ddr:Cs_drillReportPerfInfo
sxml:element "witsml:drillReportPerfInfo" .
ddr:Cs_drillReportPorePressure
sxml:element "witsml:drillReportPorePressure" .
ddr:Cs_drillReportStatusInfo
sxml:element "witsml:drillReportStatusInfo" , "witsml:statusInfo"^^xsd:string .
ddr:Cs_drillReportStratInfo
sxml:element "witsml:drillReportStratInfo" .
ddr:Cs_drillReportSurveyStation
sxml:element "witsml:drillReportSurveyStation" .
ddr:Cs_drillReportWellTestInfo
sxml:element "witsml:drillReportWellTestInfo" .
ddr:Cs_drillReportWellboreInfo
sxml:element "witsml:drillReportWellboreInfo" .
ddr:Cs_fluid
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:wellboreAlias"^^xsd:string , "witsml:wellAlias" .
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 020 - Construct all other object properties - WIP"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b3 ;
sp:predicate rdf:subject ;
sp:subject _:b4
] [ sp:object _:b2 ;
sp:predicate rdf:predicate ;
sp:subject _:b4
] [ sp:object _:b1 ;
sp:predicate rdf:object ;
sp:subject _:b4
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b1 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b6 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ 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 _:b6
] [ sp:object _:b8 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b7
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b2 ;
sp:predicate owl:onProperty ;
sp:subject _:b8
] [ sp:object _:b5 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b8
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 003 - Construct datatype string values"^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate _:b10 ;
sp:subject _:b11
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b11 ;
sp:predicate rdf:subject ;
sp:subject _:b12
] [ sp:object _:b10 ;
sp:predicate rdf:predicate ;
sp:subject _:b12
] [ sp:object _:b9 ;
sp:predicate rdf:object ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b13 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b11
] [ sp:object _:b14 ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b13
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b14
] ;
sp:variable _:b15
] [ 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 _:b15
]
] ;
sp:variable _:b10
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b16 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b13
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b9 ;
sp:predicate sxml:text ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ 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 _:b17
] [ sp:object _:b19 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b18
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b19
] [ sp:object _:b10 ;
sp:predicate owl:onProperty ;
sp:subject _:b19
] [ rdf:type sp:TriplePath ;
sp:object xsd:string ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b20
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 006 - Construct Enumerated Values"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate _:b22 ;
sp:subject _:b23
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b23 ;
sp:predicate rdf:subject ;
sp:subject _:b24
] [ sp:object _:b22 ;
sp:predicate rdf:predicate ;
sp:subject _:b24
] [ sp:object _:b21 ;
sp:predicate rdf:object ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b25
]) ;
sp:where ([ sp:object _:b25 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b23
] [ sp:object _:b26 ;
sp:predicate rdf:type ;
sp:subject _:b25
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b25
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:titleCase ;
sp:arg1 [ rdf:type afn:localname ;
sp:arg1 _:b26
]
] ;
sp:variable _:b27
] [ 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 _:b27
]
] ;
sp:variable _:b22
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ rdf:type sp:TriplePath ;
sp:object _:b29 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b29
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b22 ;
sp:predicate owl:onProperty ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b30
] [ 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 _:b31
] [ sp:object _:b32 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b25
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b33 ;
sp:predicate sxml:text ;
sp:subject _:b32
] [ sp:object _:b31 ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b33 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b21
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 004 - Construct UOM values"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate ddr:uom ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate _:b38 ;
sp:subject _:b39
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b39 ;
sp:predicate rdf:subject ;
sp:subject _:b40
] [ sp:object _:b38 ;
sp:predicate rdf:predicate ;
sp:subject _:b40
] [ sp:object _:b37 ;
sp:predicate rdf:object ;
sp:subject _:b40
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b41
]) ;
sp:where ([ sp:object _:b41 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b39
] [ sp:object _:b42 ;
sp:predicate rdf:type ;
sp:subject _:b41
] [ sp:object _:b36 ;
sp:predicate ddr:uom ;
sp:subject _:b41
] [ 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 _:b41
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b42
] ;
sp:variable _:b43
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 [ rdf:type smf:titleCase ;
sp:arg1 _:b43
]
]
] ;
sp:variable _:b38
] [ sp:object owl:ObjectProperty ;
sp:predicate rdf:type ;
sp:subject _:b38
] [ sp:object _:b44 ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ rdf:type sp:TriplePath ;
sp:object _:b45 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b44
] [ sp:object _:b46 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b45
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b34 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b46
] [ sp:object _:b38 ;
sp:predicate owl:onProperty ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b41
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:predicate sxml:text ;
sp:subject _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:double ;
sp:arg1 _:b48
] ;
sp:variable _:b37
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 002 - Construct datatype datetime values"^^xsd:string ;
sp:templates ([ sp:object _:b49 ;
sp:predicate _:b50 ;
sp:subject _:b51
] [ sp:object rdf:Statement ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b51 ;
sp:predicate rdf:subject ;
sp:subject _:b52
] [ sp:object _:b50 ;
sp:predicate rdf:predicate ;
sp:subject _:b52
] [ sp:object _:b49 ;
sp:predicate rdf:object ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#basisFor> ;
sp:subject _:b53
]) ;
sp:where ([ sp:object _:b53 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b51
] [ sp:object _:b54 ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uom ;
sp:subject _:b53
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b54
] ;
sp:variable _:b55
] [ 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 _:b55
]
] ;
sp:variable _:b50
] [ sp:object owl:DatatypeProperty ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b56 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b53
] [ sp:object sxml:TextNode ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:predicate sxml:text ;
sp:subject _:b56
] [ sp:object _:b58 ;
sp:predicate rdf:type ;
sp:subject _:b51
] [ rdf:type sp:TriplePath ;
sp:object _:b59 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b58
] [ sp:object _:b60 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b59
] [ sp:object owl:Restriction ;
sp:predicate rdf:type ;
sp:subject _:b60
] [ sp:object _:b61 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b60
] [ sp:object _:b50 ;
sp:predicate owl:onProperty ;
sp:subject _:b60
] [ rdf:type sp:TriplePath ;
sp:object xsd:dateTime ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:dateTime ;
sp:arg1 _:b57
] ;
sp:variable _:b49
])
] ;
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 _:b62
]) ;
sp:where ([ sp:object ddr:Cs_activity ;
sp:predicate rdf:type ;
sp:subject _:b62
])
] .
ddr:schemaLocation
rdfs:domain ddr:Obj_drillReports ;
sxml:attribute "xsi:schemaLocation"^^xsd:string .
ddr:uom
sxml:attribute "uom"^^xsd:string .
ddr:version
rdfs:domain ddr:DrillReports ;
sxml:attribute "version"^^xsd:string .
<http://www.reportinghub.no/ep/transform/1.1/ddr>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b63 _:b64 _:b65 _:b66) ;
sp:where ([ sp:object _:b66 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b65
] [ sp:object _:b65 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b64
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://topbraid.org/sxsd#Sequence> ;
sp:predicate rdf:type ;
sp:subject _:b64
]) ([ sp:object <http://topbraid.org/sxsd#Choice> ;
sp:predicate rdf:type ;
sp:subject _:b64
]))
] [ sp:object _:b64 ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject _:b63
])
] ;
spin:query
[ rdf:type sp:Select ;
sp:resultVariables (_:b67 _:b68 _:b69 _:b70) ;
sp:where ([ sp:object <http://topbraid.org/sxsd#ComplexType> ;
sp:predicate rdf:type ;
sp:subject _:b71
] [ rdf:type sp:TriplePath ;
sp:object _:b72 ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath <http://www.topbraid.org/2007/05/composite.owl#child>
] ;
sp:subject _:b71
] [ sp:object _:b73 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b71
] [ sp:object _:b70 ;
sp:predicate <http://www.w3.org/ns/sawsdl#modelReference> ;
sp:subject _:b72
] [ sp:object _:b74 ;
sp:predicate <http://topbraid.org/sxsd#name> ;
sp:subject _:b72
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b74
] ;
sp:variable _:b75
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#has" ;
sp:arg2 _:b75
]
] ;
sp:variable _:b69
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:titleCase ;
sp:arg1 _:b73 ;
sp:arg2 "[a-z]s"
] ;
sp:variable _:b76
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/ep/schema/ddr#" ;
sp:arg2 _:b76
]
] ;
sp:variable _:b68
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:buildURI ;
sp:arg1 [ rdf:type fn:concat ;
sp:arg1 "http://www.reportinghub.no/map/ddr#" ;
sp:arg2 _:b76 ;
sp:arg3 "-has" ;
sp:arg4 _:b75
]
] ;
sp:variable _:b67
])
] .
_:b66
sp:varName "e"^^xsd:string .
_:b65
sp:varName "s"^^xsd:string .
_:b64
sp:varName "p"^^xsd:string .
_:b63
sp:varName "pp"^^xsd:string .
_:b76
sp:varName "tcname"^^xsd:string .
_:b75
sp:varName "tcpname"^^xsd:string .
_:b74
sp:varName "pname"^^xsd:string .
_:b73
sp:varName "name"^^xsd:string .
_:b72
sp:varName "c"^^xsd:string .
_:b71
sp:varName "s"^^xsd:string .
_:b70
sp:varName "mre"^^xsd:string .
_:b69
sp:varName "ddrPU"^^xsd:string .
_:b68
sp:varName "ddrCU"^^xsd:string .
_:b67
sp:varName "ddrCPU"^^xsd:string .
_:b8 sp:varName "valuesRestriction"^^xsd:string .
_:b7 sp:varName "instClass"^^xsd:string .
_:b6 sp:varName "instType"^^xsd:string .
_:b5 sp:varName "childType"^^xsd:string .
_:b3 sp:varName "inst"^^xsd:string .
_:b2 sp:varName "formalProperty"^^xsd:string .
_:b1 sp:varName "child"^^xsd:string .
_:b20
sp:varName "rangeType"^^xsd:string .
_:b19
sp:varName "valuesRestriction"^^xsd:string .
_:b18
sp:varName "instClass"^^xsd:string .
_:b17
sp:varName "instType"^^xsd:string .
_:b16
sp:varName "textNode"^^xsd:string .
_:b15
sp:varName "childLocalName"^^xsd:string .
_:b14
sp:varName "childType"^^xsd:string .
_:b13
sp:varName "child"^^xsd:string .
_:b11
sp:varName "inst"^^xsd:string .
_:b10
sp:varName "dtpnameU"^^xsd:string .
_:b9 sp:varName "text"^^xsd:string .
_:b33
sp:varName "text"^^xsd:string .
_:b32
sp:varName "textNode"^^xsd:string .
_:b31
sp:varName "rangeU"^^xsd:string .
_:b30
sp:varName "valuesRestriction"^^xsd:string .
_:b29
sp:varName "instClass"^^xsd:string .
_:b28
sp:varName "instType"^^xsd:string .
_:b27
sp:varName "childLocalName"^^xsd:string .
_:b26
sp:varName "childType"^^xsd:string .
_:b25
sp:varName "child"^^xsd:string .
_:b23
sp:varName "inst"^^xsd:string .
_:b22
sp:varName "opnameU"^^xsd:string .
_:b21
sp:varName "enumeratedValue"^^xsd:string .
_:b48
sp:varName "text"^^xsd:string .
_:b47
sp:varName "textNode"^^xsd:string .
_:b46
sp:varName "allValuesRestriction"^^xsd:string .
_:b45
sp:varName "instClass"^^xsd:string .
_:b44
sp:varName "instType"^^xsd:string .
_:b43
sp:varName "childLocalName"^^xsd:string .
_:b42
sp:varName "childType"^^xsd:string .
_:b41
sp:varName "child"^^xsd:string .
_:b39
sp:varName "inst"^^xsd:string .
_:b38
sp:varName "opnameU"^^xsd:string .
_:b37
sp:varName "value"^^xsd:string .
_:b36
sp:varName "uom"^^xsd:string .
_:b34
sp:varName "rangeU"^^xsd:string .
_:b61
sp:varName "rangeType"^^xsd:string .
_:b60
sp:varName "valuesRestriction"^^xsd:string .
_:b59
sp:varName "instClass"^^xsd:string .
_:b58
sp:varName "instType"^^xsd:string .
_:b57
sp:varName "text"^^xsd:string .
_:b56
sp:varName "textNode"^^xsd:string .
_:b55
sp:varName "childLocalName"^^xsd:string .
_:b54
sp:varName "childType"^^xsd:string .
_:b53
sp:varName "child"^^xsd:string .
_:b51
sp:varName "inst"^^xsd:string .
_:b50
sp:varName "dtpnameU"^^xsd:string .
_:b49
sp:varName "dateTime"^^xsd:string .
_:b62
sp:varName "activity"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 16:09:10 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/activity
# imports: http://www.reportinghub.no/ep/schema/well
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
......@@ -20,611 +28,281 @@
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
rdfs:comment """STEP 103
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate rdf:type ;
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 _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b5 ;
sp:arg2 _:b4
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b11 ;
sp:arg2 _:b9
] ;
sp:variable _:b7
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b13
]) ;
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#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b14
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b17 ;
sp:arg2 _:b15
] ;
sp:variable _:b13
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:predicate rdfs:label ;
sp:subject _:b18
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b18
]) ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
] ;
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b24 ;
sp:arg2 _:b23
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b19
] ;
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b25
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b5
] ;
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103b
Classify a DailyDrillingReport as preliminary"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b26
]) ;
sp:where ([ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b27
sp:arg1 _:b3
] ;
sp:variable _:b29
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b29 ;
sp:arg2 _:b28
sp:arg1 _:b6 ;
sp:arg2 _:b4
] ;
sp:variable _:b26
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity and WellBore
Minimum data - createDate, dTimStart, nameWellBore
Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses (is this useful?)"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b30
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b31 ;
sp:subject _:b8
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:subject _:b7
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:subject _:b7
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b31
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b31
] [ sp:object _:b35 ;
sp:subject _:b12
] [ sp:object _:b12 ;
sp:predicate iso15926:temporalPartOf ;
sp:subject _:b11
] [ sp:object _:b13 ;
sp:predicate rdfs:label ;
sp:subject _:b34
] [ sp:object spin:_this ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
sp:subject _:b30
sp:subject _:b12
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object _:b35 ;
sp:where ([ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b33 ;
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b32 ;
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b35
sp:arg1 _:b13
] ;
sp:variable _:b36
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b32
sp:arg1 _:b14 ;
sp:arg2 _:b9
] ;
sp:variable _:b30
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b33
sp:arg1 _:b14 ;
sp:arg2 _:b10
] ;
sp:variable _:b31
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b36
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b14 ;
sp:arg2 _:b10
] ;
sp:variable _:b34
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b38
]) ;
sp:where ([ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b39
] ;
sp:variable _:b42
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b42 ;
sp:arg2 _:b40
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b14
] ;
sp:variable _:b38
sp:variable _:b12
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b44
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b17
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b15
]) ;
sp:where ([ sp:object _:b45 ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b44 ;
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b48
] [ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b47
sp:subject _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b45
sp:arg1 _:b19
] ;
sp:variable _:b49
sp:variable _:b21
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b49 ;
sp:arg2 _:b46
] ;
sp:variable _:b48
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103c
Classify a DailyDrillingReport as final"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b50
]) ;
sp:where ([ sp:object _:b51 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b52 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b51
sp:arg1 _:b21 ;
sp:arg2 _:b20
] ;
sp:variable _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b53 ;
sp:arg2 _:b52
] ;
sp:variable _:b50
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103a
Classify a DailyDrillingReport as normal"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b54
]) ;
sp:where ([ sp:object _:b55 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b56 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b55
sp:arg1 _:b16
] ;
sp:variable _:b57
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b57 ;
sp:arg2 _:b56
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b22
] ;
sp:variable _:b54
sp:variable _:b15
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b59
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b24
]) ;
sp:where ([ sp:object _:b60 ;
sp:where ([ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b61 ;
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b62 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b62
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b60
sp:arg1 _:b25
] ;
sp:variable _:b63
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b63 ;
sp:arg2 _:b61
sp:arg1 _:b27 ;
sp:arg2 _:b26
] ;
sp:variable _:b59
sp:variable _:b24
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/schema/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b50
sp:varName "dailyDrillingReport"^^xsd:string .
_:b2 sp:varName "dailyDrillingReport"^^xsd:string .
_:b53
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b52
sp:varName "createDate"^^xsd:string .
_:b1 sp:varName "dailyDrillingReportType"^^xsd:string .
_:b51
sp:varName "nameWellBore"^^xsd:string .
_:b5 sp:varName "versionKind"^^xsd:string .
_:b26
sp:varName "dailyDrillingReport"^^xsd:string .
_:b29
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b28
sp:varName "createDate"^^xsd:string .
_:b27
sp:varName "nameWellBore"^^xsd:string .
_:b54
sp:varName "dailyDrillingReport"^^xsd:string .
_:b57
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b56
sp:varName "createDate"^^xsd:string .
_:b55
sp:varName "nameWellBore"^^xsd:string .
_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b4 sp:varName "createDate"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b1 sp:varName "dTimEnd"^^xsd:string .
_:b42
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b41
sp:varName "statusInfo"^^xsd:string .
_:b40
sp:varName "dTimStart"^^xsd:string .
_:b39
sp:varName "nameWellBore"^^xsd:string .
_:b38
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b37
sp:varName "forecast24Hr"^^xsd:string .
_:b63
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b62
sp:varName "statusInfo"^^xsd:string .
_:b61
sp:varName "dTimStart"^^xsd:string .
_:b60
sp:varName "nameWellBore"^^xsd:string .
_:b59
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b58
sp:varName "ropCurrentValue"^^xsd:string .
_:b11
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b10
sp:varName "statusInfo"^^xsd:string .
_:b9 sp:varName "dTimStart"^^xsd:string .
_:b8 sp:varName "nameWellBore"^^xsd:string .
_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b6 sp:varName "sum24Hr"^^xsd:string .
_:b25
_:b22
sp:varName "normalizedWellName"^^xsd:string .
_:b24
_:b21
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b23
_:b20
sp:varName "dTimStart"^^xsd:string .
_:b22
_:b19
sp:varName "nameWellBore"^^xsd:string .
_:b21
_:b18
sp:varName "wellBore"^^xsd:string .
_:b20
_:b17
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b19
_:b16
sp:varName "nameWell"^^xsd:string .
_:b18
_:b15
sp:varName "well"^^xsd:string .
_:b49
_:b14
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b48
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b47
sp:varName "statusInfo"^^xsd:string .
_:b46
sp:varName "dTimStart"^^xsd:string .
_:b45
_:b13
sp:varName "nameWellBore"^^xsd:string .
_:b44
_:b12
sp:varName "wellBore"^^xsd:string .
_:b43
sp:varName "md"^^xsd:string .
_:b17
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b16
sp:varName "statusInfo"^^xsd:string .
_:b11
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b15
_:b10
sp:varName "dTimStart"^^xsd:string .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b9 sp:varName "createDate"^^xsd:string .
_:b13
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b8 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b12
sp:varName "distDrill"^^xsd:string .
_:b7 sp:varName "dailyDrillingReport"^^xsd:string .
_:b36
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b35
sp:varName "nameWellBore"^^xsd:string .
_:b34
sp:varName "wellBore"^^xsd:string .
_:b33
_:b26
sp:varName "dTimStart"^^xsd:string .
_:b32
sp:varName "createDate"^^xsd:string .
_:b25
sp:varName "nameWellBore"^^xsd:string .
_:b31
_:b24
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b30
sp:varName "dailyDrillingReport"^^xsd:string .
_:b23
sp:varName "dTimEnd"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 16:09:10 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdfs:label ;
sp:subject _:b3
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
sp:arg1 _:b4
] ;
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 _:b2
] ;
sp:variable _:b1
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b1 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b3 sp:varName "well"^^xsd:string .
_:b4 sp:varName "nameWell"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 14:25:22 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/schema/report
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/activity
# imports: http://www.reportinghub.no/ep/schema/well
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/schema/activity> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/equipment> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Thu Aug 04 15:55:35 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/well
# imports: http://www.reportinghub.no/ep/schema/activity
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo#> .
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
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#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b6 ;
sp:arg2 _:b4
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 122 Transfer mdDiaPilotPlan"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdDiaPilotPlan> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b12
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdDiaPilotPlan> ;
sp:subject _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b9
] ;
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b13 ;
sp:arg2 _:b10
] ;
sp:variable _:b12
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 110 Transfer tvd"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvd> ;
sp:subject _:b15
]) ;
sp:where ([ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b19
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvd> ;
sp:subject _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b16
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b20 ;
sp:arg2 _:b17
] ;
sp:variable _:b19
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 117 Transfer tvdCsgLast"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdCsgLast> ;
sp:subject _:b22
]) ;
sp:where ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b26
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdCsgLast> ;
sp:subject _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b23
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b24
] ;
sp:variable _:b26
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 123 Transfer tvdDiaPilotPlan"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdDiaPilotPlan> ;
sp:subject _:b29
]) ;
sp:where ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b32
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdDiaPilotPlan> ;
sp:subject
[ sp:varName "statusInfoddr"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b30
] ;
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b33 ;
sp:arg2 _:b31
] ;
sp:variable _:b32
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 112 Transfer diaHole"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDiaHole> ;
sp:subject _:b35
]) ;
sp:where ([ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b38 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b39
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDiaHole> ;
sp:subject _:b38
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b36
] ;
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b40 ;
sp:arg2 _:b37
] ;
sp:variable _:b39
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 115 Transfer diaCsgLast"^^xsd:string ;
sp:templates ([ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDiaCsgLast> ;
sp:subject _:b42
]) ;
sp:where ([ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b42 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b46
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDiaCsgLast> ;
sp:subject _:b45
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b43
] ;
sp:variable _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b47 ;
sp:arg2 _:b44
] ;
sp:variable _:b46
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 126 Transfer WellboreType"^^xsd:string ;
sp:templates ([ sp:object _:b48 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#wellBoreDrillingType> ;
sp:subject _:b49
]) ;
sp:where ([ sp:object _:b50 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b51 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b52 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b53 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTypeWellbore> ;
sp:subject _:b52
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectWellBoreDrillingType ;
sp:arg1 _:b53
] ;
sp:variable _:b48
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b50
] ;
sp:variable _:b54
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b54 ;
sp:arg2 _:b51
] ;
sp:variable _:b49
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b55 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b56
]) ;
sp:where ([ sp:object _:b57 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b59 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b56 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b60
] [ sp:object _:b55 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b59
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b57
] ;
sp:variable _:b61
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b61 ;
sp:arg2 _:b58
] ;
sp:variable _:b60
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 119 Transfer mdStrengthForm"^^xsd:string ;
sp:templates ([ sp:object _:b62 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdStrengthForm> ;
sp:subject _:b63
]) ;
sp:where ([ sp:object _:b64 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b65 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b66 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b63 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b67
] [ sp:object _:b62 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdStrengthForm> ;
sp:subject _:b66
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b64
] ;
sp:variable _:b68
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b68 ;
sp:arg2 _:b65
] ;
sp:variable _:b67
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 114 Transfer mdKickoff"^^xsd:string ;
sp:templates ([ sp:object _:b69 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdKickoff> ;
sp:subject _:b70
]) ;
sp:where ([ sp:object _:b71 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b72 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b73 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b70 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b74
] [ sp:object _:b69 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdKickoff> ;
sp:subject _:b73
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b71
] ;
sp:variable _:b75
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b75 ;
sp:arg2 _:b72
] ;
sp:variable _:b74
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 116 Transfer mdCsgLast"^^xsd:string ;
sp:templates ([ sp:object _:b76 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdCsgLast> ;
sp:subject _:b77
]) ;
sp:where ([ sp:object _:b78 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b79 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b80 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b77 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b81
] [ sp:object _:b76 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdCsgLast> ;
sp:subject _:b80
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b78
] ;
sp:variable _:b82
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b82 ;
sp:arg2 _:b79
] ;
sp:variable _:b81
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b83 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b84
]) ;
sp:where ([ sp:object _:b85 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b86 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b87 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b83 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b87
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b85
] ;
sp:variable _:b88
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b88 ;
sp:arg2 _:b86
] ;
sp:variable _:b84
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 120 Transfer tvdStrengthForm"^^xsd:string ;
sp:templates ([ sp:object _:b89 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdStrengthForm> ;
sp:subject _:b90
]) ;
sp:where ([ sp:object _:b91 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b92 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b93 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b90 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b94
] [ sp:object _:b89 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasTvdStrengthForm> ;
sp:subject _:b93
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b91
] ;
sp:variable _:b95
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b95 ;
sp:arg2 _:b92
] ;
sp:variable _:b94
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b96 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b97
]) ;
sp:where ([ sp:object _:b98 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b99 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b100 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b96 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b100
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b98
] ;
sp:variable _:b101
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b101 ;
sp:arg2 _:b99
] ;
sp:variable _:b97
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 121 Transfer elevKelly"^^xsd:string ;
sp:templates ([ sp:object _:b102 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasElevKelly> ;
sp:subject _:b103
]) ;
sp:where ([ sp:object _:b104 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b105 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b106 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b103 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b107
] [ sp:object _:b102 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasElevKelly> ;
sp:subject _:b106
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b104
] ;
sp:variable _:b108
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b108 ;
sp:arg2 _:b105
] ;
sp:variable _:b107
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 118 Transfer strengthForm"^^xsd:string ;
sp:templates ([ sp:object _:b109 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStrengthForm> ;
sp:subject _:b110
]) ;
sp:where ([ sp:object _:b111 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b112 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b113 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b110 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b114
] [ sp:object _:b109 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStrengthForm> ;
sp:subject _:b113
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b111
] ;
sp:variable _:b115
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b115 ;
sp:arg2 _:b112
] ;
sp:variable _:b114
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b116 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b117
]) ;
sp:where ([ sp:object _:b118 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b119 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b120 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b116 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b120
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b118
] ;
sp:variable _:b121
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b121 ;
sp:arg2 _:b119
] ;
sp:variable _:b117
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 111 Transfer mdPlugTop"^^xsd:string ;
sp:templates ([ sp:object _:b122 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdPlugTop> ;
sp:subject _:b123
]) ;
sp:where ([ sp:object _:b124 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b125 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b126 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b123 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b127
] [ sp:object _:b122 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdPlugTop> ;
sp:subject _:b126
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b124
] ;
sp:variable _:b128
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b128 ;
sp:arg2 _:b125
] ;
sp:variable _:b127
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 125 Transfer presTestType"^^xsd:string ;
sp:templates ([ sp:object _:b129 ;
sp:predicate iso15926:hasPart ;
sp:subject _:b130
] [ sp:object _:b131 ;
sp:predicate rdf:type ;
sp:subject _:b129
]) ;
sp:where ([ sp:object _:b132 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b133 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b134 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b135 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasPresTestType> ;
sp:subject _:b134
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectPressureTestType ;
sp:arg1 _:b135
] ;
sp:variable _:b131
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b132
] ;
sp:variable _:b136
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b136 ;
sp:arg2 _:b133
] ;
sp:variable _:b130
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 113 Transfer mdDiaHoleStart"^^xsd:string ;
sp:templates ([ sp:object _:b137 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdDiaHoleStart> ;
sp:subject _:b138
]) ;
sp:where ([ sp:object _:b139 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b140 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b141 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b138 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b142
] [ sp:object _:b137 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdDiaHoleStart> ;
sp:subject _:b141
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b139
] ;
sp:variable _:b143
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b143 ;
sp:arg2 _:b140
] ;
sp:variable _:b142
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 124 Transfer mdPlanned"^^xsd:string ;
sp:templates ([ sp:object _:b144 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdPlanned> ;
sp:subject _:b145
]) ;
sp:where ([ sp:object _:b146 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b147 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b145 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b148
] [ sp:object _:b144 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMdPlanned> ;
sp:subject
[ sp:varName "statusInfoddr"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b146
] ;
sp:variable _:b149
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b149 ;
sp:arg2 _:b147
] ;
sp:variable _:b148
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/activity> , <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/equipment> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b50
sp:varName "nameWellBore"^^xsd:string .
_:b51
sp:varName "dTimStart"^^xsd:string .
_:b52
sp:varName "statusInfo"^^xsd:string .
_:b53
sp:varName "typeWellBore"^^xsd:string .
_:b48
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b54
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b49
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b132
sp:varName "nameWellBore"^^xsd:string .
_:b133
sp:varName "dTimStart"^^xsd:string .
_:b134
sp:varName "statusInfo"^^xsd:string .
_:b135
sp:varName "presTestType"^^xsd:string .
_:b131
sp:varName "pressureTestType"^^xsd:string .
_:b136
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b130
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b7 sp:varName "mdDiaPilotPlan"^^xsd:string .
_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b9 sp:varName "nameWellBore"^^xsd:string .
_:b10
sp:varName "dTimStart"^^xsd:string .
_:b11
sp:varName "statusInfo"^^xsd:string .
_:b12
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b13
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "sum24Hr"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b5 sp:varName "statusInfo"^^xsd:string .
_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b76
sp:varName "mdCsgLast"^^xsd:string .
_:b77
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b78
sp:varName "nameWellBore"^^xsd:string .
_:b79
sp:varName "dTimStart"^^xsd:string .
_:b80
sp:varName "statusInfo"^^xsd:string .
_:b81
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b82
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b144
sp:varName "mdPlanned"^^xsd:string .
_:b145
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b146
sp:varName "nameWellBore"^^xsd:string .
_:b147
sp:varName "dTimStart"^^xsd:string .
_:b148
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b149
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b34
sp:varName "diaHole"^^xsd:string .
_:b35
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b36
sp:varName "nameWellBore"^^xsd:string .
_:b37
sp:varName "dTimStart"^^xsd:string .
_:b38
sp:varName "statusInfo"^^xsd:string .
_:b39
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b40
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b21
sp:varName "tvdCsgLast"^^xsd:string .
_:b22
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b23
sp:varName "nameWellBore"^^xsd:string .
_:b24
sp:varName "dTimStart"^^xsd:string .
_:b25
sp:varName "statusInfo"^^xsd:string .
_:b26
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b89
sp:varName "tvdStrengthForm"^^xsd:string .
_:b90
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b91
sp:varName "nameWellBore"^^xsd:string .
_:b92
sp:varName "dTimStart"^^xsd:string .
_:b93
sp:varName "statusInfo"^^xsd:string .
_:b94
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b95
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b137
sp:varName "mdDiaHoleStart"^^xsd:string .
_:b138
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b139
sp:varName "nameWellBore"^^xsd:string .
_:b140
sp:varName "dTimStart"^^xsd:string .
_:b141
sp:varName "statusInfo"^^xsd:string .
_:b142
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b143
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b83
sp:varName "forecast24Hr"^^xsd:string .
_:b84
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b85
sp:varName "nameWellBore"^^xsd:string .
_:b86
sp:varName "dTimStart"^^xsd:string .
_:b87
sp:varName "statusInfo"^^xsd:string .
_:b88
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b96
sp:varName "ropCurrentValue"^^xsd:string .
_:b97
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b98
sp:varName "nameWellBore"^^xsd:string .
_:b99
sp:varName "dTimStart"^^xsd:string .
_:b100
sp:varName "statusInfo"^^xsd:string .
_:b101
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b41
sp:varName "diaCsgLast"^^xsd:string .
_:b42
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b43
sp:varName "nameWellBore"^^xsd:string .
_:b44
sp:varName "dTimStart"^^xsd:string .
_:b45
sp:varName "statusInfo"^^xsd:string .
_:b46
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b47
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b102
sp:varName "elevKelly"^^xsd:string .
_:b103
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b104
sp:varName "nameWellBore"^^xsd:string .
_:b105
sp:varName "dTimStart"^^xsd:string .
_:b106
sp:varName "statusInfo"^^xsd:string .
_:b107
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b108
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b122
sp:varName "mdPlugTop"^^xsd:string .
_:b123
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b124
sp:varName "nameWellBore"^^xsd:string .
_:b125
sp:varName "dTimStart"^^xsd:string .
_:b126
sp:varName "statusInfo"^^xsd:string .
_:b127
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b128
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b69
sp:varName "mdKickoff"^^xsd:string .
_:b70
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b71
sp:varName "nameWellBore"^^xsd:string .
_:b72
sp:varName "dTimStart"^^xsd:string .
_:b73
sp:varName "statusInfo"^^xsd:string .
_:b74
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b75
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b62
sp:varName "mdStrengthForm"^^xsd:string .
_:b63
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b64
sp:varName "nameWellBore"^^xsd:string .
_:b65
sp:varName "dTimStart"^^xsd:string .
_:b66
sp:varName "statusInfo"^^xsd:string .
_:b67
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b68
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b116
sp:varName "distDrill"^^xsd:string .
_:b117
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b118
sp:varName "nameWellBore"^^xsd:string .
_:b119
sp:varName "dTimStart"^^xsd:string .
_:b120
sp:varName "statusInfo"^^xsd:string .
_:b121
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b28
sp:varName "tvdDiaPilotPlan"^^xsd:string .
_:b29
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b31
sp:varName "dTimStart"^^xsd:string .
_:b32
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b33
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b55
sp:varName "md"^^xsd:string .
_:b56
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b57
sp:varName "nameWellBore"^^xsd:string .
_:b58
sp:varName "dTimStart"^^xsd:string .
_:b59
sp:varName "statusInfo"^^xsd:string .
_:b60
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b61
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b14
sp:varName "tvd"^^xsd:string .
_:b15
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b16
sp:varName "nameWellBore"^^xsd:string .
_:b17
sp:varName "dTimStart"^^xsd:string .
_:b18
sp:varName "statusInfo"^^xsd:string .
_:b19
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b20
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b109
sp:varName "strengthForm"^^xsd:string .
_:b110
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b111
sp:varName "nameWellBore"^^xsd:string .
_:b112
sp:varName "dTimStart"^^xsd:string .
_:b113
sp:varName "statusInfo"^^xsd:string .
_:b114
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b115
sp:varName "normalizedWellBoreName"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 14:29:43 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://www.reportinghub.no/ep/schema/report
# imports: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://www.reportinghub.no/ep/schema/equipment
# imports: http://purl.org/dc/terms/
# imports: http://www.reportinghub.no/ep/schema/well
# imports: http://www.reportinghub.no/ep/schema/activity
@prefix : <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore>
rdfs:subClassOf iso15926:PossibleIndividual .
<http://www.reportinghub.no/iso15926/bindEP-NativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://purl.org/dc/elements/1.1/> , <http://www.reportinghub.no/ep/schema/activity> , <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://www.w3.org/2004/02/skos/core> , <http://purl.org/dc/terms/> , <http://www.reportinghub.no/ep/schema/equipment> , <http://www.reportinghub.no/ep/schema/well> , <http://www.reportinghub.no/ep/schema/report> , <http://www.reportinghub.no/iso15926/nativeOWL> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 15:12:00 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://purl.org/dc/terms/
@prefix : <http://www.reportinghub.no/iso15926/nativeOWL#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/iso15926/nativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://www.w3.org/2004/02/skos/core> , <http://purl.org/dc/terms/> , <http://purl.org/dc/elements/1.1/> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
:Activity
rdf:type owl:Class ;
rdfs:label "activity"^^xsd:string ;
rdfs:subClassOf :PossibleIndividual .
:PossibleIndividual
rdf:type owl:Class ;
rdfs:label "possible individual"^^xsd:string ;
rdfs:subClassOf owl:Thing .
:hasPart
rdf:type owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "has part"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :partOf .
:hasTemporalPart
rdf:type owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "has temporal part"^^xsd:string ;
rdfs:range :PossibleIndividual ;
rdfs:subPropertyOf :hasPart ;
owl:inverseOf :temporalPartOf .
:partOf
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "part of"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :hasPart .
:temporalPartOf
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "temporal part of"^^xsd:string ;
rdfs:range :PossibleIndividual ;
rdfs:subPropertyOf :partOf ;
owl:inverseOf :hasTemporalPart .
......@@ -14,6 +14,11 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://spinrdf.org/arg#company>
rdf:type rdf:Property ;
rdfs:label "company"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://spinrdf.org/arg#id>
rdf:type rdf:Property ;
rdfs:label "id"^^xsd:string ;
......@@ -42,7 +47,7 @@
<http://www.reportinghub.no/spin/rh>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1/schema/npd> ;
owl:versionInfo "0.1.0"^^xsd:string .
rhspin:GetWellBoresOfWell
......@@ -118,6 +123,68 @@ rhspin:companyById
spl:valueType xsd:string
] .
rhspin:companyHasLicenceForWellBore
rdf:type spin:MagicProperty ;
rdfs:comment "A magic property that defines a relationship between companies (left side) and well bores (right side). It matches those well bores that the company currently holds a licence for. The query is optimized for the direction when the company is given and the well bores variable."^^xsd:string ;
rdfs:label "company has licence for well bore"^^xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:date ;
sp:arg1 [ rdf:type fn:substring ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ rdf:type sp:now
]
] ;
sp:arg2 1 ;
sp:arg3 10
]
] ;
sp:variable _:b4
] [ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/schema/npd#shareHolder> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/schema/npd#licenceShared> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/schema/npd#LS_Active> ;
sp:predicate <http://www.reportinghub.no/schema/npd#licenseStatus> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/schema/npd#startDate> ;
sp:subject _:b6
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:le ;
sp:arg1 _:b7 ;
sp:arg2 _:b4
]
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/schema/npd#endDate> ;
sp:subject _:b6
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:gt ;
sp:arg1 _:b8 ;
sp:arg2 _:b4
]
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/schema/npd#drilledInProductionLicence> ;
sp:subject _:b3
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The Company to match."^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/schema/npd#Company>
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> .
rhspin:discoveryById
rdf:type spin:Function ;
rdfs:label "discovery by id"^^xsd:string ;
......@@ -214,7 +281,7 @@ rhspin:normalizeString
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
......@@ -222,67 +289,67 @@ rhspin:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b4
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b4
sp:arg1 _:b10
] ;
sp:variable _:b5
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b5
sp:arg1 _:b11
] ;
sp:variable _:b6
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b6 ;
sp:arg1 _:b12 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b7
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b7 ;
sp:arg1 _:b13 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b8
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b8 ;
sp:arg1 _:b14 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b9
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b9 ;
sp:arg1 _:b15 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b10
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b10 ;
sp:arg1 _:b16 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b11
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b11
sp:arg1 _:b17
]
] ;
sp:variable _:b3
sp:variable _:b9
])
] ;
spin:constraint
......@@ -401,26 +468,44 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
_:b3 sp:varName "normalizedStr"^^xsd:string .
_:b3 sp:varName "wellBore"^^xsd:string .
_:b4 sp:varName "s1"^^xsd:string .
_:b8 sp:varName "endDate"^^xsd:string .
_:b5 sp:varName "s2"^^xsd:string .
_:b7 sp:varName "startDate"^^xsd:string .
_:b6 sp:varName "t0a"^^xsd:string .
_:b6 sp:varName "licence"^^xsd:string .
_:b7 sp:varName "t0b"^^xsd:string .
_:b5 sp:varName "share"^^xsd:string .
_:b8 sp:varName "t1"^^xsd:string .
_:b4 sp:varName "nowDate"^^xsd:string .
_:b9 sp:varName "t2"^^xsd:string .
_:b17
sp:varName "t4"^^xsd:string .
_:b10
_:b16
sp:varName "t3"^^xsd:string .
_:b15
sp:varName "t2"^^xsd:string .
_:b14
sp:varName "t1"^^xsd:string .
_:b13
sp:varName "t0b"^^xsd:string .
_:b12
sp:varName "t0a"^^xsd:string .
_:b11
sp:varName "t4"^^xsd:string .
sp:varName "s2"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
_:b10
sp:varName "s1"^^xsd:string .
_:b9 sp:varName "normalizedStr"^^xsd:string .
_:b2 sp:varName "wellBore"^^xsd:string .
_:b1 sp:varName "wellBoreName"^^xsd:string .
......
<html>
<head>
<title>ReportingHub - Upload DDR</title>
<title>ReportingHub - Validate or Upload DDR</title>
<link href="lib/rh/rh.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/rh/jquery/jquery.js"></script>
</head>
<body>
<div id="wrapper">
......@@ -9,16 +10,31 @@
<rhswp:Header />
<div id="content">
<h3>Upload a Daily Drilling Report</h3>
<h3>Validate or Upload a Daily Drilling Report</h3>
<p>
Please select a DDR XML file:
</p>
<form action="ddrFileUpload" enctype="multipart/form-data" method="post">
<form enctype="multipart/form-data" id="theForm" method="post">
<div>
<input name="file" type="file" />
</div>
<br />
<input type="submit" value="Upload" />
<input id="validateButton" type="radio" name="type" value="validate" checked="checked" />Validate only<br />
<input id="uploadButton" type="radio" name="type" value="upload" />Validate &amp; upload<br />
<script>
function updateAction() {
var newAction = $("#validateButton").attr("checked") ? "validate-report" : "submit-report";
$("#theForm").attr("action", newAction);
}
$("#validateButton").change(updateAction);
$("#uploadButton").change(updateAction);
updateAction();
</script>
<br />
<input type="submit" value="Submit" />
</form>
</div>
</div>
......