SemWeb.Stores.KnowledgeModel

SemWeb : SemWeb.Stores Namespace
KnowledgeModel

A store for combining multiple stores and inference engines.

public class KnowledgeModel : SemWeb.Store

Remarks
None.
Members

See Also: Inherited members from SemWeb.Store.

Constructors

KnowledgeModel () Constructs a new empty KnowledgeModel.
KnowledgeModel (SemWeb.RdfReader) Creates a new KnowledgeModel, adds to it a SemWeb.Stores.MemoryStore, and loads in the statements from the given reader.

Properties

Storage [read-only] | MultiStore . The MultiStore that maintains the list of stores within this KnowledgeModel.

Methods

| Add (SemWeb.Store) Adds a store into the KnowledgeModel.
| AddReasoning (SemWeb.Reasoning.ReasoningEngine) Adds a reasoning engine to the KnowledgeModel.

Member Details
KnowledgeModel Constructor
public KnowledgeModel ()

Constructs a new empty KnowledgeModel.

Remarks
None.

KnowledgeModel Constructor
public KnowledgeModel (SemWeb.RdfReader parser)

Creates a new KnowledgeModel, adds to it a SemWeb.Stores.MemoryStore, and loads in the statements from the given reader.

Parameters

parser
  A parser containing statements to load into the memory store.

Remarks
This is a convenience function.

Add
public void Add (SemWeb.Store storage)

Adds a store into the KnowledgeModel.

Parameters

storage
  The store to add into the model.

Remarks

The statements in store become available through calls to this KnowledgeModel's select and contains methods.

The store should have been created passing this KnowledgeModel to its constructor so that the store is associated with this KnowledgeModel.

Storage
public MultiStore Storage { get; }

The MultiStore that maintains the list of stores within this KnowledgeModel.

Value
The list of stores within this KnowledgeModel.
Remarks

It is safe to manipulate the object returned by this property to change the stores associated with the KnowledgeModel.

Calls to Contains and Select on the MultiStore reflect the contents of the stores contained in it without the application of the KnowledgeModel's inference engines.

AddReasoning
public void AddReasoning (SemWeb.Reasoning.ReasoningEngine engine)

Adds a reasoning engine to the KnowledgeModel.

Parameters

engine
  The reasoning engine.

Remarks
Select calls on this store will now return statements filtered by the reasoning engine.