Class: BELParser::Language::Version2_0::Relationships::HasMembers

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

Overview

HasMembers: A hasMembers (B, C, D) - The hasMembers relationship is a special form which enables the assignment of multiple member classes in a single statement where the object of the statement is a set of abundance terms. A statement using hasMembers is exactly equivalent to multiple hasMember statements. A term may not appear in both the subject and object of a of the same hasMembers statement. For the abundance terms A, B, C and D, A hasMembers B, C, D indicates that A is defined by its member abundance classes B, C and D.

Constant Summary collapse

SHORT =
:hasMembers
LONG =
:hasMembers
DESCRIPTION =
' +A hasMembers (B, C, D)+ -  The hasMembers
elationship is a special form which enables the
ssignment of multiple member classes in a single
tatement where the object of the statement is a set
f abundance terms. A statement using hasMembers
s exactly equivalent to multiple hasMember
tatements. A term may not appear in both the
ubject and object of a of the same hasMembers
tatement. For the abundance terms A, B, C and D,
A hasMembers B, C, D+ indicates that A is defined
y its member abundance classes 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_members.rb', line 42

def self.description
  DESCRIPTION
end

.directed?Boolean

Returns:

  • (Boolean)


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

def self.directed?
  true
end

.listable?Boolean

Returns:

  • (Boolean)


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

def self.listable?
  true
end

.longObject



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

def self.long
  LONG
end

.shortObject



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

def self.short
  SHORT
end