    "xs:double" convert-number
    "xs:duration" str
    "xs:float" convert-number
+
    ;; Maybe strip hyphens from all Gregorian date-parts?
    ;; or make conform to a particular date type?
    "xs:gDay" str

   "xs:untypedAtomic" str ;; NB: also referred to as "xdt:untypedAtomic" in type listing
   "xs:yearMonthDuration" str})

(defn result-type
  "Returns type string of the given query Result object. Currently
  assumes result is homogenous."

   
   "json:array" #(json/read-str (.toString (.asJsonNode %))) ;; JSArray
   "object-node()" #(json/read-str (.toString (.asJsonNode %))) ;; JSObject -- is this optimal detection method?
   ;; JsonItem - TODO find mocking mechanism or test with real data
   ;; NullNode TODO
   ;; NumberNode TODO
   ;; ObjectNode TODO
