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.38 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.37 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.35 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.33 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.32 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.31 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.30 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.29 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.28 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.27 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.26 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.25 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.24 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.23 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.22 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.21 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.20 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.19 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.18 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.17 lib/rbbt/knowledge_base.rb