ontology.rb revision 794d8870f2d40edebbfb02f103ce1fb8091bdb67
# Ontohub Library Includes
# Ontology Model Includes
# Multiple Class Features
:logic_id,
:acronym,
:projects,
:present,
allow_blank: true,
delegate :permission?, to: :repository
strip_attributes :only => [:name, :iri]
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
"#{basepath}#{file_extension}"
end
end
end
end
# Title for links
end
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
where "ontologies.basepath = :basepath AND ontologies.file_extension = :file_extension AND ontologies.parent_id IS NULL",
end
end
end
end