Class: Krikri::Enrichments::WebResourceURI
- Inherits:
-
Object
- Object
- Krikri::Enrichments::WebResourceURI
- Includes:
- Audumbla::FieldEnrichment
- Defined in:
- lib/krikri/enrichments/web_resource_uri.rb
Overview
Enrichment to remove WebResources that are blank nodes. edm:WebResource
nodes should always be an HTTP URI.
Instance Method Summary collapse
-
#enrich_value(value) ⇒ Object
nilifvalueis aDPLA::MAP::WebResourceand a blank node; otherwise, the originalvalue.
Instance Method Details
#enrich_value(value) ⇒ Object
Returns nil if value is a DPLA::MAP::WebResource and a
blank node; otherwise, the original value.
13 14 15 16 |
# File 'lib/krikri/enrichments/web_resource_uri.rb', line 13 def enrich_value(value) return value unless value.is_a?(DPLA::MAP::WebResource) && value.node? nil end |