Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get relationships from existing object #90

Open
awead opened this issue Oct 18, 2014 · 0 comments
Open

Can't get relationships from existing object #90

awead opened this issue Oct 18, 2014 · 0 comments

Comments

@awead
Copy link

awead commented Oct 18, 2014

Not sure if I'm doing something wrong, but:

>  obj.class
=> Rubydora::DigitalObject
>  obj.relationships
=> {}
>  obj.datastreams["RELS-EXT"].content
=> \n<rdf:RDF xmlns:ns0=\"info:fedora/fedora-system:def/relations-external#\" xmlns:ns1=\"info:fedora/fedora-system:def/model#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n  <rdf:Description rdf:about=\"info:fedora/sufia:rb68xc11m\">\n    <ns1:hasModel rdf:resource=\"info:fedora/afmodel:GenericFile\"></ns1:hasModel>\n    <ns0:isPartOf rdf:resource=\"info:fedora/sufia:rb68xc09k\"></ns0:isPartOf>\n  </rdf:Description>\n</rdf:RDF>\n"

There's an isPartOf in the content of the datastream and I thought calling .relationships would parse that out for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant