Class: FedoraMigrate::RDFDatastreamMover

Inherits:
Mover
  • Object
show all
Defined in:
lib/fedora_migrate/rdf_datastream_mover.rb

Instance Attribute Summary

Attributes inherited from Mover

#report, #source, #target

Attributes included from MigrationOptions

#conversions, #options

Instance Method Summary collapse

Methods inherited from Mover

#id_component, id_component, #initialize, #post_initialize, #results_report, #save, #target_errors

Methods included from Hooks

#after_datastream_migration, #after_object_migration, #after_rdf_datastream_migration, #before_datastream_migration, #before_object_migration, #before_rdf_datastream_migration

Methods included from MigrationOptions

#application_creates_versions?, #blacklist, #conversion_options, #forced?, #not_forced?

Constructor Details

This class inherits a constructor from FedoraMigrate::Mover

Instance Method Details

#migrateObject



5
6
7
8
9
10
11
# File 'lib/fedora_migrate/rdf_datastream_mover.rb', line 5

def migrate
  before_rdf_datastream_migration
  migrate_rdf_triples
  after_rdf_datastream_migration
  save
  super
end

#migrate_rdf_triplesObject



13
14
15
# File 'lib/fedora_migrate/rdf_datastream_mover.rb', line 13

def migrate_rdf_triples
  target.resource << updated_graph
end