TRANSFORM_ddr-check-v1.1.1.ttl 3.14 KB
# Saved by TopBraid on Mon Sep 19 13:37:46 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/check
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://spinrdf.org/spin

@prefix :        <http://www.reportinghub.no/ep/transform/check#> .
@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 sp:      <http://spinrdf.org/sp#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

<http://www.reportinghub.no/ep/transform/check>
      rdf:type owl:Ontology ;
      owl:imports <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
      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 999a Check that all uom attributes have been processed correctly"^^xsd:string ;
                sp:templates ([ sp:object "At least one uom attribute has not been processed correctly" ;
                            sp:predicate rdfs:comment ;
                            sp:subject _:b1
                          ]) ;
                sp:where ([ sp:object _:b2 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
                            sp:subject spin:_this
                          ] [ sp:object _:b3 ;
                            sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
                            sp:subject spin:_this
                          ] [ sp:object
                                    [ sp:varName "y"^^xsd:string
                                    ] ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#undefinedScale> ;
                            sp:subject
                                    [ sp:varName "x"^^xsd:string
                                    ]
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:normalizeString ;
                                      sp:arg1 _:b2
                                    ] ;
                            sp:variable _:b4
                          ] [ rdf:type sp:Bind ;
                            sp:expression
                                    [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
                                      sp:arg1 _:b4 ;
                                      sp:arg2 _:b3
                                    ] ;
                            sp:variable _:b1
                          ])
              ] .

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

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

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

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