Class: RDF::Normalize::URDNA2015

Inherits:
Object
  • Object
show all
Includes:
Enumerable, Base, Util::Logger
Defined in:
lib/rdf/normalize/urdna2015.rb

Direct Known Subclasses

URGNA2012

Defined Under Namespace

Classes: IdentifierIssuer, NormalizationState

Instance Attribute Summary

Attributes included from Base

#dataset

Instance Method Summary collapse

Constructor Details

#initialize(enumerable, options) ⇒ RDF::Enumerable

Create an enumerable with grounded nodes

Parameters:

  • enumerable (RDF::Enumerable)

12
13
14
# File 'lib/rdf/normalize/urdna2015.rb', line 12

def initialize(enumerable, options)
  @dataset, @options = enumerable, options
end

Instance Method Details

#each(&block) ⇒ Object


16
17
18
19
# File 'lib/rdf/normalize/urdna2015.rb', line 16

def each(&block)
  ns = NormalizationState.new(@options)
  normalize_statements(ns, &block)
end