Class: RDF::Normalize::Base

Inherits:
Object
  • Object
show all
Defined in:
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 'lib/rdf/normalize/base.rb', line 5

def dataset
  @dataset
end

Instance Method Details

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

Enumerates normalized statements

Yields:

  • statement

Yield Parameters:

  • statement (RDF::Statement)


11
12
13
# File '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:

  • (Hash{String => String})


18
19
20
# File 'lib/rdf/normalize/base.rb', line 18

def to_hash
  raise "Not Implemented"
end