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
Constructors
| Improve this Doc 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.
|
Improve this Doc
View Source
FullTextIndexedDataset(ISparqlDataset, IFullTextIndexer, Boolean)
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. |
System.Boolean | 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
| Improve this Doc 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 |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDiscard()
Discards changes to the Dataset and ensures the Index is up to date.
Declaration
public override void Discard()
Overrides
| Improve this Doc View SourceFlush()
Flushes changes to the Dataset and ensures the Index is up to date.
Declaration
public override void Flush()
Overrides
| Improve this Doc View SourceGetModifiableGraph(Uri)
Gets a modifiable graph from the store ensuring that modifications will update the Full Text Index.
Declaration
public override IGraph GetModifiableGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
RemoveGraph(Uri)
Removes a Graph from the Dataset updating the Full Text Index appropriately.
Declaration
public override bool RemoveGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | URI of the Graph to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the Configuration of the Dataset.
Declaration
public override void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Serialization Context. |