You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a discrepancy with how the ldp gem and Fedora implement the ldp spec.
This bug is here as a reminder to resolve this discrepancy with the Fedora team.
By default, if you load a resource with the ldp gem and then save it, it will send all the triples it found back to Fedora. This includes the rdf:type. Fedora will throw an error when it gets an rdf:type it doesn't understand.
Workaround
As long as you aren't actually trying to set the rdf:type, you can just remove it to get the save to be successful:
STATUS: 500 org.fcrepo.kernel.exception.MalformedRdfException: Unable to resolve registered namespace for resource http://www.w3.org/ns/ldp#Container
at org.fcrepo.kernel.utils.iterators.PersistingRdfStreamConsumer.jcrMixinNameFromRdfResource(PersistingRdfStreamConsumer.java:181)
at org.fcrepo.kernel.utils.iterators.RdfAdder.operateOnMixin(RdfAdder.java:64)
at org.fcrepo.kernel.utils.iterators.PersistingRdfStreamConsumer.operateOnTriple(PersistingRdfStreamConsumer.java:133)
at org.fcrepo.kernel.utils.iterators.PersistingRdfStreamConsumer.consume(PersistingRdfStreamConsumer.java:116)
jcoyne
added a commit
to samvera-deprecated/fedora_lens
that referenced
this issue
Apr 18, 2014
There is a discrepancy with how the ldp gem and Fedora implement the ldp spec.
This bug is here as a reminder to resolve this discrepancy with the Fedora team.
By default, if you load a resource with the ldp gem and then save it, it will send all the triples it found back to Fedora. This includes the rdf:type. Fedora will throw an error when it gets an rdf:type it doesn't understand.
Workaround
As long as you aren't actually trying to set the rdf:type, you can just remove it to get the save to be successful:
Related info
Discussion on Fedora mailing list: https://groups.google.com/forum/#!topic/fedora-tech/2lLFN4_1LTI
A demonstration of what the ldp gem is trying to do (using curl): https://gist.github.com/bmaddy/9073793
The LDP spec: http://www.w3.org/TR/ldp/
The text was updated successfully, but these errors were encountered: