Skip to content

Commit

Permalink
fix bug of obsolete class
Browse files Browse the repository at this point in the history
  • Loading branch information
SirineMhedhbi committed Oct 13, 2023
1 parent 8823ac7 commit da65de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ontologies_api_client/models/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class Class < LinkedData::Client::Base

# triple store predicate is <http://www.w3.org/2002/07/owl#deprecated>
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 "<span class='obsolete_class' title='obsolete class'>#{@prefLabel}</span>"
else
return "<span class='prefLabel'>#{@prefLabel}</span>"
Expand Down

0 comments on commit da65de5

Please sign in to comment.