title: Why doesn't model-query return query results? (clj-plaza)
body: <p>I am using <a href="http://antoniogarrote.github.com/clj-plaza/documentation/2010/05/05/rdf.html" rel="nofollow"><code>clj-plaza</code></a> (0.0.5-SNAPSHOT) to query a Sesame/Jena Model. The function <code>model-query</code> does not appear to execute the query. It returns the internal representation of a <code>clj-plaza</code> query instead.</p>
  
  <pre><code>(init-jena-framework)
  (def *m* (build-model))
  
  (with-model *m*
   (model-add-triples
    (model-to-triples 
      (document-to-model "http://www.rdfdata.org/dat/rdfdata.rdf" 
                         :rdf))))
  
  (def all-subjects-query 
   (defquery
    (query-set-vars [:?subject])
    (query-set-pattern (make-pattern [[:?subject ?p ?o]]))
    (query-set-type :select))
  
  ;; As expected
  (model-query-triples *m* all-subjects-query)
  =&gt; clojure.lang.LazySeq@2e1e8502
  
  ;; Does not execute query (?)
  (model-query *m* all-subjects-query)
  =&gt; {:kind :select, :pattern [[:?object :?p :?o]], :vars [:?object]}
  </code></pre>
  
  <p>The official <a href="http://antoniogarrote.github.com/clj-plaza/documentation/2010/05/05/rdf.html" rel="nofollow">tutorial</a> claims <code>model-query</code> returns a list of bindings from the query:</p>
  
  <pre><code>({:?object "http://randomurl.com/asdf"}
   {:?object "http://asdf.com/qwer"})
  </code></pre>