                                            DirectTypeHierarchyInferencer
                                            CustomGraphQueryInferencer)))
 
+(defprotocol ToConnection
+  (->connection [repo] "Given a sesame repository return a connection to it.
+  ->connection is designed to be used with the macro with-open"))
+
 (defn- resource-array #^"[Lorg.openrdf.model.Resource;" [& rs]
   (into-array Resource rs))
 

                                         QueryLanguage/SPARQL
                                         sparql-string)]
      (.execute prepared-query))))

(defn make-restricted-dataset
  "Build a dataset to act as a graph restriction.  You can specify for

  (evaluate [this]
    (.execute this)))

(defn prepare-query
  "Low level function to prepare (parse, but not process) a sesame RDF
  query.  Takes a repository a query string and an optional sesame
