ontology.rb revision 341f09a83aa18635a9b1651a988a81d0d5a55d6f
# Ontohub Library Includes
# Ontology Model Includes
scope :search, ->(query) { where "iri #{connection.ilike_operator} :term OR name #{connection.ilike_operator} :term", :term => "%" << query << "%" }
def to_s
name? ? name : iri
end
# title for links
def title
name? ? iri : nil
end
def symbols
entities
end
def symbols_count
entities_count
end
end