class DogBiscuits::Project
Public Instance Methods
add_label()
click to toggle source
Generate a rdfs label from the name parts. Overwrite the existing label.
# File lib/dog_biscuits/models/authorities/project.rb, line 49 def add_label self.rdfs_label = name if name.present? self.rdfs_label += " (id: #{identifier.join})" if identifier.present? add_preflabel end
add_preflabel()
click to toggle source
Generate a preflabel from rdfs label.
# File lib/dog_biscuits/models/authorities/project.rb, line 56 def add_preflabel self.preflabel = rdfs_label end
agent?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 12 def agent? false end
concept?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 16 def concept? false end
concept_scheme?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 20 def concept_scheme? false end
event?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 24 def event? false end
group?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 28 def group? false end
organisation?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 32 def organisation? false end
person?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 36 def person? false end
place?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 40 def place? false end
project?()
click to toggle source
# File lib/dog_biscuits/models/authorities/project.rb, line 44 def project? true end