sul-dlss-deprecated / triannon

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

Triannon should transform internal anno blank nodes #134

Open ndushay opened 9 years ago

ndushay commented 9 years ago

The outer node of an anno gets an id, but if there is an internal blank node on an incoming anno (e.g. ContentAsText body), the code currently serves out the internal node as blank. We don't want this.

@azaroth42 will provide a spec as to how these annos should look on output.

dazza-codes commented 9 years ago

For blank node inputs for 'hasBody', should they be rejected on POST and/or PUT?

ndushay commented 9 years ago

nope. blank node inputs for inner nodes ok.

azaroth42 commented 9 years ago

The behavior I would expect is:

ndushay commented 9 years ago

Rob, you gave us a spec for specific resource, which i implemented. I think we store them in Fedora as type externalReference https://github.com/sul-dlss/triannon/blob/master/lib/rdf/triannon_vocab.rb at least for now.

So we are currently