Class: BELParser::Language::Version2_0::Relationships::IsA

Inherits:
Object
  • Object
show all
Extended by:
Relationship
Defined in:
lib/bel_parser/language/version2_0/relationships/is_a.rb

Overview

IsA: A isA B - For terms A and B, A isA B indicates that A is a subset of B. All terms in BEL represent classes, but given that classes implicitly have instances, one can also interpret A isA B to mean that any instance of A must also be an instance of B. This relationship can be used to represent GO and MeSH hierarchies: pathology(MESH:Psoriasis) isA pathology(MESH:“Skin Diseases”)

Constant Summary collapse

SHORT =
:isA
LONG =
:isA
DESCRIPTION =
<<-DOC
IsA:  +A isA B+ -  For terms A and B, +A isA B+ indicates
that A is a subset of B. All terms in BEL represent classes,
but given that classes implicitly have instances, one can
also interpret +A isA B+ to mean that any instance of A must
also be an instance of B. This relationship can be used to
represent GO and MeSH hierarchies: +pathology(MESH:Psoriasis)
isA pathology(MESH:"Skin Diseases")+
DOC

Class Method Summary collapse

Methods included from Relationship

==, =~, causal?, correlative?, decreasing?, deprecated?, description, direct?, directed?, genomic?, increasing?, indirect?, injected?, listable?, long, self?, short, to_h, to_s, to_sym

Class Method Details

.descriptionObject



39
40
41
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 39

def self.description
  DESCRIPTION
end

.directed?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 43

def self.directed?
  true
end

.longObject



35
36
37
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 35

def self.long
  LONG
end

.shortObject



31
32
33
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 31

def self.short
  SHORT
end