David Price

Fixed NPD graph access in transforms - GRAPH keyword

# 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
# 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#> .
......@@ -19,7 +18,7 @@
<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: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>
......@@ -217,77 +216,77 @@
])
] .
_:b20
sp:varName "nameWellBore"^^xsd:string .
_:b21
sp:varName "dTimStart"^^xsd:string .
_:b22
sp:varName "lithShowInfo"^^xsd:string .
_:b32
sp:varName "localname"^^xsd:string .
_:b6 sp:varName "dTimEnd"^^xsd:string .
_:b31
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b23
sp:varName "mdTop"^^xsd:string .
_:b30
sp:varName "uomTvdBottom"^^xsd:string .
_:b24
sp:varName "uomMdTop"^^xsd:string .
_:b29
sp:varName "tvdBottom"^^xsd:string .
_:b7 sp:varName "realMdTop"^^xsd:string .
_:b28
sp:varName "uomTvdTop"^^xsd:string .
_:b25
sp:varName "mdBottom"^^xsd:string .
_:b27
sp:varName "tvdTop"^^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 .
_:b25
sp:varName "mdBottom"^^xsd:string .
_:b13
sp:varName "realTvdTop"^^xsd:string .
_:b24
sp:varName "uomMdTop"^^xsd:string .
_:b29
sp:varName "tvdBottom"^^xsd:string .
_:b23
sp:varName "mdTop"^^xsd:string .
_:b30
sp:varName "uomTvdBottom"^^xsd:string .
_:b22
sp:varName "lithShowInfo"^^xsd:string .
_:b16
sp:varName "realTvdBottom"^^xsd:string .
_:b21
sp:varName "dTimStart"^^xsd:string .
_:b18
sp:varName "show"^^xsd:string .
_:b20
sp:varName "nameWellBore"^^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 .
_:b18
sp:varName "show"^^xsd:string .
_:b1 sp:varName "lithShowObservation"^^xsd:string .
_:b17
sp:varName "lengthScaleTvdBottom"^^xsd:string .
_:b8 sp:varName "lengthScaleMdTop"^^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 .
_:b17
sp:varName "lengthScaleTvdBottom"^^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
# 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#> .
......@@ -19,7 +18,7 @@
<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: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>
......@@ -187,66 +186,66 @@
])
] .
_:b17
sp:varName "nameWellBore"^^xsd:string .
_:b18
sp:varName "dTimStart"^^xsd:string .
_:b19
sp:varName "porePressure"^^xsd:string .
_:b15
sp:varName "timeOfDetermination"^^xsd:string .
_:b28
sp:varName "localname"^^xsd:string .
_:b20
sp:varName "md"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b21
sp:varName "uomMd"^^xsd:string .
_:b26
sp:varName "uomTvd"^^xsd:string .
_:b7 sp:varName "realMd"^^xsd:string .
_:b25
sp:varName "tvd"^^xsd:string .
_:b22
sp:varName "enumReadingKind"^^xsd:string .
_:b24
sp:varName "uomWt"^^xsd:string .
_:b23
sp:varName "equivalentMudWeight"^^xsd:string .
_:b24
sp:varName "uomWt"^^xsd:string .
_:b22
sp:varName "enumReadingKind"^^xsd:string .
_:b13
sp:varName "realWt"^^xsd:string .
_:b21
sp:varName "uomMd"^^xsd:string .
_:b25
sp:varName "tvd"^^xsd:string .
_:b20
sp:varName "md"^^xsd:string .
_:b26
sp:varName "uomTvd"^^xsd:string .
_:b19
sp:varName "porePressure"^^xsd:string .
_:b10
sp:varName "realTvd"^^xsd:string .
_:b18
sp:varName "dTimStart"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b17
sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b16
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b28
sp:varName "localname"^^xsd:string .
_:b15
sp:varName "timeOfDetermination"^^xsd:string .
_:b1 sp:varName "porePressureDetermination"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b8 sp:varName "lengthScaleMd"^^xsd:string .
_:b13
sp:varName "realWt"^^xsd:string .
_:b11
sp:varName "lengthScaleTvd"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b10
sp:varName "realTvd"^^xsd:string .
_:b16
sp:varName "porePressureDeterminationType"^^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:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "well"^^xsd:string
[ 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:varName "temporalPartOfAWell"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ 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 ;
......
# 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
......@@ -16,5 +14,5 @@
<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: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#> .
......