Class: RDF::Normalize::URGNA2012

Inherits:
RDFC10 show all
Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/lib/rdf/normalize/urgna2012.rb

Defined Under Namespace

Classes: NormalizationState

Constant Summary

Constants included from Util::Logger

Util::Logger::IOWrapper

Instance Attribute Summary

Attributes included from Enumerable

#existentials, #universals

Attributes inherited from Base

#dataset

Instance Method Summary collapse

Methods inherited from RDFC10

#initialize, #normalize_statements

Methods included from Util::Logger

#log_debug, #log_depth, #log_error, #log_fatal, #log_info, #log_recover, #log_recovering?, #log_statistics, #log_warn, #logger

Methods included from Enumerable

add_entailment, #canonicalize, #canonicalize!, #dump, #each_graph, #each_object, #each_predicate, #each_quad, #each_statement, #each_subject, #each_term, #each_triple, #entail, #enum_graph, #enum_object, #enum_predicate, #enum_quad, #enum_statement, #enum_subject, #enum_term, #enum_triple, #graph?, #graph_names, #invalid?, #method_missing, #object?, #objects, #predicate?, #predicates, #project_graph, #quad?, #quads, #respond_to_missing?, #statement?, #statements, #subject?, #subjects, #supports?, #term?, #terms, #to_a, #to_h, #to_set, #triple?, #triples, #valid?, #validate!

Methods included from Util::Aliasing::LateBound

#alias_method

Methods included from Isomorphic

#bijection_to, #isomorphic_with?

Methods included from Countable

#count, #empty?

Constructor Details

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RDF::Enumerable

Instance Method Details

#each(&block) ⇒ Object



4
5
6
7
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/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 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/lib/rdf/normalize/urgna2012.rb', line 9

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