Class: LinkedResearchMetadata::Transformer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/linked_research_metadata/transformer/base.rb

Overview

Base transformer

Direct Known Subclasses

Dataset

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.

Parameters:

  • config (Hash)

Options Hash (config):

  • :url (String)

    The URL of the Pure host.

  • :username (String)

    The username of the Pure host account.

  • :password (String)

    The password of the Pure host account.

  • :minting_uri (String)

    The URI at which to mint a resource.



13
14
15
16
17
# File 'lib/linked_research_metadata/transformer/base.rb', line 13

def initialize(config)
  @config = config
  raise 'Minting URI missing' if @config[:minting_uri].empty?
  @graph = RDF::Graph.new
end