From da65de5ab99c6771d0c8c20a6e9999e4eb14b486 Mon Sep 17 00:00:00 2001 From: sirine mhedhbi Date: Fri, 13 Oct 2023 13:50:36 +0200 Subject: [PATCH] fix bug of obsolete class --- lib/ontologies_api_client/models/class.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}"