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 @@
<http://www.reportinghub.no/ep/spin/ddr-tables>
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/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> ;
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> ;
owl:versionInfo "0.1.0"^^xsd:string .
ddr-tables:BitRecord
......@@ -438,7 +438,7 @@ ddr-tables:CasingLinerTubingInformation
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "startTime"^^xsd:string
sp:orderBy ([ sp:varName "startedAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "typeOfPipe"^^xsd:string
] [ sp:varName "casingType"^^xsd:string
......@@ -1857,7 +1857,7 @@ ddr-tables:EquipmentFailure
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "startTime"^^xsd:string
sp:orderBy ([ sp:varName "timeOfFailure"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "startTime"^^xsd:string
] [ sp:varName "depthMD"^^xsd:string
......@@ -2263,7 +2263,7 @@ ddr-tables:GasReadingInformation
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "time"^^xsd:string
sp:orderBy ([ sp:varName "nominallyAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "time"^^xsd:string
] [ sp:varName "class"^^xsd:string
......@@ -3145,7 +3145,7 @@ ddr-tables:Operations
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "startTime"^^xsd:string
sp:orderBy ([ sp:varName "startedAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "startTime"^^xsd:string
] [ sp:varName "endTime"^^xsd:string
......@@ -3370,7 +3370,7 @@ ddr-tables:PerforationInformation
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "timeOfOpeningWellPerf"^^xsd:string
sp:orderBy ([ sp:varName "startedAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "timeOfOpeningWellPerf"^^xsd:string
] [ sp:varName "timeOfClosingWellPerf"^^xsd:string
......@@ -3575,7 +3575,7 @@ ddr-tables:PorePressure
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "time"^^xsd:string
sp:orderBy ([ sp:varName "nominallyAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "reading"^^xsd:string
] [ sp:varName "mudDensityVal"^^xsd:string
......@@ -4013,7 +4013,7 @@ ddr-tables:WellControlIncident
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:orderBy ([ sp:varName "date"^^xsd:string
sp:orderBy ([ sp:varName "startedAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "date"^^xsd:string
] [ sp:varName "depthOfWellmd"^^xsd:string
......@@ -4413,7 +4413,7 @@ ddr-tables:WellTestInformation
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "time"^^xsd:string
sp:orderBy ([ sp:varName "finishedAt"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "time"^^xsd:string
] [ sp:varName "testNo"^^xsd:string
......