logic.rb revision 930c3dc1d778b713c3c77550f1c82d8ef8d7fa8e
#
# A named logic in the field of Logics.
#
# Examples:
# * Classical Logic
# * Common Logic
# * Description Logic
# * First-Order Logic
# * Modal Logic
#
STAND_STATUS = %w( AcademicLiterature ISOStandard Unofficial W3CRecommendation W3CTeamSubmission W3CWorkingGroupNote )
DEFINED_BY = %w( registry )
# The creator of this logic in the system
# The logic creator
# * is not necessarily an owner nor an editor
# * may be a current or former user of the system
# * may be the original logician or anyone else
#validates_format_of :iri, with: URI::regexp(ALLOWED_URI_SCHEMAS)
}
def to_s
name
end
def add_language(language)
sup = self.supports.new
sup.language = language
sup.save!
end
def mappings_from
LogicMapping.find_all_by_source_id self.id
end
def mappings_to
LogicMapping.find_all_by_target_id self.id
end
end