SPIN_EP-DDR-tables-v1.0.spin.ttl 2.92 KB
# baseURI: http://www.reportinghub.no/ep/spin/ddr-tables-v1.0
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
# imports: http://www.reportinghub.no/spin/rh

@prefix ddr-tables:  <http://www.reportinghub.no/ep/spin/ddr-tables#> .
@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 rhspin:  <http://www.reportinghub.no/spin/rh#> .
@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#> .

ddr-tables:Operations
      rdf:type rhspin:TableTemplate ;
      rdfs:label "Operations"^^xsd:string ;
      rdfs:subClassOf rhspin:DDRTableTemplates ;
      spin:body
              [ rdf:type sp:Select ;
                sp:orderBy (_:b1) ;
                sp:resultVariables (_:b1 _:b2 [ sp:varName "startDepth"^^xsd:string
                          ] [ sp:varName "endDepth"^^xsd:string
                          ] [ sp:varName "activity"^^xsd:string
                          ] [ sp:varName "state"^^xsd:string
                          ] [ sp:varName "remark"^^xsd:string
                          ]) ;
                sp:where ([ sp:object _:b3 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
                            sp:subject
                                    [ sp:varName "report"^^xsd:string
                                    ]
                          ] [ sp:object _:b4 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
                            sp:subject _:b3
                          ] [ sp:object _:b1 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
                            sp:subject _:b4
                          ] [ sp:object _:b2 ;
                            sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
                            sp:subject _:b4
                          ])
              ] ;
      rhspin:tableHeaders ("Start Time"^^xsd:string "End Time"^^xsd:string "Start Depth mMD"^^xsd:string "End Depth mMD"^^xsd:string "Depth mMD"^^xsd:string "Main - Sub Activity"^^xsd:string "State"^^xsd:string "Remark"^^xsd:string) .

<http://www.reportinghub.no/ep/spin/ddr-tables-v1.0>
      rdf:type owl:Ontology ;
      rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
      owl:imports <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://spinrdf.org/spin> ;
      owl:versionInfo "0.1.0"^^xsd:string .

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

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

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

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