Class: DataKitten::Source
- Inherits:
-
Object
- Object
- DataKitten::Source
- Defined in:
- lib/data_kitten/source.rb
Overview
Where the data has been sourced from Follows the pattern of http://purl.org/dc/terms/source with a http://www.w3.org/2000/01/rdf-schema#label and a http://www.w3.org/1999/02/22-rdf-syntax-ns#resource, and with useful aliases for other vocabularies
Instance Attribute Summary collapse
-
#label ⇒ String
(also: #name)
The URI of the Source.
-
#resource ⇒ Object
(also: #web)
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(options) ⇒ Source
constructor
Create a new Source.
Constructor Details
#initialize(options) ⇒ Source
Create a new Source
14 15 16 17 |
# File 'lib/data_kitten/source.rb', line 14 def initialize() @label = [:label] @resource = [:resource] end |
Instance Attribute Details
#label ⇒ String Also known as: name
Returns the URI of the Source.
21 22 23 |
# File 'lib/data_kitten/source.rb', line 21 def label @label end |
#resource ⇒ Object Also known as: web
Returns the value of attribute resource.
26 27 28 |
# File 'lib/data_kitten/source.rb', line 26 def resource @resource end |