Class: LinkedResearchMetadata::Transformer::Dataset

Inherits:
Base
  • Object
show all
Includes:
Shared
Defined in:
lib/linked_research_metadata/transformer/dataset.rb

Overview

Dataset transformer

Instance Method Summary collapse

Methods inherited from Base

#identifiers

Constructor Details

#initialize(config) ⇒ Dataset

Returns a new instance of Dataset.

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.

  • :granularity (Fixnum)

    Expand associated resource URIs with varying amounts of metadata.



15
16
17
# File 'lib/linked_research_metadata/transformer/dataset.rb', line 15

def initialize(config)
  super
end

Instance Method Details

#transform(uuid:) ⇒ RDF::Graph

Dataset transformation

Parameters:

  • uuid (String)

Returns:

  • (RDF::Graph)


23
24
25
# File 'lib/linked_research_metadata/transformer/dataset.rb', line 23

def transform(uuid:)
  super uuid: uuid, resource: :dataset
end