Class: BibframeRuby::Hub

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

Overview

Represents a BIBFRAME Hub — an abstract bridge resource connecting related Works.

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

#contributions ⇒ Object



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

def contributions
  self["contributions"] || []
end

#identifiers ⇒ Object



19
20
21
# File 'lib/bibframe_ruby/models/hub.rb', line 19

def identifiers
  self["identifiers"] || []
end

#label ⇒ Object



27
28
29
# File 'lib/bibframe_ruby/models/hub.rb', line 27

def label
  self["label"]
end

#language ⇒ Object



15
16
17
# File 'lib/bibframe_ruby/models/hub.rb', line 15

def language
  self["language"]
end

#relations ⇒ Object



23
24
25
# File 'lib/bibframe_ruby/models/hub.rb', line 23

def relations
  self["relations"] || []
end

#title ⇒ Object



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

def title
  self["title"]
end