Class: Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::BlacklistedValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::BlacklistedValue
- Defined in:
- lib/valkyrie/persistence/fedora/persister/orm_converter.rb
Overview
Class for handling cases where blacklisted values should not be mapped
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not the value has a blacklisted namespace for the RDF statement object (i. e. avoid attempting to map any RDF statements making assertions about LDP containers or resource internal to Fedora).
Instance Method Summary collapse
-
#result ⇒ Object
Provide the NullApplicator Class for any Property in a blacklisted namespace.
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 a blacklisted namespace for the RDF statement object (i. e. avoid attempting to map any RDF statements making assertions about LDP containers or resource internal to Fedora)
108 109 110 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 108 def self.handles?(value) value.statement.object.to_s.start_with?("http://www.w3.org/ns/ldp", "http://fedora.info") end |
Instance Method Details
#result ⇒ Object
Provide the NullApplicator Class for any Property in a blacklisted namespace
113 114 115 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 113 def result NullApplicator end |