Click or drag to resize

InMemoryDataset Class

Represents an in-memory dataset (i.e. a InMemoryQueryableStore) for querying and updating using SPARQL.
Inheritance Hierarchy

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

The InMemoryDataset type exposes the following members.

Constructors
  NameDescription
Public methodInMemoryDataset
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Public methodInMemoryDataset(Boolean)
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Public methodInMemoryDataset(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 methodInMemoryDataset(IInMemoryQueryableStore)
Creates a new In-Memory dataset.
Public methodInMemoryDataset(IInMemoryQueryableStore, Boolean)
Creates a new In-Memory dataset.
Public methodInMemoryDataset(IInMemoryQueryableStore, Uri)
Creates a new In-Memory dataset.
Top
Properties
  NameDescription
Public propertyActiveGraphUris
Gets the Active Graph URIs.
(Inherited from BaseDataset.)
Public propertyDefaultGraphUris
Gets the Default Graph URIs.
(Inherited from BaseDataset.)
Public propertyGraphs
Gets all the Graphs in the Dataset.
(Overrides BaseDatasetGraphs.)
Public propertyGraphUris
Gets all the URIs of Graphs in the Dataset.
(Overrides BaseDatasetGraphUris.)
Public propertyHasTriples
Gets whether the Dataset has any Triples.
(Inherited from BaseDataset.)
Protected propertyInternalDefaultGraph
Gets a reference to the actual IGraph that is currently treated as the default graph.
(Inherited from BaseDataset.)
Public propertyItem
Gets a Graph from the Dataset.
(Inherited from BaseTransactionalDataset.)
Public propertyLock
Gets the Lock used to ensure MRSW concurrency on the dataset when available.
Public propertyTriples
Gets all the Triples in the Dataset.
(Inherited from BaseDataset.)
Public propertyUsesUnionDefaultGraph
Gets whether the Default Graph is treated as being the union of all Graphs in the dataset when no Default Graph is otherwise set.
(Inherited from BaseDataset.)
Top
Methods
  NameDescription
Public methodAddGraph
Adds a Graph to the Dataset.
(Inherited from BaseTransactionalDataset.)
Protected methodAddGraphInternal
Adds a Graph to the Dataset merging it with any existing Graph with the same URI.
(Overrides BaseTransactionalDatasetAddGraphInternal(IGraph).)
Public methodContainsTriple
Gets whether the Dataset contains a specific Triple.
(Inherited from BaseDataset.)
Protected methodContainsTripleInternal
Gets whether the Dataset contains a specific Triple.
(Overrides BaseDatasetContainsTripleInternal(Triple).)
Public methodDiscard
Ensures that any changes to the Dataset (if any) are discarded.
(Inherited from BaseTransactionalDataset.)
Protected methodDiscardInternal
Allows the derived dataset to take any post-Discard() actions required.
(Inherited from BaseTransactionalDataset.)
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 BaseTransactionalDataset.)
Protected methodFlushInternal
If there have been changes made to the Dataset and the underlying in-memory store is a ITransactionalStore ensures the underlying store is notified to flush those changes.
(Overrides BaseTransactionalDatasetFlushInternal.)
Protected methodGetAllTriples
Gets all the Triples in the underlying in-memory store.
(Overrides BaseDatasetGetAllTriples.)
Protected methodGetGraphInternal
Gets the Graph with the given URI from the Dataset.
(Overrides BaseDatasetGetGraphInternal(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 BaseTransactionalDataset.)
Protected methodGetModifiableGraphInternal
Gets a Modifiable wrapper around a Graph in the Dataset.
(Overrides BaseTransactionalDatasetGetModifiableGraphInternal(Uri).)
Public methodGetTriplesWithObject
Gets all the Triples in the Dataset with the given Object.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithObjectInternal
Gets all the Triples in the Dataset with the given Object.
(Overrides BaseDatasetGetTriplesWithObjectInternal(INode).)
Public methodGetTriplesWithPredicate
Gets all the Triples in the Dataset with the given Predicate.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithPredicateInternal
Gets all the Triples in the Dataset with the given Predicate.
(Overrides BaseDatasetGetTriplesWithPredicateInternal(INode).)
Public methodGetTriplesWithPredicateObject
Gets all the Triples in the Dataset with the given Predicate and Object.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithPredicateObjectInternal
Gets all the Triples in the Dataset with the given Predicate and Object.
(Overrides BaseDatasetGetTriplesWithPredicateObjectInternal(INode, INode).)
Public methodGetTriplesWithSubject
Gets all the Triples in the Dataset with the given Subject.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithSubjectInternal
Gets all the Triples in the Dataset with the given Subject.
(Overrides BaseDatasetGetTriplesWithSubjectInternal(INode).)
Public methodGetTriplesWithSubjectObject
Gets all the Triples in the Dataset with the given Subject and Object.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithSubjectObjectInternal
Gets all the Triples in the Dataset with the given Subject and Object.
(Overrides BaseDatasetGetTriplesWithSubjectObjectInternal(INode, INode).)
Public methodGetTriplesWithSubjectPredicate
Gets all the Triples in the Dataset with the given Subject and Predicate.
(Inherited from BaseDataset.)
Protected methodGetTriplesWithSubjectPredicateInternal
Gets all the Triples in the Dataset with the given Subject and Predicate.
(Overrides BaseDatasetGetTriplesWithSubjectPredicateInternal(INode, INode).)
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 BaseDataset.)
Protected methodHasGraphInternal
Gets whether a Graph with the given URI is the Dataset.
(Overrides BaseDatasetHasGraphInternal(Uri).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveGraph
Removes a Graph from the Dataset.
(Inherited from BaseTransactionalDataset.)
Protected methodRemoveGraphInternal
Removes a Graph from the Dataset.
(Overrides BaseDatasetRemoveGraphInternal(Uri).)
Public methodResetActiveGraph
Sets the Active Graph for the SPARQL query to be the previous Active Graph.
(Inherited from BaseDataset.)
Public methodResetDefaultGraph
Sets the Default Graph for the SPARQL Query to be the previous Default Graph.
(Inherited from BaseDataset.)
Public methodSetActiveGraph(IEnumerableUri)
Sets the Active Graph for the SPARQL query.
(Inherited from BaseDataset.)
Public methodSetActiveGraph(Uri)
Sets the Active Graph for the SPARQL query.
(Inherited from BaseDataset.)
Public methodSetDefaultGraph(IEnumerableUri)
Sets the Default Graph.
(Inherited from BaseDataset.)
Public methodSetDefaultGraph(Uri)
Sets the Default Graph.
(Inherited from BaseDataset.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also