Click or drag to resize

ITripleStore Interface

Interface for Triple Stores.

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

The ITripleStore type exposes the following members.

Properties
  NameDescription
Public propertyGraphs
Gets the Graph Collection of Graphs in this Triple Store.
Public propertyIsEmpty
Gets whether a TripleStore is Empty.
Public propertyItem
Gets a Graph from the Triple Store;.
Public propertyTriples
Gets all the Triples in the Triple Store which are currently loaded in memory (see remarks).
Top
Methods
  NameDescription
Public methodAdd(IGraph)
Adds a Graph into the Triple Store.
Public methodAdd(IGraph, Boolean)
Adds a Graph into the Triple Store.
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.
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.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodHasGraph
Checks whether the Graph with the given Uri is in this Triple Store.
Public methodRemove
Removes a Graph from the Triple Store.
Top
Events
  NameDescription
Public eventGraphAdded
Event which is raised when a Graph is added
Public eventGraphChanged
Event which is raised when a Graphs contents changes
Public eventGraphCleared
Event which is raised when a Graph is cleared
Public eventGraphMerged
Event which is raised when a Graph has a merge operation performed on it
Public eventGraphRemoved
Event which is raised when a Graph is removed
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
A Triple Store may be a representation of some storage backed actual store or just a temporary collection of Graphs created for working with. Note that an implementation is not required to provide a definitive view of a Triple Store and may only provide a limited/partial snapshot of the underlying store. Check the documentation for the various implementations to see what type of view of a Triple Store they actually provide.
See Also