Class: LinkedResearchMetadata::Transformer::Base
- Inherits:
-
Object
- Object
- LinkedResearchMetadata::Transformer::Base
- Defined in:
- lib/linked_research_metadata/transformer/base.rb
Overview
Base transformer
Direct Known Subclasses
Instance Method Summary collapse
-
#identifiers ⇒ Hash{Symbol => Set<String>}
Pure UUIDs available after transformation for :dataset, :organisation, :person, :project, :publication.
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/linked_research_metadata/transformer/base.rb', line 15 def initialize(config) @config = config @config[:granularity] = 0 if !@config[:granularity] raise 'Minting URI missing' if @config[:minting_uri].empty? @graph = RDF::Graph.new @identifiers = { dataset: Set.new, organisation: Set.new, person: Set.new, project: Set.new, publication: Set.new } end |
Instance Method Details
#identifiers ⇒ Hash{Symbol => Set<String>}
Pure UUIDs available after transformation for :dataset, :organisation, :person, :project, :publication.
33 34 35 |
# File 'lib/linked_research_metadata/transformer/base.rb', line 33 def identifiers @identifiers end |