ActiveTriples / linked-data-fragments

Basic linked data fragments endpoint.
Creative Commons Zero v1.0 Universal
15 stars 0 forks source link

Retrieve ldp resource via subject with marmotta #18

Closed scande3 closed 9 years ago

scande3 commented 9 years ago

This is some early concept code to retrieve a resource from a configured backend (marmotta only at the moment). From what I read of the used marmotta gem in this, it does caching when it pulls data for the first time for a requested uri.

I've also added some initial configuration settings and some light unit tests. These need to be expanded and made more error proof yet.

I've mocked out the http requests using VCR that is quite nifty. Can set it to expire its cached files to require someone to rerun tests after x times has passed? Or just good enough as it is?

Feel free to tear this code apart as I'm not entirely sure what I was doing in all cases. :p

scande3 commented 9 years ago

Updated and all tests now pass. Please review when you can. Thanks!