ActiveTriples / linked-data-fragments

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

Rework, expand and document `BackendBase` interface #33

Closed no-reply closed 7 years ago

no-reply commented 7 years ago

This substantially refactors the base backend interface, adds a number of utility methods, and adds YARD annotations throughout. Notably:

The #add and #has_resource methods are generally already implemented as part of #retrieve, so this may be a first step toward a generic implementation of that key method.

Shared examples are added, and tested against a completed Repository implementation. Further work is needed to bring Marmotta and Blazegraph backends up to date.

Some todo items (questions) are added for #get_resource_uri.

no-reply commented 7 years ago

Note that VCR makes this diff enormous.

If i'm doing something wrong with VCR that causes the mass duplication, could someone suggest an alternative approach? If not, are there objections to removing VCR and using simple webmock responses?