   (set-query-params [url hash-map]
     (let [kvs (build-sorted-params hash-map)]
       (assoc url :query-params kvs)))
-
-  IURLable
-  (->java-url [url]
-    (to-uri* url))
 
   IURIable
   (->java-uri [url]

(ns grafter.common.url
  (:require [clojure.string :as str]
            [grafter.rdf.io :refer [ISesameRDFConverter]])

  (:import [java.net URL URI]
           [org.openrdf.model.impl URIImpl]))


(defprotocol IURLable
  (->java-url [url]
    "Convert into a URL"))

(defprotocol IURIable
  (->java-uri [url]
    "Convert into a java.net.URI"))

(defprotocol IURL
  "A protocol for manipulating URL objects.  Implementations of this


  (query-params [url]
    (parse-query-params (.getQuery url)))

  IURIable
  (->java-uri [url]
