David Leal

Mapping of Well and WellBore aliases added

# Saved by TopBraid on Wed Aug 10 10:37:51 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.linkedmodel.org/1.2/schema/vaem
......@@ -23,14 +24,26 @@ ep-core:PhysicalThing
rdfs:label "physical thing"^^xsd:string ;
rdfs:subClassOf owl:Thing .
ep-core:apiName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "API name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:basisFor
rdf:type owl:ObjectProperty ;
rdfs:label "basis for"^^xsd:string .
ep-core:derivedFrom
rdf:type owl:TransitiveProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:TransitiveProperty ;
rdfs:label "derived from"^^xsd:string .
ep-core:dtiName
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "DTI name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:hasPart
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......@@ -46,11 +59,29 @@ ep-core:hasTemporalPart
rdfs:subPropertyOf ep-core:hasPart ;
owl:inverseOf ep-core:partOf .
ep-core:localFieldName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "local field name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:name
rdf:type owl:DatatypeProperty ;
rdfs:label "name"^^xsd:string ;
rdfs:range xsd:string .
ep-core:npdCode
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "NPD code"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:npdNumber
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "NPD number"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:partOf
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......@@ -58,6 +89,12 @@ ep-core:partOf
rdfs:range ep-core:PhysicalThing ;
owl:inverseOf ep-core:hasPart .
ep-core:prospectName
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:label "prospect name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subPropertyOf ep-core:name .
ep-core:temporalPartOf
rdf:type owl:TransitiveProperty ;
rdfs:domain ep-core:PhysicalThing ;
......
# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
# 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/ddr
# 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/core
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/spin/rh
@prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
......@@ -80,7 +81,7 @@ ep-spin-lib:buildDailyDrillingReportURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport#" ;
sp:arg1 "https://www.reportinghub.no/ep/data/DailyDrillingReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
......@@ -871,13 +872,69 @@ ep-spin-lib:selectDrillingActivityPurposeType
])
] .
ep-spin-lib:selectLabelOfSystem
rdf:type spin:Function ;
rdfs:label "select DailyDrillingReportType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_API>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#apiName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_DTI>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#dtiName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDcode>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdCode> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_NPDnumber>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#npdNumber> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_localfield>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#localFieldName> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#WNS_prospect>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#prospectName> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#name>
]
]
]
]
]
] ;
sp:variable _:b18
])
] .
ep-spin-lib:selectPressureTestType
rdf:type spin:Function ;
rdfs:label "select PressureTestType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b19) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
......@@ -894,7 +951,7 @@ ep-spin-lib:selectPressureTestType
sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
]
] ;
sp:variable _:b18
sp:variable _:b19
])
] .
......@@ -904,57 +961,60 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:where ([ sp:object _:b19 ;
sp:resultVariables (_:b20) ;
sp:where ([ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
sp:subject spin:_arg1
])
] .
_:b19
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
_:b18
sp:varName "pressureTestType"^^xsd:string .
_:b11
sp:varName "t0b"^^xsd:string .
_:b17
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b12
sp:varName "t1"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b13
sp:varName "t2"^^xsd:string .
_:b14
sp:varName "t3"^^xsd:string .
_:b13
sp:varName "t2"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b12
sp:varName "t1"^^xsd:string .
_:b16
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b11
sp:varName "t0b"^^xsd:string .
_:b17
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b10
sp:varName "t0a"^^xsd:string .
_:b19
sp:varName "pressureTestType"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b20
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b18
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 10:38:00 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 11:13:52 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://spinrdf.org/spin
# 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/ddr
# 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/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
......@@ -20,11 +14,12 @@
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
owl:Thing
......@@ -65,8 +60,8 @@ owl:Thing
])
] .
_:b3 sp:varName "newLabel"^^xsd:string .
_:b1 sp:varName "oldLabel"^^xsd:string .
_:b2 sp:varName "p"^^xsd:string .
_:b1 sp:varName "oldLabel"^^xsd:string .
_:b3 sp:varName "newLabel"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 10 11:35:30 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......