- Defined in:
The description in Hydra::Works Shared Modeling is out of date and uses terminology to describe the relationships that is no longer used in code. Update the model and link to it. This can be a simple relationship diagram with a link to the original Works Shared Modeling for historical perspective.
Valkyrie model for ‘FileSet` domain objects in the Hydra Works model.
### File Set and Work
Defined: The relationship is defined by the inverse relationship stored in the work’s ‘:member_ids` attribute.
Tested: The work tests the relationship.
File Set to Work: (1..1) A file set must be in one and only one work.
Work to File Set: (0..m) A work can have many file sets.
See Hyrax::Work for code to get and set file sets for the work.
### File Set and File (TBD)
Defined Under Namespace
Modules: BelongsToWorks, Characterization, Derivatives, Indexing, Querying
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Resource
#collection?, #file?, human_readable_type, #permission_manager, #visibility, #visibility=, #work?
Methods included from WithEvents
#event_class, #events, #log_event, #stream
Class Method Details
Instance Method Details
#file_set? ⇒ Boolean
62 63 64
# File 'app/models/hyrax/file_set.rb', line 62 def file_set? true end
#pcdm_object? ⇒ Boolean
56 57 58
# File 'app/models/hyrax/file_set.rb', line 56 def pcdm_object? true end
#representative_id ⇒ Valkyrie::ID
50 51 52
# File 'app/models/hyrax/file_set.rb', line 50 def representative_id id end