diff --git a/lib/ontologies_api_client/models/class.rb b/lib/ontologies_api_client/models/class.rb index d3bbec2..e249887 100644 --- a/lib/ontologies_api_client/models/class.rb +++ b/lib/ontologies_api_client/models/class.rb @@ -14,12 +14,12 @@ class Class < LinkedData::Client::Base # triple store predicate is def obsolete? - self.obsolete + self.obsolete && self.obsolete.to_s.eql?("true") end def prefLabel(options = {}) if options[:use_html] - if self.obsolete + if obsolete? return "#{@prefLabel}" else return "#{@prefLabel}"