You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(def e (document-to-model "http://www.snee.com/rdf/elvisimp.rdf" :xml))
(def et (model-to-triples e))
(def quer (defquery
(query-set-pattern elvez)
(query-set-type :select)
(query-set-vars [:?s :?p])
(query-set-distinct)
(chain-limit nil)
(chain-offset nil)))
;; works fine if you start off with a model
(model-query e quer)
=> ([[#<SesameResource http://members.aol.com/elvezco> #<SesameResource http://purl.org/dc/elements/1.1/title> #<SesameLiteral El Vez>]])
;; but if you create a model with defmodel and populate it with triples, like pattern-apply, it fails
(model-query-triples (defmodel (model-add-triples et)) quer)
=> ()
;; .. same ..
(def new-model (add-triples (build-model) et))
(model-query-triples new-model quer)
=> ()
Here is example:
(def e (document-to-model "http://www.snee.com/rdf/elvisimp.rdf" :xml))
(def et (model-to-triples e))
(def elvez (make-pattern [[:?s :?p (l "El Vez")]]))
(def q (defquery
(query-set-type :select)
(query-set-vars [:?s :?p])
(query-set-pattern elvez)))
Same with jena backed:
The text was updated successfully, but these errors were encountered: