Module: ROF::Translators::JsonldToRof::PredicateObjectHandler
- Defined in:
- lib/rof/translators/jsonld_to_rof/predicate_object_handler.rb
Overview
We need to handle the Predicate / Object pair as one (thank you RDF blank nodes for this nuance)
Defined Under Namespace
Classes: UnknownRdfObjectTypeError
Class Method Summary collapse
-
.call(predicate, object, accumulator, options = {}) ⇒ ROF::Translators::JsonldToRof::Accumulator
Parse the RDF::Predicate, RDF::Object and the relevant data to the contents to the accumulator.
Class Method Details
.call(predicate, object, accumulator, options = {}) ⇒ ROF::Translators::JsonldToRof::Accumulator
Note:
It is assumed that all blank nodes (e.g. RDF::Node) will be processed before you process any RDF::URI nodes.
Parse the RDF::Predicate, RDF::Object and the relevant data to the contents to the accumulator
30 31 32 33 |
# File 'lib/rof/translators/jsonld_to_rof/predicate_object_handler.rb', line 30 def self.call(predicate, object, accumulator, = {}) new(predicate, object, accumulator, ).call accumulator end |