David Price

Fixed dateTime sort issue in a few tables, see http://st.epim.no/epim_SpiraTest/…

…17/Incident/1896.aspx
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 <http://www.reportinghub.no/ep/spin/ddr-tables> 22 <http://www.reportinghub.no/ep/spin/ddr-tables>
23 rdf:type owl:Ontology ; 23 rdf:type owl:Ontology ;
24 rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; 24 rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
25 - owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> ; 25 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/spin/rh> ;
26 owl:versionInfo "0.1.0"^^xsd:string . 26 owl:versionInfo "0.1.0"^^xsd:string .
27 27
28 ddr-tables:BitRecord 28 ddr-tables:BitRecord
...@@ -438,7 +438,7 @@ ddr-tables:CasingLinerTubingInformation ...@@ -438,7 +438,7 @@ ddr-tables:CasingLinerTubingInformation
438 rdfs:subClassOf rhspin:DDRTableTemplates ; 438 rdfs:subClassOf rhspin:DDRTableTemplates ;
439 spin:body 439 spin:body
440 [ rdf:type sp:Select ; 440 [ rdf:type sp:Select ;
441 - sp:orderBy ([ sp:varName "startTime"^^xsd:string 441 + sp:orderBy ([ sp:varName "startedAt"^^xsd:string
442 ]) ; 442 ]) ;
443 sp:resultVariables ([ sp:varName "typeOfPipe"^^xsd:string 443 sp:resultVariables ([ sp:varName "typeOfPipe"^^xsd:string
444 ] [ sp:varName "casingType"^^xsd:string 444 ] [ sp:varName "casingType"^^xsd:string
...@@ -1857,7 +1857,7 @@ ddr-tables:EquipmentFailure ...@@ -1857,7 +1857,7 @@ ddr-tables:EquipmentFailure
1857 rdfs:subClassOf rhspin:DDRTableTemplates ; 1857 rdfs:subClassOf rhspin:DDRTableTemplates ;
1858 spin:body 1858 spin:body
1859 [ rdf:type sp:Select ; 1859 [ rdf:type sp:Select ;
1860 - sp:orderBy ([ sp:varName "startTime"^^xsd:string 1860 + sp:orderBy ([ sp:varName "timeOfFailure"^^xsd:string
1861 ]) ; 1861 ]) ;
1862 sp:resultVariables ([ sp:varName "startTime"^^xsd:string 1862 sp:resultVariables ([ sp:varName "startTime"^^xsd:string
1863 ] [ sp:varName "depthMD"^^xsd:string 1863 ] [ sp:varName "depthMD"^^xsd:string
...@@ -2263,7 +2263,7 @@ ddr-tables:GasReadingInformation ...@@ -2263,7 +2263,7 @@ ddr-tables:GasReadingInformation
2263 rdfs:subClassOf rhspin:DDRTableTemplates ; 2263 rdfs:subClassOf rhspin:DDRTableTemplates ;
2264 spin:body 2264 spin:body
2265 [ rdf:type sp:Select ; 2265 [ rdf:type sp:Select ;
2266 - sp:orderBy ([ sp:varName "time"^^xsd:string 2266 + sp:orderBy ([ sp:varName "nominallyAt"^^xsd:string
2267 ]) ; 2267 ]) ;
2268 sp:resultVariables ([ sp:varName "time"^^xsd:string 2268 sp:resultVariables ([ sp:varName "time"^^xsd:string
2269 ] [ sp:varName "class"^^xsd:string 2269 ] [ sp:varName "class"^^xsd:string
...@@ -3145,7 +3145,7 @@ ddr-tables:Operations ...@@ -3145,7 +3145,7 @@ ddr-tables:Operations
3145 rdfs:subClassOf rhspin:DDRTableTemplates ; 3145 rdfs:subClassOf rhspin:DDRTableTemplates ;
3146 spin:body 3146 spin:body
3147 [ rdf:type sp:Select ; 3147 [ rdf:type sp:Select ;
3148 - sp:orderBy ([ sp:varName "startTime"^^xsd:string 3148 + sp:orderBy ([ sp:varName "startedAt"^^xsd:string
3149 ]) ; 3149 ]) ;
3150 sp:resultVariables ([ sp:varName "startTime"^^xsd:string 3150 sp:resultVariables ([ sp:varName "startTime"^^xsd:string
3151 ] [ sp:varName "endTime"^^xsd:string 3151 ] [ sp:varName "endTime"^^xsd:string
...@@ -3370,7 +3370,7 @@ ddr-tables:PerforationInformation ...@@ -3370,7 +3370,7 @@ ddr-tables:PerforationInformation
3370 rdfs:subClassOf rhspin:DDRTableTemplates ; 3370 rdfs:subClassOf rhspin:DDRTableTemplates ;
3371 spin:body 3371 spin:body
3372 [ rdf:type sp:Select ; 3372 [ rdf:type sp:Select ;
3373 - sp:orderBy ([ sp:varName "timeOfOpeningWellPerf"^^xsd:string 3373 + sp:orderBy ([ sp:varName "startedAt"^^xsd:string
3374 ]) ; 3374 ]) ;
3375 sp:resultVariables ([ sp:varName "timeOfOpeningWellPerf"^^xsd:string 3375 sp:resultVariables ([ sp:varName "timeOfOpeningWellPerf"^^xsd:string
3376 ] [ sp:varName "timeOfClosingWellPerf"^^xsd:string 3376 ] [ sp:varName "timeOfClosingWellPerf"^^xsd:string
...@@ -3575,7 +3575,7 @@ ddr-tables:PorePressure ...@@ -3575,7 +3575,7 @@ ddr-tables:PorePressure
3575 rdfs:subClassOf rhspin:DDRTableTemplates ; 3575 rdfs:subClassOf rhspin:DDRTableTemplates ;
3576 spin:body 3576 spin:body
3577 [ rdf:type sp:Select ; 3577 [ rdf:type sp:Select ;
3578 - sp:orderBy ([ sp:varName "time"^^xsd:string 3578 + sp:orderBy ([ sp:varName "nominallyAt"^^xsd:string
3579 ]) ; 3579 ]) ;
3580 sp:resultVariables ([ sp:varName "reading"^^xsd:string 3580 sp:resultVariables ([ sp:varName "reading"^^xsd:string
3581 ] [ sp:varName "mudDensityVal"^^xsd:string 3581 ] [ sp:varName "mudDensityVal"^^xsd:string
...@@ -4013,7 +4013,7 @@ ddr-tables:WellControlIncident ...@@ -4013,7 +4013,7 @@ ddr-tables:WellControlIncident
4013 spin:body 4013 spin:body
4014 [ rdf:type sp:Select ; 4014 [ rdf:type sp:Select ;
4015 sp:distinct "true"^^xsd:boolean ; 4015 sp:distinct "true"^^xsd:boolean ;
4016 - sp:orderBy ([ sp:varName "date"^^xsd:string 4016 + sp:orderBy ([ sp:varName "startedAt"^^xsd:string
4017 ]) ; 4017 ]) ;
4018 sp:resultVariables ([ sp:varName "date"^^xsd:string 4018 sp:resultVariables ([ sp:varName "date"^^xsd:string
4019 ] [ sp:varName "depthOfWellmd"^^xsd:string 4019 ] [ sp:varName "depthOfWellmd"^^xsd:string
...@@ -4413,7 +4413,7 @@ ddr-tables:WellTestInformation ...@@ -4413,7 +4413,7 @@ ddr-tables:WellTestInformation
4413 rdfs:subClassOf rhspin:DDRTableTemplates ; 4413 rdfs:subClassOf rhspin:DDRTableTemplates ;
4414 spin:body 4414 spin:body
4415 [ rdf:type sp:Select ; 4415 [ rdf:type sp:Select ;
4416 - sp:orderBy ([ sp:varName "time"^^xsd:string 4416 + sp:orderBy ([ sp:varName "finishedAt"^^xsd:string
4417 ]) ; 4417 ]) ;
4418 sp:resultVariables ([ sp:varName "time"^^xsd:string 4418 sp:resultVariables ([ sp:varName "time"^^xsd:string
4419 ] [ sp:varName "testNo"^^xsd:string 4419 ] [ sp:varName "testNo"^^xsd:string
......