Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::IdentifiableValue
- Inherits:
-
MappedFedoraValue
- Object
- ValueMapper
- MappedFedoraValue
- Valkyrie::Persistence::Fedora::Persister::ModelConverter::IdentifiableValue
- Defined in:
- lib/valkyrie/persistence/fedora/persister/model_converter.rb
Overview
Class for mapping Property objects for simple Valkyrie IDs
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not the value is a Property for Valkyrie::ID values.
Instance Method Summary collapse
-
#result ⇒ Valkyrie::Persistence::Fedora::Persister::ModelConverter::Property
Converts the RDF literal into the Property For example, a Valkyrie::ID with the value “adapter://1” will first be mapped to RDF::Literal “adapter://1”^^<example.com/predicate/valkyrie_id>.
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
Instance Method Details
#result ⇒ Valkyrie::Persistence::Fedora::Persister::ModelConverter::Property
Converts the RDF literal into the Property For example, a Valkyrie::ID with the value “adapter://1”
will first be mapped to RDF::Literal "adapter://1"^^<http://example.com/predicate/valkyrie_id>
513 514 515 516 517 518 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 513 def result map_value(converted_value: RDF::Literal.new( value.value, datatype: PermissiveSchema.valkyrie_id )) end |