ActiveTriples / linked-data-fragments

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

[WIP] convert to an engine #30

Open jcoyne opened 8 years ago

no-reply commented 8 years ago

Is a Rails engine overkill for this? I'm wondering whether this couldn't just be a Rack app with a route pointing to it?

scande3 commented 8 years ago

I'll try this pull request out by tomorrow.

@no-reply - No experience with a Rack app. What makes the engine overkill exactly?

scande3 commented 8 years ago

Some other quick notes beyond the comments above from some testing:

  1. Doing http://localhost:3000/ldf/?format=jsonld raises "No writer found using [:jsonld]" . It seems to work for ".nt" and ".ttl" though...
  2. Can the README be changed to include something like the following to make it easier for someone to try it (can expand upon this later):
    • Add the following to you Gemfile: gem 'linked_data_fragments', github: 'ActiveTriples/linked-data-fragments'
    • run the command: bundle install
    • run the command: rails generate linked_data_fragments:install
    • See forthcoming docs for additional configuration options.

Seems to work otherwise but will test it some more tonight. Thanks!