sul-dlss-deprecated / triannon

Rails engine for working with storage of OpenAnnotations stored in Fedora4
Other
13 stars 1 forks source link

Revise hypermedia views #177

Open dazza-codes opened 9 years ago

dazza-codes commented 9 years ago

Explore http://data.bioontology.org/

Notice how the jsonLD is presented in a way that is very easy to navigate in the browser. The code for this is somewhere in https://github.com/ncbo/ontologies_api. There may be other ways to do this too, e.g. review some google searches for something like "browser views for jsonld".

dazza-codes commented 9 years ago

See specifically:

The controllers all return by calling a common reply method to do the serialization, see:

Note how the reply method handles authorization and serializes using

LinkedData::Serializer.build_response(@env, status: status, ld_object: obj)