Click or drag to resize

IInMemoryQueryableStore Interface

Interface for Triple Stores which can be queried in memory using method calls or the SPARQL implementation contained in this library.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public interface IInMemoryQueryableStore : ITripleStore, 
	IDisposable

The IInMemoryQueryableStore type exposes the following members.

Properties
  NameDescription
Public propertyGraphs
Gets the Graph Collection of Graphs in this Triple Store.
(Inherited from ITripleStore.)
Public propertyIsEmpty
Gets whether a TripleStore is Empty.
(Inherited from ITripleStore.)
Public propertyItem
Gets a Graph from the Triple Store;.
(Inherited from ITripleStore.)
Public propertyTriples
Gets all the Triples in the Triple Store which are currently loaded in memory (see remarks).
(Inherited from ITripleStore.)
Top
Methods
  NameDescription
Public methodAdd(IGraph)
Adds a Graph into the Triple Store.
(Inherited from ITripleStore.)
Public methodAdd(IGraph, Boolean)
Adds a Graph into the Triple Store.
(Inherited from ITripleStore.)
Public methodAddFromUri(Uri)
Adds a Graph into the Triple Store by dereferencing the Graph Uri to get the RDF and then load the resulting Graph into the Triple Store.
(Inherited from ITripleStore.)
Public methodAddFromUri(Uri, Boolean)
Adds a Graph into the Triple Store by dereferencing the Graph Uri to get the RDF and then load the resulting Graph into the Triple Store.
(Inherited from ITripleStore.)
Public methodContains
Returns whether a given Triple is contained anywhere in the Query Triples.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodExecuteQuery(String) Obsolete.
Executes a SPARQL Query on the Triple Store.
Public methodExecuteQuery(SparqlQuery) Obsolete.
Executes a SPARQL Query on the Triple Store.
Public methodExecuteQuery(IRdfHandler, ISparqlResultsHandler, String) Obsolete.
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Public methodExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery) Obsolete.
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Public methodGetTriples(Uri)
Selects all Triples which have a Uri Node with the given Uri from all the Query Triples.
Public methodGetTriples(INode)
Selects all Triples which contain the given Node from all the Query Triples.
Public methodGetTriples(ListUri, Uri)
Selects all Triples which have a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriples(ListUri, INode)
Selects all Triples which contain the given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithObject(Uri)
Selects all Triples where the Object is a Uri Node with the given Uri from all the Query Triples.
Public methodGetTriplesWithObject(INode)
Selects all Triples where the Object is a given Node from all the Query Triples.
Public methodGetTriplesWithObject(ListUri, Uri)
Selects all Triples where the Object is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithObject(ListUri, INode)
Selects all Triples where the Object is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(Uri)
Selects all Triples where the Predicate is a Uri Node with the given Uri from all the Query Triples.
Public methodGetTriplesWithPredicate(INode)
Selects all Triples where the Predicate is a given Node from all the Query Triples.
Public methodGetTriplesWithPredicate(ListUri, Uri)
Selects all Triples where the Predicate is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(ListUri, INode)
Selects all Triples where the Predicate is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicateObject
Selects all the Triples with the given Predicate-Object pair from all the Query Triples.
Public methodGetTriplesWithSubject(Uri)
Selects all Triples where the Subject is a Uri Node with the given Uri from all the Query Triples.
Public methodGetTriplesWithSubject(INode)
Selects all Triples where the Subject is a given Node from all the Query Triples.
Public methodGetTriplesWithSubject(ListUri, Uri)
Selects all Triples where the Subject is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithSubject(ListUri, INode)
Selects all Triples where the Subject is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithSubjectObject
Selects all the Triples with the given Subject-Object pair from all the Query Triples.
Public methodGetTriplesWithSubjectPredicate
Selects all the Triples with the given Subject-Predicate pair from all the Query Triples.
Public methodHasGraph
Checks whether the Graph with the given Uri is in this Triple Store.
(Inherited from ITripleStore.)
Public methodRemove
Removes a Graph from the Triple Store.
(Inherited from ITripleStore.)
Top
Events
  NameDescription
Public eventGraphAdded
Event which is raised when a Graph is added
(Inherited from ITripleStore.)
Public eventGraphChanged
Event which is raised when a Graphs contents changes
(Inherited from ITripleStore.)
Public eventGraphCleared
Event which is raised when a Graph is cleared
(Inherited from ITripleStore.)
Public eventGraphMerged
Event which is raised when a Graph has a merge operation performed on it
(Inherited from ITripleStore.)
Public eventGraphRemoved
Event which is raised when a Graph is removed
(Inherited from ITripleStore.)
Top
Extension Methods
  NameDescription
Public Extension MethodLoadFromEmbeddedResource(String)Overloaded.
Loads an RDF dataset from an Embedded Resource into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromEmbeddedResource(String, IStoreReader)Overloaded.
Loads an RDF dataset from an Embedded Resource into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromFile(String)Overloaded.
Loads an RDF dataset from a file into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromFile(String, IStoreReader)Overloaded.
Loads an RDF dataset from a file into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromString(String)Overloaded.
Loads an RDF dataset from a String into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromString(String, IStoreReader)Overloaded.
Loads an RDF dataset from a String into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromUri(Uri)Overloaded.
Loads an RDF dataset from a URI into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromUri(Uri, IStoreReader)Overloaded.
Loads an RDF dataset from a URI into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodSaveToFile(String)Overloaded.
Saves a Triple Store to a file.
(Defined by TripleStoreExtensions.)
Public Extension MethodSaveToFile(String, IStoreWriter)Overloaded.
Saves a Triple Store to a file.
(Defined by TripleStoreExtensions.)
Top
Remarks

An in memory Triple Store will typically load most of the Graphs and consequently Triples contained within it into Memory as the in memory SPARQL implementation only operates over the part of the Triple Store loaded in memory. This being said there is no reason why an in memory store can't provide a Snapshot view of an underlying store to allow only the relevant parts of Store to be loaded and queried.

All the Selection Methods which do not specify a subset of Graphs on such a Triple Store should operate over the entire store.

See Also