   (pr/add-statement
     ([this statement]
        {:pre [(instance? IStatement statement)]}
-       (doto this
-         (.add (IStatement->sesame-statement statement)
-               (into-array Resource []))))
+       (if-let [graph (:c statement)]
+         (doto this
+           (.add (IStatement->sesame-statement statement)
+                 (into-array Resource [(URIImpl. graph)])))
+         (doto this
+           (.add statement
+                 (into-array Resource [])))))
+
     ([this graph statement]
        {:pre [(instance? IStatement statement)]}
        (doto this

     (NativeStore. datadir indexes)))

(defn http-repo [repo-url]
  (HTTPRepository. repo-url))

(defn sparql-repo
  ([query-url]
     (SPARQLRepository. query-url))
  ([query-url update-url]
     (SPARQLRepository. query-url update-url)))

(defn repo
  ([] (repo (MemoryStore.)))

      (ContextStatementImpl. (->sesame-rdf-type (.s is))
                             (URIImpl. (.p is))
                             (->sesame-rdf-type (.o is))
                             (URIImpl. (:c is))))
    (StatementImpl. (->sesame-rdf-type (.s is))
                    (URIImpl. (.p is))
                    (->sesame-rdf-type (.o is)))))
