Class: Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::DenylistedValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::DenylistedValue
- Defined in:
- lib/valkyrie/persistence/fedora/persister/orm_converter.rb
Overview
Class for handling cases where deny listed 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 denied 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 deny listed 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 denied 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)
107 108 109 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 107 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 deny listed namespace
112 113 114 |
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 112 def result NullApplicator end |