This interface is implemented by data sources that support modifying the contents of the store.
Operations including Clear, Replace, and Remove are specified by this interface.
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2
⊟ Public Methods
Clear () Clears the contents of the data store.Import (StatementSource) Loads the contents of a StatementSource into the data store.Remove (Statement) Removes statements from the data store.RemoveAll (Statement[]) Removes all statements matching an array of templates.Replace (Entity, Entity) Replaces all occurences of one Entity with another Entity.Replace (Statement, Statement) Replaces a single statement with another statement.
⊟ Clear Method
Clears the contents of the data store.
public void Clear ()⊟ Remarks
The data store is empty after a call to Clear.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Import Method
Loads the contents of a StatementSource into the data store.
public void Import (StatementSource source)⊟ Parameters
- source
- The source whose statements will be added into the data store.
⊟ Remarks
This method wraps a call to StatementSource.Select(StatementSink) in store-specific code that prepares the store for receiving many statements. The store may make itself locked for access by other processes to make the parsing faster. To avoid this, call StatementSource.Select(StatementSink) directly.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Remove Method
Removes statements from the data store.
⊟ Parameters
- template
- A statement or statement template to remove from the data store.
⊟ Remarks
All statements in the data store that match template are removed. The template argument is a template. The non-null fields of template are used as a filter on the statements in the store. Statements that match the filter are removed. null fields of template are ignored during filtering. Any field in template (Subject, Predicate, Object, and Meta) may be null.The following examples erase all statements in a store (although you should use ModifiableSource.Clear().
C# Example store.Remove(new Statement(null, null, null)); store.Remove(Statement.All);⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ RemoveAll Method
Removes all statements matching an array of templates.
⊟ Parameters
- templates
- An array of statement templates. Statement templates may contain a null subject, predicate, object, and/or meta.
⊟ Remarks
Stores may be more efficient removing statements in one call than through repeated calls to ModifiableSource.Remove(Statement).⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Replace Method
Replaces all occurences of one Entity with another Entity.
⊟ Parameters
- find
- The Entity to search for in the store.
- replacement
- The Entity to replace a.
⊟ Remarks
All occurences of find in statements in the store are replaced with references to replacement.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Replace Method
Replaces a single statement with another statement.
⊟ Parameters
- find
- The statement to find. This parameter must be a complete statement (with subject, predicate, and object non-null), not a template.
- replacement
- The statement that will replace the first statement.
⊟ Remarks
Store implementations may choose to optimize this method over a call to Remove followed by Add.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2