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 =
' +A hasComponents (B, C, D)+ -  The hasComponents
elationship is a special form which enables
he assignment of multiple complex components
n a single statement where the object of the
tatement is a set of abundance terms. A statement
sing hasComponents is exactly equivalent to
ultiple hasComponent statements. A term may not
ppear in both the subject and object of the same
asComponents statement. For the abundance terms A,
, C and D, +A hasComponents B, C, D+ indicates
hat A has components B, C and D.'.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



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

def self.description
  DESCRIPTION
end

.direct?Boolean

Returns:

  • (Boolean)


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

def self.direct?
  true
end

.directed?Boolean

Returns:

  • (Boolean)


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

def self.directed?
  true
end

.listable?Boolean

Returns:

  • (Boolean)


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

def self.listable?
  true
end

.longObject



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

def self.long
  LONG
end

.shortObject



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

def self.short
  SHORT
end