Click or drag to resize

InMemoryQuadDataset Class

An in-memory dataset that operates in terms of quads, underlying storage is identical to a InMemoryDataset though this dataset should be more performant for queries that access named graphs frequently.
Inheritance Hierarchy

Namespace:  VDS.RDF.Query.Datasets
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class InMemoryQuadDataset : BaseTransactionalQuadDataset, 
	IThreadSafeDataset, ISparqlDataset

The InMemoryQuadDataset type exposes the following members.

Constructors
  NameDescription
Public methodInMemoryQuadDataset
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Public methodInMemoryQuadDataset(Boolean)
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Public methodInMemoryQuadDataset(IGraph)
Creates a new in-memory dataset containing initially just the given graph and treating the given graph as the default graph of the dataset.
Public methodInMemoryQuadDataset(IInMemoryQueryableStore)
Creates a new In-Memory dataset.
Public methodInMemoryQuadDataset(IInMemoryQueryableStore, Boolean)
Creates a new In-Memory dataset.
Public methodInMemoryQuadDataset(IInMemoryQueryableStore, Uri)
Creates a new In-Memory dataset.
Top
Properties
  NameDescription
Public propertyActiveGraphUris
Gets the Active Graph URIs.
(Inherited from BaseQuadDataset.)
Public propertyDefaultGraphUris
Gets the Default Graph URIs.
(Inherited from BaseQuadDataset.)
Public propertyGraphs
Gets all the Graphs in the Dataset.
(Overrides BaseQuadDatasetGraphs.)
Public propertyGraphUris
Gets all the URIs of Graphs in the Dataset.
(Overrides BaseQuadDatasetGraphUris.)
Public propertyHasTriples
Gets whether the dataset has any triples.
(Inherited from BaseQuadDataset.)
Public propertyItem
Gets a Graph from the dataset.
(Inherited from BaseTransactionalQuadDataset.)
Public propertyLock
Gets the Lock used to ensure MRSW concurrency on the dataset when available.
Public propertyTriples
Gets all triples from the dataset.
(Inherited from BaseQuadDataset.)
Public propertyUsesUnionDefaultGraph
Gets whether this dataset uses a union default graph.
(Inherited from BaseQuadDataset.)
Top
Methods
  NameDescription
Public methodAddGraph
Adds a Graph to the Dataset.
(Inherited from BaseTransactionalQuadDataset.)
Protected methodAddGraphInternal
Adds a Graph to the Dataset merging it with any existing Graph with the same URI.
(Overrides BaseTransactionalQuadDatasetAddGraphInternal(IGraph).)
Protected methodAddQuad
Adds a quad to the dataset.
(Overrides BaseQuadDatasetAddQuad(Uri, Triple).)
Protected methodContainsQuad
Gets whether the dataset contains a given Quad.
(Overrides BaseQuadDatasetContainsQuad(Uri, Triple).)
Public methodContainsTriple
Gets whether the dataset contains a triple.
(Inherited from BaseQuadDataset.)
Public methodDiscard
Ensures that any changes to the Dataset (if any) are discarded.
(Inherited from BaseTransactionalQuadDataset.)
Protected methodDiscardInternal
Allows the derived dataset to take any post-Discard() actions required.
(Inherited from BaseTransactionalQuadDataset.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Ensures that any changes to the Dataset (if any) are flushed to the underlying Storage.
(Inherited from BaseTransactionalQuadDataset.)
Protected methodFlushInternal
Flushes any changes to the store.
(Overrides BaseTransactionalQuadDatasetFlushInternal.)
Protected methodGetGraphInternal
Gets the Graph with the given URI from the Dataset.
(Overrides BaseQuadDatasetGetGraphInternal(Uri).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetModifiableGraph
Gets a Graph from the Dataset that can be modified.
(Inherited from BaseTransactionalQuadDataset.)
Protected methodGetModifiableGraphInternal
Gets a Modifiable wrapper around a Graph in the Dataset.
(Overrides BaseTransactionalQuadDatasetGetModifiableGraphInternal(Uri).)
Protected methodGetQuads
Gets all quads for a given graph.
(Overrides BaseQuadDatasetGetQuads(Uri).)
Protected methodGetQuadsWithObject
Gets all Quads with a given object.
(Overrides BaseQuadDatasetGetQuadsWithObject(Uri, INode).)
Protected methodGetQuadsWithPredicate
Gets all Quads with a given predicate.
(Overrides BaseQuadDatasetGetQuadsWithPredicate(Uri, INode).)
Protected methodGetQuadsWithPredicateObject
Gets all Quads with a given predicate and object.
(Overrides BaseQuadDatasetGetQuadsWithPredicateObject(Uri, INode, INode).)
Protected methodGetQuadsWithSubject
Gets all Quads with a given subject.
(Overrides BaseQuadDatasetGetQuadsWithSubject(Uri, INode).)
Protected methodGetQuadsWithSubjectObject
Gets all Quads with a given subject and object.
(Overrides BaseQuadDatasetGetQuadsWithSubjectObject(Uri, INode, INode).)
Protected methodGetQuadsWithSubjectPredicate
Gets all Quads with a given subject and predicate.
(Overrides BaseQuadDatasetGetQuadsWithSubjectPredicate(Uri, INode, INode).)
Public methodGetTriplesWithObject
Gets all the Triples with a given object.
(Inherited from BaseQuadDataset.)
Public methodGetTriplesWithPredicate
Gets all the Triples with a given predicate.
(Inherited from BaseQuadDataset.)
Public methodGetTriplesWithPredicateObject
Gets all the Triples with a given predicate and object.
(Inherited from BaseQuadDataset.)
Public methodGetTriplesWithSubject
Gets all the Triples with a given subject.
(Inherited from BaseQuadDataset.)
Public methodGetTriplesWithSubjectObject
Gets all the Triples with a given subject and object.
(Inherited from BaseQuadDataset.)
Public methodGetTriplesWithSubjectPredicate
Gets all the Triples with a given subject and predicate.
(Inherited from BaseQuadDataset.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasGraph
Gets whether a Graph with the given URI is the Dataset.
(Inherited from BaseQuadDataset.)
Protected methodHasGraphInternal
Gets whether a Graph with the given URI is the Dataset.
(Overrides BaseQuadDatasetHasGraphInternal(Uri).)
Protected methodIsDefaultGraph
Gets whether the given URI represents the default graph of the dataset.
(Inherited from BaseQuadDataset.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveGraph
Removes a Graph from the Dataset.
(Inherited from BaseTransactionalQuadDataset.)
Protected methodRemoveGraphInternal
Removes a Graph from the Dataset.
(Overrides BaseTransactionalQuadDatasetRemoveGraphInternal(Uri).)
Protected methodRemoveQuad
Removes a quad from the dataset.
(Overrides BaseQuadDatasetRemoveQuad(Uri, Triple).)
Public methodResetActiveGraph
Resets the Active Graph.
(Inherited from BaseQuadDataset.)
Public methodResetDefaultGraph
Resets the Default Graph.
(Inherited from BaseQuadDataset.)
Public methodSetActiveGraph(IEnumerableUri)
Sets the Active Graph.
(Inherited from BaseQuadDataset.)
Public methodSetActiveGraph(Uri)
Sets the Active Graph.
(Inherited from BaseQuadDataset.)
Public methodSetDefaultGraph(IEnumerableUri)
Sets the Default Graph.
(Inherited from BaseQuadDataset.)
Public methodSetDefaultGraph(Uri)
Sets the Default Graph.
(Inherited from BaseQuadDataset.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also