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 =
' +A isA B+ -  For terms A and B, +A isA B+
ndicates that A is a subset of B. All terms in BEL
epresent classes, but given that classes implicitly
ave instances, one can also interpret +A isA B+ to
ean that any instance of A must also be an instance
f B. This relationship can be used to represent
O and MeSH hierarchies: +pathology(MESH:Psoriasis)
sA pathology(MESH:"Skin Diseases")+'.freeze

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



37
38
39
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 37

def self.description
  DESCRIPTION
end

.directed?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 41

def self.directed?
  true
end

.longObject



33
34
35
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 33

def self.long
  LONG
end

.shortObject



29
30
31
# File 'lib/bel_parser/language/version2_0/relationships/is_a.rb', line 29

def self.short
  SHORT
end