        (map #(str/split % #"\t"))))
 
 (defn- tsv->tx-data [path namespace]
-  "Takes as input a tsv (tab-separated values) file with attribue names
+  "Takes as input a tsv (tab-separated values) file with attribute names
   on the first line and the actual model data on the following lines.
   Returns a Datomic transaction data seq that can be fed directly into
   datomic.api/transact."

(ns cglossa.data-import.core
  (require [clojure.string :as str]
           [datomic.api :as d]))

(def data-path "resources/data")

                                   unique-vals)]
      (when-not (= (first headers) "tid")
        (throw (Exception. (str "The first column should be tid, not " (first headers) "!"))))
      (connect-metadata-vals-to-cats val-id-maps headers categories))))
