Class: Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::DifferentSubject
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::DifferentSubject
- Defined in:
- lib/valkyrie/persistence/fedora/persister/orm_converter.rb
Overview
Class for handling cases where the RDF subject of a Property references a separate resource using a hash URI
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not the value has an RDF subject using a hash URI (Hash URIs are treated as different resources).
Instance Method Summary collapse
-
#result ⇒ Object
Provide the NullApplicator Class for any Property with a hash URI in the RDF subject.
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
.handles?(value) ⇒ Boolean
Determines whether or not the value has an RDF subject using a hash URI
(Hash URIs are treated as different resources)
126 127 128 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 126 def self.handles?(value) value.statement.subject.to_s.include?("#") end |
Instance Method Details
#result ⇒ Object
Provide the NullApplicator Class for any Property with a hash URI in the RDF subject
131 132 133 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 131 def result NullApplicator end |