ontology.rb revision 658151642f71e0593b7d55f124fd42ebe2cfcf9a
# Ontohub Library Includes
# Ontology Model Includes
# Multiple Class Features
:logic_id,
:acronym,
:projects,
:present,
:task_ids,
allow_blank: true,
delegate :permission?, to: :repository
delegate :basepath, :file_extension, :path, to: :current_version
strip_attributes :only => [:name, :iri]
readonly(false)
end
scope :parents_first, order('(CASE WHEN ontologies.parent_id IS NULL THEN 1 ELSE 0 END) DESC, ontologies.parent_id asc')
\A
.+?
:// # A uri has a separation between schema and hierarchy
.+
(?:/|\#)
\z
}x)
if match
else
end
end
child_name = child_name[1..-2] if child_name[0] == '<'
end
def is?(logic_name)
end
end
end
end
end
# Title for links
end
if ontology.nil?
end
end
end
end
import_links.map(&:source)
end
if parent
end
else
end
end
end
# if repository destroying, then check if imported externally
if is_imported? &&
end
end
end
end
end
end
# list all sentences defined on this ontology,
# those who are self defined and those which
# are imported (ImpAxioms)
end
end
onto = parent.nil? ? self : parent
end
end
end
end