ontology.rb revision bd870b52ef7afb26c0c6671c5ca4a620998ff57f
# 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
import_links.map(&:source)
end
if parent
else
end
end
end
end
end
end
where "ontologies.basepath = :basepath AND ontologies.file_extension = :file_extension AND ontologies.parent_id IS NULL",
end
end
end