Sha256: 7ae79ba4d3622e085cb6d58926726fe9361df50c616d02edceac1e6b25af3430

Contents?: true

Size: 801 Bytes

Versions: 84

Compression:

Stored size: 801 Bytes

Contents

require 'rbbt/association'
require 'rbbt/association/item'
require 'rbbt/knowledge_base/entity'
require 'rbbt/knowledge_base/query'
require 'rbbt/knowledge_base/syndicate'

class KnowledgeBase

  attr_accessor :namespace, :dir, :databases, :indices, :registry, :format, :entity_options
  def initialize(dir, namespace = nil)
    @dir = Path.setup(dir.dup)

    @namespace = namespace
    @format = IndiferentHash.setup({})

    @registry ||= IndiferentHash.setup({})
    @entity_options = IndiferentHash.setup({})

    @indices = IndiferentHash.setup({})
    @databases = IndiferentHash.setup({})
    @identifiers = IndiferentHash.setup({})
    @descriptions = {}
    @databases = {}
  end

  def setup(name, matches, reverse = false)
    AssociationItem.setup matches, self, name, reverse
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
rbbt-util-5.17.16 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.15 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.14 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.13 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.12 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.11 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.10 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.9 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.7 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.6 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.5 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.4 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.3 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.2 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.1 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.0 lib/rbbt/knowledge_base.rb
rbbt-util-5.16.3 lib/rbbt/knowledge_base.rb
rbbt-util-5.16.2 lib/rbbt/knowledge_base.rb
rbbt-util-5.16.1 lib/rbbt/knowledge_base.rb
rbbt-util-5.16.0 lib/rbbt/knowledge_base.rb