David Price

Fixed NPD graph access in transforms - GRAPH keyword

# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://spinrdf.org/spin
# imports: http://www.energistics.org/schemas/abstract
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 105
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dailyDrillingReportType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "versionKind"^^xsd:string
] ;
sp:predicate ddr:versionKindRef ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 [ sp:varName "versionKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReportType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "createDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReport"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://spinrdf.org/spin
# imports: http://www.energistics.org/schemas/abstract
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Create Well Part"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "well"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameWell"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWell ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore
Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
Optional data - extendedReport
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "dailyDrillingActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate ddr:dTimEnd ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "extendedReport"^^xsd:string
] ;
sp:predicate ddr:extendedReportRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "extendedReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate ddr:dTim ;
sp:subject
[ sp:varName "extendedReport"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "createDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
] ;
sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName
[ rdf:type xsd:string ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
]
] ;
sp:variable
[ sp:varName "wellBore"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Create Well Part"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "well"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameWell"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWell ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] .
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "dailyDrillingActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate ddr:dTimEnd ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "extendedReport"^^xsd:string
] ;
sp:predicate ddr:extendedReportRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "extendedReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate ddr:dTim ;
sp:subject
[ sp:varName "extendedReport"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "createDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
] ;
sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName
[ rdf:type xsd:string ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
]
] ;
sp:variable
[ sp:varName "wellBore"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 105
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dailyDrillingReportType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "versionKind"^^xsd:string
] ;
sp:predicate ddr:versionKindRef ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 [ sp:varName "versionKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReportType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "createDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReport"^^xsd:string
]
])
] .
......
# Saved by TopBraid on Fri Oct 28 14:50:19 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/lithShowInfo>
rdf:type owl:Ontology ;
owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 200 Create a Lithology and shows observation activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#LithologyAndShowsObservation> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate _:b8 ;
sp:subject _:b4
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate _:b11 ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate _:b14 ;
sp:subject _:b12
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate _:b17 ;
sp:subject _:b15
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#showDescription> ;
sp:subject _:b3
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#lithologyDescription> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b20 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/1series#lithShowInfoRef> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b23
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b23
] [ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
sp:subject _:b22
] [ sp:object _:b26 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b25
] [ sp:object _:b10 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b27 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ;
sp:subject _:b22
] [ sp:object _:b28 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b27
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b27
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b29 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ;
sp:subject _:b22
] [ sp:object _:b30 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b29
] [ sp:object _:b16 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b29
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/1series#show> ;
sp:subject _:b22
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/1series#lithology> ;
sp:subject _:b22
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b20
] ;
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b31 ;
sp:arg2 _:b21
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b22
] ;
sp:variable _:b32
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildLithShowObservationURI ;
sp:arg1 _:b31 ;
sp:arg2 _:b21 ;
sp:arg3 _:b32
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b24
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b28
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b26
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b30
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 _:b20
]
] ;
sp:variable _:b5
])
] .
_:b20
sp:varName "nameWellBore"^^xsd:string .
_:b21
sp:varName "dTimStart"^^xsd:string .
_:b22
sp:varName "lithShowInfo"^^xsd:string .
_:b6 sp:varName "dTimEnd"^^xsd:string .
_:b23
sp:varName "mdTop"^^xsd:string .
_:b24
sp:varName "uomMdTop"^^xsd:string .
_:b7 sp:varName "realMdTop"^^xsd:string .
_:b25
sp:varName "mdBottom"^^xsd:string .
_:b26
sp:varName "uomMdBottom"^^xsd:string .
_:b10
sp:varName "realMdBottom"^^xsd:string .
_:b27
sp:varName "tvdTop"^^xsd:string .
_:b28
sp:varName "uomTvdTop"^^xsd:string .
_:b13
sp:varName "realTvdTop"^^xsd:string .
_:b29
sp:varName "tvdBottom"^^xsd:string .
_:b30
sp:varName "uomTvdBottom"^^xsd:string .
_:b16
sp:varName "realTvdBottom"^^xsd:string .
_:b18
sp:varName "show"^^xsd:string .
_:b19
sp:varName "lithology"^^xsd:string .
_:b31
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b32
sp:varName "localname"^^xsd:string .
_:b1 sp:varName "lithShowObservation"^^xsd:string .
_:b8 sp:varName "lengthScaleMdTop"^^xsd:string .
_:b14
sp:varName "lengthScaleTvdTop"^^xsd:string .
_:b11
sp:varName "lengthScaleMdBottom"^^xsd:string .
_:b17
sp:varName "lengthScaleTvdBottom"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/lithShowInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 200 Create a Lithology and shows observation activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#LithologyAndShowsObservation> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate _:b8 ;
sp:subject _:b4
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate _:b11 ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate _:b14 ;
sp:subject _:b12
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate _:b17 ;
sp:subject _:b15
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#showDescription> ;
sp:subject _:b3
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#lithologyDescription> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b20 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/1series#lithShowInfoRef> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b23
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b23
] [ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
sp:subject _:b22
] [ sp:object _:b26 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b25
] [ sp:object _:b10 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b27 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ;
sp:subject _:b22
] [ sp:object _:b28 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b27
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b27
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b29 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ;
sp:subject _:b22
] [ sp:object _:b30 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b29
] [ sp:object _:b16 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b29
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/1series#show> ;
sp:subject _:b22
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/1series#lithology> ;
sp:subject _:b22
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b20
] ;
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b31 ;
sp:arg2 _:b21
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b22
] ;
sp:variable _:b32
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildLithShowObservationURI ;
sp:arg1 _:b31 ;
sp:arg2 _:b21 ;
sp:arg3 _:b32
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b24
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b28
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b26
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b30
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 _:b20
]
] ;
sp:variable _:b5
])
] .
_:b32
sp:varName "localname"^^xsd:string .
_:b31
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b30
sp:varName "uomTvdBottom"^^xsd:string .
_:b29
sp:varName "tvdBottom"^^xsd:string .
_:b28
sp:varName "uomTvdTop"^^xsd:string .
_:b27
sp:varName "tvdTop"^^xsd:string .
_:b26
sp:varName "uomMdBottom"^^xsd:string .
_:b25
sp:varName "mdBottom"^^xsd:string .
_:b24
sp:varName "uomMdTop"^^xsd:string .
_:b23
sp:varName "mdTop"^^xsd:string .
_:b22
sp:varName "lithShowInfo"^^xsd:string .
_:b21
sp:varName "dTimStart"^^xsd:string .
_:b20
sp:varName "nameWellBore"^^xsd:string .
_:b19
sp:varName "lithology"^^xsd:string .
_:b18
sp:varName "show"^^xsd:string .
_:b17
sp:varName "lengthScaleTvdBottom"^^xsd:string .
_:b16
sp:varName "realTvdBottom"^^xsd:string .
_:b14
sp:varName "lengthScaleTvdTop"^^xsd:string .
_:b13
sp:varName "realTvdTop"^^xsd:string .
_:b11
sp:varName "lengthScaleMdBottom"^^xsd:string .
_:b10
sp:varName "realMdBottom"^^xsd:string .
_:b8 sp:varName "lengthScaleMdTop"^^xsd:string .
_:b7 sp:varName "realMdTop"^^xsd:string .
_:b6 sp:varName "dTimEnd"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b1 sp:varName "lithShowObservation"^^xsd:string .
......
# Saved by TopBraid on Fri Oct 28 15:51:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/porePressure>
rdf:type owl:Ontology ;
owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 180 Create a PorePressureDetermination activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate _:b8 ;
sp:subject _:b6
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate _:b11 ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#porePressureEquivalentMudDensity> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate _:b14 ;
sp:subject _:b12
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b1
] [ sp:object _:b16 ;
sp:predicate rdf:type ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b17 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/1series#porePressureRef> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
sp:subject _:b19
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b20
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/1series#readingKindRef> ;
sp:subject _:b19
] [ sp:object _:b23 ;
sp:predicate <http://www.witsml.org/schemas/1series#equivalentMudWeightRef> ;
sp:subject _:b19
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b23
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b23
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ;
sp:subject _:b19
] [ sp:object _:b26 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b25
] [ sp:object _:b10 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b17
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b18
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b19
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPorePressureDeterminationURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b18 ;
sp:arg3 _:b28
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b21
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b26
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDensityScale ;
sp:arg1 _:b24
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectPorePressureDeterminationType ;
sp:arg1 _:b22
] ;
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 _:b17
]
] ;
sp:variable _:b5
])
] .
_:b17
sp:varName "nameWellBore"^^xsd:string .
_:b18
sp:varName "dTimStart"^^xsd:string .
_:b19
sp:varName "porePressure"^^xsd:string .
_:b15
sp:varName "timeOfDetermination"^^xsd:string .
_:b20
sp:varName "md"^^xsd:string .
_:b21
sp:varName "uomMd"^^xsd:string .
_:b7 sp:varName "realMd"^^xsd:string .
_:b22
sp:varName "enumReadingKind"^^xsd:string .
_:b23
sp:varName "equivalentMudWeight"^^xsd:string .
_:b24
sp:varName "uomWt"^^xsd:string .
_:b13
sp:varName "realWt"^^xsd:string .
_:b25
sp:varName "tvd"^^xsd:string .
_:b26
sp:varName "uomTvd"^^xsd:string .
_:b10
sp:varName "realTvd"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b28
sp:varName "localname"^^xsd:string .
_:b1 sp:varName "porePressureDetermination"^^xsd:string .
_:b8 sp:varName "lengthScaleMd"^^xsd:string .
_:b11
sp:varName "lengthScaleTvd"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b16
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@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/transform/1.1/ddr/porePressure>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 180 Create a PorePressureDetermination activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate _:b8 ;
sp:subject _:b6
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate _:b11 ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#porePressureEquivalentMudDensity> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate _:b14 ;
sp:subject _:b12
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b1
] [ sp:object _:b16 ;
sp:predicate rdf:type ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b17 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/1series#porePressureRef> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
sp:subject _:b19
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b20
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/1series#readingKindRef> ;
sp:subject _:b19
] [ sp:object _:b23 ;
sp:predicate <http://www.witsml.org/schemas/1series#equivalentMudWeightRef> ;
sp:subject _:b19
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b23
] [ sp:object _:b13 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b23
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ;
sp:subject _:b19
] [ sp:object _:b26 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b25
] [ sp:object _:b10 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b17
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b18
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b19
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildPorePressureDeterminationURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b18 ;
sp:arg3 _:b28
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b21
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b26
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDensityScale ;
sp:arg1 _:b24
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectPorePressureDeterminationType ;
sp:arg1 _:b22
] ;
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 _:b17
]
] ;
sp:variable _:b5
])
] .
_:b28
sp:varName "localname"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b26
sp:varName "uomTvd"^^xsd:string .
_:b25
sp:varName "tvd"^^xsd:string .
_:b24
sp:varName "uomWt"^^xsd:string .
_:b23
sp:varName "equivalentMudWeight"^^xsd:string .
_:b22
sp:varName "enumReadingKind"^^xsd:string .
_:b21
sp:varName "uomMd"^^xsd:string .
_:b20
sp:varName "md"^^xsd:string .
_:b19
sp:varName "porePressure"^^xsd:string .
_:b18
sp:varName "dTimStart"^^xsd:string .
_:b17
sp:varName "nameWellBore"^^xsd:string .
_:b16
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b15
sp:varName "timeOfDetermination"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b13
sp:varName "realWt"^^xsd:string .
_:b11
sp:varName "lengthScaleTvd"^^xsd:string .
_:b10
sp:varName "realTvd"^^xsd:string .
_:b8 sp:varName "lengthScaleMd"^^xsd:string .
_:b7 sp:varName "realMd"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b1 sp:varName "porePressureDetermination"^^xsd:string .
......
This diff could not be displayed because it is too large.
......@@ -22,13 +22,13 @@
<http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "name"^^xsd:string
] ;
......@@ -36,7 +36,7 @@ ddr:Obj_drillReport
[ sp:varName "labelOfSystem"^^xsd:string
] ;
sp:subject
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -50,43 +50,46 @@ ddr:Obj_drillReport
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellAlias"^^xsd:string
[ sp:varName "wellBoreAlias"^^xsd:string
] ;
sp:predicate ddr:wellAliasRef ;
sp:predicate ddr:wellboreAliasRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "wellAlias"^^xsd:string
[ sp:varName "wellBoreAlias"^^xsd:string
]
] [ sp:object
[ sp:varName "namingSystem"^^xsd:string
] ;
sp:predicate ddr:namingSystemRef ;
sp:subject
[ sp:varName "wellAlias"^^xsd:string
[ sp:varName "wellBoreAlias"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWell"^^xsd:string
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWell ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWell"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "well"^^xsd:string
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......@@ -120,7 +123,7 @@ ddr:Obj_drillReport
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ;
rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "name"^^xsd:string
] ;
......@@ -128,7 +131,7 @@ ddr:Obj_drillReport
[ sp:varName "labelOfSystem"^^xsd:string
] ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "well"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -142,43 +145,46 @@ ddr:Obj_drillReport
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellBoreAlias"^^xsd:string
[ sp:varName "wellAlias"^^xsd:string
] ;
sp:predicate ddr:wellboreAliasRef ;
sp:predicate ddr:wellAliasRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "wellBoreAlias"^^xsd:string
[ sp:varName "wellAlias"^^xsd:string
]
] [ sp:object
[ sp:varName "namingSystem"^^xsd:string
] ;
sp:predicate ddr:namingSystemRef ;
sp:subject
[ sp:varName "wellBoreAlias"^^xsd:string
[ sp:varName "wellAlias"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
[ sp:varName "temporalPartOfAWell"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:predicate ep-activity:onWell ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "well"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "temporalPartOfAWell"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "well"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-facility: <http://www.reportinghub.no/ep/schema/facility#> .
@prefix ep-org: <http://www.reportinghub.no/ep/schema/organization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-facility: <http://www.reportinghub.no/ep/schema/facility#> .
@prefix ep-org: <http://www.reportinghub.no/ep/schema/organization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate ddr:dTimSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate ep-activity:drillingContractor ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ddr:drillContractor ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameContractor"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContractorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedContractorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "contractor"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b2
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "rigAlias"^^xsd:string
] ;
sp:predicate ddr:rigAliasRef ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "code"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedCode"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildRigURI ;
sp:arg1 [ sp:varName "normalizedCode"^^xsd:string
]
] ;
sp:variable
[ sp:varName "rig"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate ddr:dateDrillComplete ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 168 Transfer fixedRig
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "fixedRig"^^xsd:string
] ;
sp:predicate ddr:fixedRig ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
sp:arg1 [ sp:varName "fixedRig"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b1
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "rigAlias"^^xsd:string
] ;
sp:predicate ddr:rigAliasRef ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "code"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedCode"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildRigURI ;
sp:arg1 [ sp:varName "normalizedCode"^^xsd:string
]
] ;
sp:variable
[ sp:varName "rig"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate ddr:dateDrillComplete ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 169a Transfer waterDepth
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:SurroundingWater ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate ep-facility:depthOfSurroundingWater ;
sp:subject _:b2
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "waterDepth"^^xsd:string
] ;
sp:predicate ddr:waterDepthRef ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "waterDepth"^^xsd:string
]
] [ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uomRef ;
sp:subject
[ sp:varName "waterDepth"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 [ sp:varName "uom"^^xsd:string
]
] ;
sp:variable
[ sp:varName "lengthScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "fixedRig"^^xsd:string
] ;
sp:predicate ddr:fixedRig ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
sp:arg1 [ sp:varName "fixedRig"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b4
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b3
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b5
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object _:b8 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b8
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject _:b9
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b9
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b9
]))
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b6
] ;
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b10 ;
sp:arg2 _:b7
] ;
sp:variable _:b4
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate ep-activity:drillingOperator ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object
[ sp:varName "nameOperator"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b11
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameOperator"^^xsd:string
] ;
sp:predicate ddr:operator ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 169 Transfer elevKelly
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
sp:subject _:b4
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "elevKelly"^^xsd:string
] ;
sp:predicate ddr:elevKellyRef ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "elevKelly"^^xsd:string
]
] [ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uomRef ;
sp:subject
[ sp:varName "elevKelly"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 [ sp:varName "uom"^^xsd:string
]
] ;
sp:variable
[ sp:varName "lengthScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate ddr:dTimPreSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate ddr:dTimSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b7
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b6
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b8
]) ;
sp:where ([ sp:object _:b9 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object _:b11 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b11
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject _:b12
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b12
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b12
]))
])
] [ 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 _:b7
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate ep-activity:drillingContractor ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b14
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ddr:drillContractor ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameContractor"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContractorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedContractorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "contractor"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate ep-activity:drillingOperator ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object
[ sp:varName "nameOperator"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b15
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameOperator"^^xsd:string
] ;
sp:predicate ddr:operator ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] .
_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b9 sp:varName "nameWellBore"^^xsd:string .
_:b10
sp:varName "dTimStart"^^xsd:string .
_:b11
sp:varName "wellboreInfo"^^xsd:string .
_:b12
sp:varName "rigAlias"^^xsd:string .
_:b13
sp:varName "normalizedWellBoreName"^^xsd:string .
[] rdf:type sp:Modify .
[] rdf:type fn:starts-with .
[] rdf:type smf:trim .
[] rdf:type smf:regex .
([] [] [ rdf:type sp:Filter
] [ rdf:type sp:Bind
]) .
([]) .
([]) .
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
sp:subject _:b12
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b13
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "elevKelly"^^xsd:string
] ;
sp:predicate ddr:elevKellyRef ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "elevKelly"^^xsd:string
]
] [ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uomRef ;
sp:subject
[ sp:varName "elevKelly"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 [ sp:varName "uom"^^xsd:string
]
] ;
sp:variable
[ sp:varName "lengthScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 169a Transfer waterDepth
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:SurroundingWater ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate ep-facility:depthOfSurroundingWater ;
sp:subject _:b14
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b15
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "waterDepth"^^xsd:string
] ;
sp:predicate ddr:waterDepthRef ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "waterDepth"^^xsd:string
]
] [ sp:object
[ sp:varName "uom"^^xsd:string
] ;
sp:predicate ddr:uomRef ;
sp:subject
[ sp:varName "waterDepth"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 [ sp:varName "uom"^^xsd:string
]
] ;
sp:variable
[ sp:varName "lengthScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate ddr:dTimPreSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
])
] .
[] rdf:type sp:Modify .
[] rdf:type fn:starts-with .
[] rdf:type smf:trim .
[] rdf:type smf:regex .
_:b10
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "rigAlias"^^xsd:string .
_:b8 sp:varName "wellboreInfo"^^xsd:string .
_:b7 sp:varName "dTimStart"^^xsd:string .
_:b6 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dailyDrillingActivity"^^xsd:string .
([]) .
([]) .
([] [] [ rdf:type sp:Filter
] [ rdf:type sp:Bind
]) .
......
# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011
# baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
@prefix : <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest#> .
@prefix collector: <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
@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/test/ddr/TEST_ddr-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
@prefix : <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest#> .
@prefix collector: <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
@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/test/ddr/TEST_ddr-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......