Class: RDF::Normalize::Base

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

Overview

Abstract class for pluggable normalization algorithms. Delegates to a default or selected algorithm if instantiated

Direct Known Subclasses

Carroll2001, RDFC10

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#datasetObject (readonly)

Returns the value of attribute dataset.



5
6
7
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/lib/rdf/normalize/base.rb', line 5

def dataset
  @dataset
end

Instance Method Details

#each {|statement| ... } ⇒ Object

Enumerates normalized statements

Yields:

  • statement

Yield Parameters:



11
12
13
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/lib/rdf/normalize/base.rb', line 11

def each(&block)
  raise "Not Implemented"
end

#to_hashHash{String => String}

Returns a map from input blank node identifiers to canonical blank node identifiers.

Returns:



18
19
20
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-normalize-5170ab39c807/lib/rdf/normalize/base.rb', line 18

def to_hash
  raise "Not Implemented"
end