Class: RDF::Normalize::URGNA2012

Inherits:
RDFC10 show all
Defined in:
lib/rdf/normalize/urgna2012.rb

Defined Under Namespace

Classes: NormalizationState

Instance Attribute Summary

Attributes inherited from Base

#dataset

Instance Method Summary collapse

Methods inherited from RDFC10

#initialize, #normalize_statements

Methods included from Enumerable

#canonicalize

Constructor Details

This class inherits a constructor from RDF::Normalize::RDFC10

Instance Method Details

#each(&block) ⇒ Object



4
5
6
7
# File 'lib/rdf/normalize/urgna2012.rb', line 4

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

#to_hashObject



9
10
11
12
13
# File 'lib/rdf/normalize/urgna2012.rb', line 9

def to_hash
  ns = NormalizationState.new(**@options)
  normalize_statements(ns)
  ns.canonical_issuer.to_h
end