antoniogarrote / rdfstore-js

JS RDF store with SPARQL support
MIT License
564 stars 109 forks source link

Querying for literals with persistent store #137

Closed mathcals closed 8 years ago

mathcals commented 8 years ago

When a query should return a literal, it returns a uri instead.

See http://plnkr.co/edit/tlRAAMZbWMaD7fSeY7O4

In this example the triple http://example/book1 dc:title "A new book" is inserted in a new persistent store. After asking for all triples in the store, the following happens.

In version 0.9.16 this triple is returned:

http://example/book1 dc:title http://example/book1

This is not correct. In version 0.9.2 this still worked and the correct triple was returned. (Edit: Persistent storage was not supported in 0.9.2)