David Leal

Use of temporal parts of a WellBore; splitting of rules between

drillReport and statusInfo; mapping to ISO 15926 for temporalPartOf
# Saved by TopBraid on Thu Aug 04 10:27:48 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo#> .
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b6 ;
sp:arg2 _:b4
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b9
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b12 ;
sp:arg2 _:b10
] ;
sp:variable _:b8
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b14
]) ;
sp:where ([ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b18
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b15
] ;
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b19 ;
sp:arg2 _:b16
] ;
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b21
]) ;
sp:where ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
] ;
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b25 ;
sp:arg2 _:b23
] ;
sp:variable _:b21
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b27
]) ;
sp:where ([ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b28
] ;
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b31 ;
sp:arg2 _:b29
] ;
sp:variable _:b27
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b6 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b5 sp:varName "statusInfo"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b1 sp:varName "distDrill"^^xsd:string .
_:b12
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b11
sp:varName "statusInfo"^^xsd:string .
_:b10
sp:varName "dTimStart"^^xsd:string .
_:b9 sp:varName "nameWellBore"^^xsd:string .
_:b8 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b7 sp:varName "forecast24Hr"^^xsd:string .
_:b19
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b18
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b17
sp:varName "statusInfo"^^xsd:string .
_:b16
sp:varName "dTimStart"^^xsd:string .
_:b15
sp:varName "nameWellBore"^^xsd:string .
_:b14
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b13
sp:varName "md"^^xsd:string .
_:b31
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b30
sp:varName "statusInfo"^^xsd:string .
_:b29
sp:varName "dTimStart"^^xsd:string .
_:b28
sp:varName "nameWellBore"^^xsd:string .
_:b27
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b26
sp:varName "sum24Hr"^^xsd:string .
_:b25
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b24
sp:varName "statusInfo"^^xsd:string .
_:b23
sp:varName "dTimStart"^^xsd:string .
_:b22
sp:varName "nameWellBore"^^xsd:string .
_:b21
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b20
sp:varName "ropCurrentValue"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 10:01:34 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://www.reportinghub.no/ep/schema/1.1.1/ddr
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://purl.org/dc/terms/
@prefix : <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore>
rdfs:subClassOf iso15926:PossibleIndividual .
<http://www.reportinghub.no/iso15926/bindEP-NativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1.1/ddr> , <http://www.reportinghub.no/iso15926/nativeOWL> , <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://www.w3.org/2004/02/skos/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# Saved by TopBraid on Thu Aug 04 09:41:43 BST 2011
# baseURI: http://www.reportinghub.no/iso15926/nativeOWL
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2004/02/skos/core
# imports: http://purl.org/dc/terms/
@prefix : <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/iso15926/nativeOWL>
rdf:type owl:Ontology ;
owl:imports <http://purl.org/dc/elements/1.1/> , <http://purl.org/dc/terms/> , <http://www.w3.org/2004/02/skos/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
:PossibleIndividual
rdf:type owl:Class ;
rdfs:label "possible individual"^^xsd:string ;
rdfs:subClassOf owl:Thing .
:hasTemporalPart
rdf:type owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "has temporal part"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :temporalPartOf .
:temporalPartOf
rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
rdfs:domain :PossibleIndividual ;
rdfs:label "temporal part of"^^xsd:string ;
rdfs:range :PossibleIndividual ;
owl:inverseOf :hasTemporalPart .