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.78 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.77 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.76 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.75 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.74 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.73 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.72 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.71 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.70 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.69 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.68 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.67 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.66 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.65 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.64 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.63 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.62 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.61 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.60 lib/rbbt/knowledge_base.rb
rbbt-util-5.17.59 lib/rbbt/knowledge_base.rb