Class: BELParser::Language::Version2_0::Relationships::HasComponents

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

Overview

HasComponents: A hasComponents (B, C, D) - The hasComponents relationship is a special form which enables the assignment of multiple complex components in a single statement where the object of the statement is a set of abundance terms. A statement using hasComponents is exactly equivalent to multiple hasComponent statements. A term may not appear in both the subject and object of the same hasComponents statement. For the abundance terms A, B, C and D, A hasComponents B, C, D indicates that A has components B, C and D.

Constant Summary collapse

SHORT =
:hasComponents
LONG =
:hasComponents
DESCRIPTION =
<<-DOC
HasComponents:  +A hasComponents (B, C, D)+ -  The hasComponents
relationship is a special form which enables the assignment
of multiple complex components in a single statement where
the object of the statement is a set of abundance terms. A
statement using hasComponents is exactly equivalent to multiple
hasComponent statements. A term may not appear in both the
subject and object of the same hasComponents statement. For
the abundance terms A, B, C and D, +A hasComponents B, C, D+
indicates that A has components B, C and D.
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



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

def self.description
  DESCRIPTION
end

.direct?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/bel_parser/language/version2_0/relationships/has_components.rb', line 47

def self.direct?
  true
end

.directed?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/bel_parser/language/version2_0/relationships/has_components.rb', line 51

def self.directed?
  true
end

.listable?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/bel_parser/language/version2_0/relationships/has_components.rb', line 55

def self.listable?
  true
end

.longObject



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

def self.long
  LONG
end

.shortObject



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

def self.short
  SHORT
end