ontology.rb revision a2cfedf970eadd36fa2b5e81c2e8a24396a86792
# Ontohub Library Includes
# Ontology Model Includes
scope :search, ->(query) { where "iri LIKE :term OR name LIKE :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