Class FullTextIndexedDataset
A Full Text Indexed Dataset is a wrapper around another dataset and provides automatic full text indexing of data that is added and removed.
Inherited Members
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.Query.FullText.dll
Syntax
public class FullTextIndexedDataset : WrapperDataset, IConfigurationSerializable, IThreadSafeDataset, ISparqlDataset, ITripleIndex
Constructors
| Edit this page View SourceFullTextIndexedDataset(ISparqlDataset, IFullTextIndexer)
Creates a new Full Text Indexed Dataset.
Declaration
public FullTextIndexedDataset(ISparqlDataset dataset, IFullTextIndexer indexer)
Parameters
Type | Name | Description |
---|---|---|
ISparqlDataset | dataset | Dataset to wrap. |
IFullTextIndexer | indexer | Indexer to use. |
Remarks
Does not do any indexing, assumes the provided dataset is already indexed. When using this constructor only changes to the dataset affect the index.
FullTextIndexedDataset(ISparqlDataset, IFullTextIndexer, bool)
Creates a new Full Text Indexed Dataset.
Declaration
public FullTextIndexedDataset(ISparqlDataset dataset, IFullTextIndexer indexer, bool indexNow)
Parameters
Type | Name | Description |
---|---|---|
ISparqlDataset | dataset | Dataset to wrap. |
IFullTextIndexer | indexer | Indexer to use. |
bool | indexNow | Whether the dataset provided should be indexed now, set to false if indexer is linked to an existing index for this data. |
Remarks
If indexNow
is true then the provided dataset will be fully indexed when this constructor is called.
Methods
| Edit this page View SourceAddGraph(IGraph)
Adds a Graph to the Dataset updating the Full Text Index appropriately.
Declaration
public override bool AddGraph(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to add. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceDiscard()
Discards changes to the Dataset and ensures the Index is up to date.
Declaration
public override void Discard()
Overrides
| Edit this page View SourceFlush()
Flushes changes to the Dataset and ensures the Index is up to date.
Declaration
public override void Flush()
Overrides
| Edit this page View SourceGetModifiableGraph(Uri)
Gets a modifiable graph from the store ensuring that modifications will update the Full Text Index.
Declaration
[Obsolete("Replaced by GetModifiableGraph(IRefNode)")]
public override IGraph GetModifiableGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
Overrides
| Edit this page View SourceGetModifiableGraph(IRefNode)
Gets a modifiable graph from teh store, ensuring that modifications will update the full text index.
Declaration
public override IGraph GetModifiableGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |
Returns
Type | Description |
---|---|
IGraph |
Overrides
| Edit this page View SourceRemoveGraph(Uri)
Removes a Graph from the Dataset updating the Full Text Index appropriately.
Declaration
[Obsolete("Replaced by RemoveGraph(IRefNode)")]
public override bool RemoveGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | URI of the Graph to remove. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceRemoveGraph(IRefNode)
Removes a Graph from the Dataset updating the full text index appropriately.
Declaration
public override bool RemoveGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceSerializeConfiguration(ConfigurationSerializationContext)
Serializes the Configuration of the Dataset.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Serialization Context. |