Sha256: 8cfeffdd3d2c8c9c7ab2977e6a9b4c52b503e2d0d99651c18bbbf46f5d2bbc70

Contents?: true

Size: 1.59 KB

Versions: 11

Compression:

Stored size: 1.59 KB

Contents

require_relative '../../version2_0'
require_relative '../../relationship'

module BELParser
  module Language
    module Version2_0
      module Relationships
        # HasProduct:  +reaction(reactants(A), products(B))
        # hasProduct B+ -  This relationship links abundance
        # terms from the +products(<list>)+ in a reaction to the
        # reaction. This is a direct relationship because it is a _self_
        # relationship. Products are produced directly by a reaction. This
        # relationship is introduced by the BEL Compiler and may not be
        # used by statements in BEL documents.
        class HasProduct
          extend Relationship

          SHORT       = :hasProduct
          LONG        = :hasProduct

          DESCRIPTION = <<-DOC
HasProduct:  +reaction(reactants(A), products(B))
hasProduct B+ -  This relationship links abundance
terms from the +products(<list>)+ in a reaction to the
reaction. This is a direct relationship because it is a _self_
relationship. Products are produced directly by a reaction. This
relationship is introduced by the BEL Compiler and may not be
used by statements in BEL documents.
          DOC

          def self.short
            SHORT
          end

          def self.long
            LONG
          end

          def self.description
            DESCRIPTION
          end

          def self.direct?
            true
          end

          def self.directed?
            true
          end

          def self.injected?
            true
          end

          def self.self?
            true
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bel_parser-1.1.6-java lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.6 lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.5 lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.4-java lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.4 lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.3-java lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.3 lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.2-java lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.2 lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.1-java lib/bel_parser/language/version2_0/relationships/has_product.rb
bel_parser-1.1.1 lib/bel_parser/language/version2_0/relationships/has_product.rb