Swirrl / tripod

ActiveModel-style Ruby ORM for RDF Linked Data. Works with SPARQL 1.1 HTTP endpoints.
MIT License
58 stars 14 forks source link

Support for OpenRDF's Sesame #15

Open fonji opened 11 years ago

fonji commented 11 years ago

Hello again,

I'm using tripod with Sesame. They are a little late to support the "application/n-triples" mime-type. Although, Sesame will return n-triples if you ask for "text/plain" (no comment).

So I made a quick and dirty change in my fork, every "application/n-triples" is now replaced by "text/plain". It seems to work as I can get data, eager load some more, add and delete triples. But rspec fails, probably due to my local configuration. Here's my commit, btw.

Do you think adding a configuration variable to change the default "application/n-triples" would be a good idea? Or create a constant so people like me can change a single line of code?

Anyway, thanks for the awesome job. All the best, Yannick

ricroberts commented 11 years ago

Yeah - that's a good point. application/n-triples is not univerally supported yet. That config option is a good idea. :)

fonji commented 11 years ago

Thanks for the quick response! Glad I helped.

fonji commented 10 years ago

I saw that another fork has a solution, thanks Matt!