Interface ITripleStore
Interface for Triple Stores.
Inherited Members
System.IDisposable.Dispose()
Assembly: dotNetRDF.dll
Syntax
public interface ITripleStore : IDisposable
Properties
|
Improve this Doc
View Source
Graphs
Gets the Graph Collection of Graphs in this Triple Store.
Declaration
BaseGraphCollection Graphs { get; }
Property Value
|
Improve this Doc
View Source
IsEmpty
Gets whether a TripleStore is Empty.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[Uri]
Gets a Graph from the Triple Store;.
Declaration
IGraph this[Uri graphUri] { get; }
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Property Value
|
Improve this Doc
View Source
Triples
Gets all the Triples in the Triple Store which are currently loaded in memory (see remarks).
Declaration
IEnumerable<Triple> Triples { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
Methods
|
Improve this Doc
View Source
Add(IGraph)
Adds a Graph into the Triple Store.
Declaration
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to add. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Add(IGraph, Boolean)
Adds a Graph into the Triple Store.
Declaration
bool Add(IGraph g, bool mergeIfExists)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to add. |
System.Boolean |
mergeIfExists |
Controls whether the Graph should be merged with an existing Graph of the same Uri if it already exists in the Triple Store. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddFromUri(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.
Declaration
bool AddFromUri(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Uri of the Graph to be added. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddFromUri(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.
Declaration
bool AddFromUri(Uri graphUri, bool mergeIfExists)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Uri of the Graph to be added. |
System.Boolean |
mergeIfExists |
Controls whether the Graph should be merged with an existing Graph of the same Uri if it already exists in the Triple Store. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasGraph(Uri)
Checks whether the Graph with the given Uri is in this Triple Store.
Declaration
bool HasGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph Uri. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Remove(Uri)
Removes a Graph from the Triple Store.
Declaration
bool Remove(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph Uri of the Graph to remove. |
Returns
Type |
Description |
System.Boolean |
|
Events
|
Improve this Doc
View Source
GraphAdded
Event which is raised when a Graph is added
Declaration
event TripleStoreEventHandler GraphAdded
Event Type
|
Improve this Doc
View Source
GraphChanged
Event which is raised when a Graphs contents changes
Declaration
event TripleStoreEventHandler GraphChanged
Event Type
|
Improve this Doc
View Source
GraphCleared
Event which is raised when a Graph is cleared
Declaration
event TripleStoreEventHandler GraphCleared
Event Type
|
Improve this Doc
View Source
GraphMerged
Event which is raised when a Graph has a merge operation performed on it
Declaration
event TripleStoreEventHandler GraphMerged
Event Type
|
Improve this Doc
View Source
GraphRemoved
Event which is raised when a Graph is removed
Declaration
event TripleStoreEventHandler GraphRemoved
Event Type
Extension Methods