class DataKitten::Source

Where the data has been sourced from Follows the pattern of {purl.org/dc/terms/source} with a {www.w3.org/2000/01/rdf-schema#label} and a {www.w3.org/1999/02/22-rdf-syntax-ns#resource}, and with useful aliases for other vocabularies

Attributes

label[RW]

@!attribute label

@return [String] the name of the Source
name[RW]

@!attribute label

@return [String] the name of the Source
resource[RW]

@!attribute label

@return [String] the URI of the Source
web[RW]

@!attribute label

@return [String] the URI of the Source

Public Class Methods

new(options) click to toggle source

Create a new Source

@param [Hash] options the details of the Source. @option options [String] :label The name of the Source @option options [String] :resource The URI of the Source

# File lib/data_kitten/source.rb, line 14
def initialize(options)
  @label = options[:label]
  @resource = options[:resource]
end