Class: BibframeRuby::Subject

Inherits:
Resource show all
Defined in:
lib/bibframe_ruby/models/subject.rb

Overview

Represents a BIBFRAME Subject — a topic or concept associated with a resource.

Instance Attribute Summary

Attributes inherited from Resource

#id, #properties, #rdf_graph, #types

Instance Method Summary collapse

Methods inherited from Resource

#[], #[]=, #initialize, #to_rdf

Constructor Details

This class inherits a constructor from BibframeRuby::Resource

Instance Method Details

#label ⇒ Object



7
8
9
# File 'lib/bibframe_ruby/models/subject.rb', line 7

def label
  self["label"]
end

#source ⇒ Object



11
12
13
# File 'lib/bibframe_ruby/models/subject.rb', line 11

def source
  self["source"]
end