Class: LinkedResearchMetadata::Transformer::Organisation

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

Overview

Organisation transformer

Instance Method Summary collapse

Methods inherited from Base

#identifiers

Constructor Details

#initialize(config) ⇒ Organisation

Returns a new instance of Organisation.

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.



14
15
16
# File 'lib/linked_research_metadata/transformer/organisation.rb', line 14

def initialize(config)
  super
end

Instance Method Details

#transform(uuid:) ⇒ RDF::Graph

Organisation transformation

Parameters:

  • uuid (String)

Returns:

  • (RDF::Graph)


22
23
24
# File 'lib/linked_research_metadata/transformer/organisation.rb', line 22

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