class ActiveFedora::Base

def add_relationship(predicate, obj)

Parameters:
  • object () -- Either a string URI or an object that responds to .pid
  • predicate () --
def add_relationship(predicate, obj)
  #predicate = ActiveFedora::RelsExtDatastream.predicate_lookup(predicate)
  r = ActiveFedora::Relationship.new(:subject=>:self, :predicate=>predicate, :object=>obj)
  rels_ext.add_relationship(r)
  rels_ext.dirty = true
end