TRANSFORM_ddr-normalization-(v1.1.1).ttl 4.32 KB
# Saved by TopBraid on Mon Aug 01 14:29:25 PDT 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://spinrdf.org/spin

@prefix ddr-normalization:  <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1:  <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib:  <http://www.reportinghub.no/ep/spin/lib#> .
@prefix normalization:  <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix spl:     <http://spinrdf.org/spl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
      spin:rule
              [ rdf:type sp:Construct ;
                rdfs:comment "STEP 101 Make Well and Well Bore Instances"^^xsd:string ;
                sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b2 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b1
                          ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
                            sp:predicate rdf:type ;
                            sp:subject _:b3
                          ] [ sp:object _:b4 ;
                            sp:predicate rdfs:label ;
                            sp:subject _:b3
                          ] [ sp:object _:b1 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b3
                          ]) ;
                sp:where ([ sp:object _:b2 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
                            sp:subject spin:_this
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b4
                                    ] ;
                            sp:variable _:b5
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellURI ;
                                      sp:arg1 _:b5
                                    ] ;
                            sp:variable _:b3
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b2
                                    ] ;
                            sp:variable _:b6
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildWellBoreURI ;
                                      sp:arg1 _:b6
                                    ] ;
                            sp:variable _:b1
                          ])
              ] .

<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
      rdf:type owl:Ontology ;
      owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

_:b2  sp:varName "nameWellBore"^^xsd:string .

_:b4  sp:varName "nameWell"^^xsd:string .

_:b5  sp:varName "normalizedWellName"^^xsd:string .

_:b3  sp:varName "normalizedWellNameU"^^xsd:string .

_:b6  sp:varName "normalizedWellBoreName"^^xsd:string .

_:b1  sp:varName "normalizedWellBoreNameU"^^xsd:string .