Class BaseQuadDataset
Abstract Base class of dataset designed around out of memory datasets where you rarely wish to load data into memory but simply wish to know which graph to look in for data.
Inheritance
System.Object
BaseQuadDataset
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseQuadDataset : ISparqlDataset
Constructors
|
Improve this Doc
View Source
BaseQuadDataset()
Creates a new Quad Dataset.
Declaration
|
Improve this Doc
View Source
BaseQuadDataset(Boolean)
Creates a new Quad Dataset.
Declaration
public BaseQuadDataset(bool unionDefaultGraph)
Parameters
Type |
Name |
Description |
System.Boolean |
unionDefaultGraph |
Whether to make the default graph the union of all graphs. |
|
Improve this Doc
View Source
BaseQuadDataset(Uri)
Creates a new Quad Dataset.
Declaration
public BaseQuadDataset(Uri defaultGraphUri)
Parameters
Type |
Name |
Description |
System.Uri |
defaultGraphUri |
URI of the Default Graph. |
Properties
|
Improve this Doc
View Source
ActiveGraphUris
Gets the Active Graph URIs.
Declaration
public IEnumerable<Uri> ActiveGraphUris { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
|
|
Improve this Doc
View Source
DefaultGraphUris
Gets the Default Graph URIs.
Declaration
public IEnumerable<Uri> DefaultGraphUris { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
|
|
Improve this Doc
View Source
Graphs
Gets the Graphs in the dataset.
Declaration
public virtual IEnumerable<IGraph> Graphs { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<IGraph> |
|
|
Improve this Doc
View Source
GraphUris
Gets the URIs of the graphs in the dataset.
Declaration
public abstract IEnumerable<Uri> GraphUris { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
|
|
Improve this Doc
View Source
HasTriples
Gets whether the dataset has any triples.
Declaration
public virtual bool HasTriples { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[Uri]
Gets the Graph with the given URI from the Dataset.
Declaration
public virtual IGraph this[Uri graphUri] { get; }
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Property Value
|
Improve this Doc
View Source
Triples
Gets all triples from the dataset.
Declaration
public IEnumerable<Triple> Triples { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
UsesUnionDefaultGraph
Gets whether this dataset uses a union default graph.
Declaration
public bool UsesUnionDefaultGraph { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AddGraph(IGraph)
Adds a Graph to the dataset.
Declaration
public virtual bool AddGraph(IGraph g)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddQuad(Uri, Triple)
Adds a Quad to the Dataset.
Declaration
protected abstract bool AddQuad(Uri graphUri, Triple t)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Triple |
t |
Triple. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsQuad(Uri, Triple)
Gets whether a Triple exists in a specific Graph of the dataset.
Declaration
protected abstract bool ContainsQuad(Uri graphUri, Triple t)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Triple |
t |
Triple. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsTriple(Triple)
Gets whether the dataset contains a triple.
Declaration
public bool ContainsTriple(Triple t)
Parameters
Type |
Name |
Description |
Triple |
t |
Triple. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Discard()
Discards any changes to the dataset.
Declaration
public virtual void Discard()
|
Improve this Doc
View Source
Flush()
Flushes any changes to the dataset.
Declaration
public virtual void Flush()
|
Improve this Doc
View Source
GetGraphInternal(Uri)
Gets a Graph from the dataset.
Declaration
protected abstract IGraph GetGraphInternal(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
|
Improve this Doc
View Source
GetModifiableGraph(Uri)
Gets a modifiable graph from the dataset.
Declaration
public virtual IGraph GetModifiableGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
|
Improve this Doc
View Source
GetQuads(Uri)
Gets all the Triples for a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuads(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithObject(Uri, INode)
Gets all the Triples with a given object from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithObject(Uri graphUri, INode obj)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithPredicate(Uri, INode)
Gets all the Triples with a given predicate from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithPredicate(Uri graphUri, INode pred)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
pred |
Predicate. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithPredicateObject(Uri, INode, INode)
Gets all the Triples with a given predicate and object from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithPredicateObject(Uri graphUri, INode pred, INode obj)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
pred |
Predicate. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithSubject(Uri, INode)
Gets all the Triples with a given subject from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithSubject(Uri graphUri, INode subj)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
subj |
Subject. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithSubjectObject(Uri, INode, INode)
Gets all the Triples with a given subject and object from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithSubjectObject(Uri graphUri, INode subj, INode obj)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
subj |
Subject. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetQuadsWithSubjectPredicate(Uri, INode, INode)
Gets all the Triples with a given subject and predicate from a specific graph of the dataset.
Declaration
protected abstract IEnumerable<Triple> GetQuadsWithSubjectPredicate(Uri graphUri, INode subj, INode pred)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
INode |
subj |
Subject. |
INode |
pred |
Predicate. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithObject(INode)
Gets all the Triples with a given object.
Declaration
public IEnumerable<Triple> GetTriplesWithObject(INode obj)
Parameters
Type |
Name |
Description |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithPredicate(INode)
Gets all the Triples with a given predicate.
Declaration
public IEnumerable<Triple> GetTriplesWithPredicate(INode pred)
Parameters
Type |
Name |
Description |
INode |
pred |
Predicate. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithPredicateObject(INode, INode)
Gets all the Triples with a given predicate and object.
Declaration
public IEnumerable<Triple> GetTriplesWithPredicateObject(INode pred, INode obj)
Parameters
Type |
Name |
Description |
INode |
pred |
Predicate. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithSubject(INode)
Gets all the Triples with a given subject.
Declaration
public IEnumerable<Triple> GetTriplesWithSubject(INode subj)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithSubjectObject(INode, INode)
Gets all the Triples with a given subject and object.
Declaration
public IEnumerable<Triple> GetTriplesWithSubjectObject(INode subj, INode obj)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriplesWithSubjectPredicate(INode, INode)
Gets all the Triples with a given subject and predicate.
Declaration
public IEnumerable<Triple> GetTriplesWithSubjectPredicate(INode subj, INode pred)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject. |
INode |
pred |
Predicate. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
HasGraph(Uri)
Gets whether a Graph with the given URI is the Dataset.
Declaration
public bool HasGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasGraphInternal(Uri)
Determines whether a given Graph exists in the Dataset.
Declaration
protected abstract bool HasGraphInternal(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsDefaultGraph(Uri)
Gets whether the given URI represents the default graph of the dataset.
Declaration
protected bool IsDefaultGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveGraph(Uri)
Removes a Graph from the Dataset.
Declaration
public abstract bool RemoveGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveQuad(Uri, Triple)
Removes a Quad from the Dataset.
Declaration
protected abstract bool RemoveQuad(Uri graphUri, Triple t)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Triple |
t |
Triple. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ResetActiveGraph()
Resets the Active Graph.
Declaration
public void ResetActiveGraph()
|
Improve this Doc
View Source
ResetDefaultGraph()
Resets the Default Graph.
Declaration
public void ResetDefaultGraph()
|
Improve this Doc
View Source
SetActiveGraph(IEnumerable<Uri>)
Sets the Active Graph.
Declaration
public void SetActiveGraph(IEnumerable<Uri> graphUris)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
graphUris |
Graph URIs. |
|
Improve this Doc
View Source
SetActiveGraph(Uri)
Sets the Active Graph.
Declaration
public void SetActiveGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
|
Improve this Doc
View Source
SetDefaultGraph(IEnumerable<Uri>)
Sets the Default Graph.
Declaration
public void SetDefaultGraph(IEnumerable<Uri> graphUris)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Uri> |
graphUris |
Graph URIs. |
|
Improve this Doc
View Source
SetDefaultGraph(Uri)
Sets the Default Graph.
Declaration
public void SetDefaultGraph(Uri graphUri)
Parameters
Type |
Name |
Description |
System.Uri |
graphUri |
Graph URI. |
Implements
Extension Methods