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.
Inherited Members
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseQuadDataset : ISparqlDataset, ITripleIndex
Constructors
| Edit this page View SourceBaseQuadDataset()
Creates a new Quad Dataset.
Declaration
public BaseQuadDataset()
BaseQuadDataset(bool)
Creates a new Quad Dataset.
Declaration
public BaseQuadDataset(bool unionDefaultGraph)
Parameters
Type | Name | Description |
---|---|---|
bool | unionDefaultGraph | Whether to make the default graph the union of all graphs. |
BaseQuadDataset(Uri)
Creates a new Quad Dataset.
Declaration
public BaseQuadDataset(Uri defaultGraphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | defaultGraphUri | URI of the Default Graph. |
BaseQuadDataset(IRefNode)
Creates a new quad dataset.
Declaration
public BaseQuadDataset(IRefNode defaultGraphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | defaultGraphName | Name of the default graph. |
Properties
| Edit this page View SourceActiveGraphNames
Gets the enumeration of the names of the graphs that currently make up the active graph.
Declaration
public IEnumerable<IRefNode> ActiveGraphNames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRefNode> |
ActiveGraphUris
Gets the Active Graph URIs.
Declaration
[Obsolete("Replaced by ActiveGraphNames")]
public IEnumerable<Uri> ActiveGraphUris { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
DefaultGraphNames
Gets the enumeration of the names of the graphs that currently make up the default graph.
Declaration
public IEnumerable<IRefNode> DefaultGraphNames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRefNode> |
DefaultGraphUris
Gets the Default Graph URIs.
Declaration
[Obsolete("Replaced by GDefaultGraphNames")]
public IEnumerable<Uri> DefaultGraphUris { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
GraphNames
Gets an enumeration of the names of all graphs in the dataset.
Declaration
public abstract IEnumerable<IRefNode> GraphNames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRefNode> |
GraphUris
Gets the URIs of the graphs in the dataset.
Declaration
[Obsolete("Replaced by GraphNames")]
public abstract IEnumerable<Uri> GraphUris { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
Graphs
Gets the Graphs in the dataset.
Declaration
public virtual IEnumerable<IGraph> Graphs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IGraph> |
HasTriples
Gets whether the dataset has any triples.
Declaration
public virtual bool HasTriples { get; }
Property Value
Type | Description |
---|---|
bool |
this[Uri]
Gets the Graph with the given URI from the Dataset.
Declaration
[Obsolete("Replaced by this[IRefNode]")]
public virtual IGraph this[Uri graphUri] { get; }
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Property Value
Type | Description |
---|---|
IGraph |
Remarks
This property need only return a read-only view of the Graph, code which wishes to modify Graphs should use the GetModifiableGraph() method to guarantee a Graph they can modify and will be persisted to the underlying storage.
this[IRefNode]
Gets the graph with the given name from the dataset.
Declaration
public virtual IGraph this[IRefNode graphName] { get; }
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Property Value
Type | Description |
---|---|
IGraph |
Remarks
This property need only return a read-only view of the Graph, code which wishes to modify Graphs should use the GetModifiableGraph() method to guarantee a Graph they can modify and will be persisted to the underlying storage.
QuotedTriples
Gets all the quoted triples in teh dataset.
Declaration
public IEnumerable<Triple> QuotedTriples { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Triple> |
Triples
Gets all triples from the dataset.
Declaration
public IEnumerable<Triple> Triples { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Triple> |
UsesUnionDefaultGraph
Gets whether this dataset uses a union default graph.
Declaration
public bool UsesUnionDefaultGraph { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceAddGraph(IGraph)
Adds a Graph to the dataset.
Declaration
public virtual bool AddGraph(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
Returns
Type | Description |
---|---|
bool |
AddQuad(Uri, Triple)
Adds a Quad to the Dataset.
Declaration
[Obsolete("Replaced by AddQuad(IRefNode, Triple)")]
public abstract bool AddQuad(Uri graphUri, Triple t)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
AddQuad(IRefNode, Triple)
Adds a Quad to the Dataset.
Declaration
public abstract bool AddQuad(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
ContainsQuad(IRefNode, Triple)
Gets whether a triple is asserted in a specific graph of the dataset.
Declaration
public abstract bool ContainsQuad(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
ContainsQuoted(IRefNode, Triple)
Gets whether a triple is quoted in a specified graph of the dataset.
Declaration
public abstract bool ContainsQuoted(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool | True if |
ContainsQuotedTriple(Triple)
Gets whether the specified triple is quoted in any graph in the dataset.
Declaration
public bool ContainsQuotedTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
ContainsTriple(Triple)
Gets whether the specified triple is asserted in any graph in the dataset.
Declaration
public bool ContainsTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Discard()
Discards any changes to the dataset.
Declaration
public virtual void Discard()
Flush()
Flushes any changes to the dataset.
Declaration
public virtual void Flush()
GetGraphInternal(IRefNode)
Gets a Graph from the dataset.
Declaration
protected abstract IGraph GetGraphInternal(IRefNode graphUri)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
GetModifiableGraph(Uri)
Gets a modifiable graph from the dataset.
Declaration
[Obsolete("Replaced by GetModifiableGraph(IRefNode)")]
public virtual IGraph GetModifiableGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
GetModifiableGraph(IRefNode)
Gets the Graph with the given name from the Dataset.
Declaration
public virtual IGraph GetModifiableGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
IGraph |
Remarks
Graphs returned from this method must be modifiable and the Dataset must guarantee that when it is Flushed or Disposed of that any changes to the Graph are persisted.
Exceptions
Type | Condition |
---|---|
NotSupportedException | May be thrown if the Dataset is immutable i.e. Updates not supported. |
GetQuads(IRefNode)
Gets all the triples asserted in a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuads(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithObject(IRefNode, INode)
Gets all the Triples with a given object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithObject(IRefNode graphName, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph URI. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithPredicate(IRefNode, INode)
Gets all the asserted triples with a given predicate from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithPredicate(IRefNode graphName, INode pred)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph URI. |
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithPredicateObject(IRefNode, INode, INode)
Gets all the asserted triples with a given predicate and object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithPredicateObject(IRefNode graphName, INode pred, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph URI. |
INode | pred | Predicate. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithSubject(IRefNode, INode)
Gets all the Triples with a given subject from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithSubject(IRefNode graphName, INode subj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph URI. |
INode | subj | Subject. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithSubjectObject(IRefNode, INode, INode)
Gets all the asserted triples with a given subject and object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithSubjectObject(IRefNode graphName, INode subj, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | subj | Subject. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuadsWithSubjectPredicate(IRefNode, INode, INode)
Gets all the asserted triples with a given subject and predicate from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuadsWithSubjectPredicate(IRefNode graphName, INode subj, INode pred)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | subj | Subject. |
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuoted(Uri)
Selects all quoted triples which have a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetQuoted(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuoted(INode)
Selects all quoted triples which contain the given Node.
Declaration
public IEnumerable<Triple> GetQuoted(INode n)
Parameters
Type | Name | Description |
---|---|---|
INode | n | Node. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuoted(IRefNode)
Get all the triples quoted in a specified graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuoted(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithObject(Uri)
Selects all quoted triples where the Object is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetQuotedWithObject(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithObject(INode)
Selects all quoted triples where the Object is a given Node.
Declaration
public IEnumerable<Triple> GetQuotedWithObject(INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | obj |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithObject(IRefNode, INode)
Gets all the quoted triples with a given object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithObject(IRefNode graphName, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithPredicate(Uri)
Selects all quoted triples where the Predicate is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetQuotedWithPredicate(Uri u)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithPredicate(INode)
Selects all quoted triples where the Predicate is a given Node.
Declaration
public IEnumerable<Triple> GetQuotedWithPredicate(INode pred)
Parameters
Type | Name | Description |
---|---|---|
INode | pred |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithPredicate(IRefNode, INode)
Gets all the quoted triples with a given predicate from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithPredicate(IRefNode graphName, INode pred)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithPredicateObject(INode, INode)
Selects all quoted triples with the given Predicate and Object.
Declaration
public IEnumerable<Triple> GetQuotedWithPredicateObject(INode pred, INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | pred | Predicate. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithPredicateObject(IRefNode, INode, INode)
Gets all the quoted triples with a given predicate and object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithPredicateObject(IRefNode graphName, INode pred, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | pred | Predicate. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubject(Uri)
Selects all quoted triples where the Subject is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetQuotedWithSubject(Uri u)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubject(INode)
Selects all quoted triples where the Subject is a given Node.
Declaration
public IEnumerable<Triple> GetQuotedWithSubject(INode subj)
Parameters
Type | Name | Description |
---|---|---|
INode | subj |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubject(IRefNode, INode)
Gets all quoted triples with a given subject from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithSubject(IRefNode graphName, INode subj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | subj | Subject. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubjectObject(INode, INode)
Selects all quoted triples with the given Subject and Object.
Declaration
public IEnumerable<Triple> GetQuotedWithSubjectObject(INode subj, INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | subj | Subject. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubjectObject(IRefNode, INode, INode)
Gets all the quoted triples with a given subject and object from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithSubjectObject(IRefNode graphName, INode subj, INode obj)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | subj | Subject. |
INode | obj | Object. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubjectPredicate(INode, INode)
Selects all quoted triples with the given Subject and Predicate.
Declaration
public IEnumerable<Triple> GetQuotedWithSubjectPredicate(INode subj, INode pred)
Parameters
Type | Name | Description |
---|---|---|
INode | subj | Subject. |
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetQuotedWithSubjectPredicate(IRefNode, INode, INode)
Gets all the quoted triples with a given subject and predicate from a specific graph of the dataset.
Declaration
public abstract IEnumerable<Triple> GetQuotedWithSubjectPredicate(IRefNode graphName, INode subj, INode pred)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
INode | subj | Subject. |
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriples(Uri)
Selects all Triples which have a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetTriples(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriples(INode)
Selects all Triples which contain the given Node.
Declaration
public IEnumerable<Triple> GetTriples(INode n)
Parameters
Type | Name | Description |
---|---|---|
INode | n | Node. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriplesWithObject(Uri)
Selects all Triples where the Object is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetTriplesWithObject(Uri u)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
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 |
---|---|
IEnumerable<Triple> |
GetTriplesWithPredicate(Uri)
Selects all Triples where the Predicate is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetTriplesWithPredicate(Uri u)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriplesWithPredicate(INode)
Selects all Triples where the Predicate is a given Node.
Declaration
public IEnumerable<Triple> GetTriplesWithPredicate(INode pred)
Parameters
Type | Name | Description |
---|---|---|
INode | pred |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
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 |
---|---|
IEnumerable<Triple> |
GetTriplesWithSubject(Uri)
Selects all Triples where the Subject is a Uri Node with the given Uri.
Declaration
public IEnumerable<Triple> GetTriplesWithSubject(Uri u)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Uri. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriplesWithSubject(INode)
Gets all the asserted triples with a given subject.
Declaration
public IEnumerable<Triple> GetTriplesWithSubject(INode subj)
Parameters
Type | Name | Description |
---|---|---|
INode | subj | Subject. |
Returns
Type | Description |
---|---|
IEnumerable<Triple> |
GetTriplesWithSubjectObject(INode, INode)
Gets all the asserted riples 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 |
---|---|
IEnumerable<Triple> |
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 |
---|---|
IEnumerable<Triple> |
HasGraph(Uri)
Gets whether a Graph with the given URI is the Dataset.
Declaration
[Obsolete("Replaced by HasGraph(IRefNode)")]
public bool HasGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
HasGraph(IRefNode)
Gets whether a Graph with the given name is the Dataset.
Declaration
public bool HasGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
bool |
HasGraphInternal(IRefNode)
Determines whether a given Graph exists in the Dataset.
Declaration
protected abstract bool HasGraphInternal(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
bool |
IsDefaultGraph(Uri)
Gets whether the given URI represents the default graph of the dataset.
Declaration
protected bool IsDefaultGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
IsDefaultGraph(IRefNode)
Gets whether the given name represents the default graph of the dataset.
Declaration
protected bool IsDefaultGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |
Returns
Type | Description |
---|---|
bool |
RemoveGraph(Uri)
Removes a Graph from the Dataset.
Declaration
[Obsolete("Replaced by RemoveGraph(IRefNode)")]
public abstract bool RemoveGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
RemoveGraph(IRefNode)
Removes a Graph from the Dataset.
Declaration
public abstract bool RemoveGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
NotSupportedException | May be thrown if the Dataset is immutable i.e. Updates not supported. |
RemoveQuad(Uri, Triple)
Removes a Quad from the Dataset.
Declaration
[Obsolete("Replaced by RemoveQuad(IRefNode, Triple)")]
public abstract bool RemoveQuad(Uri graphUri, Triple t)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
RemoveQuad(IRefNode, Triple)
Removes a quad from the dataset.
Declaration
public abstract bool RemoveQuad(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple to remove. |
Returns
Type | Description |
---|---|
bool |
ResetActiveGraph()
Resets the Active Graph.
Declaration
public void ResetActiveGraph()
ResetDefaultGraph()
Resets the Default Graph.
Declaration
public void ResetDefaultGraph()
SetActiveGraph(IEnumerable<Uri>)
Sets the Active Graph.
Declaration
[Obsolete("Replaced by SetActiveGraph(IList<IRefNode>)")]
public void SetActiveGraph(IEnumerable<Uri> graphUris)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Uri> | graphUris | Graph URIs. |
SetActiveGraph(IList<IRefNode>)
Sets the active graph to be the union of the graphs with the given names.
Declaration
public void SetActiveGraph(IList<IRefNode> graphNames)
Parameters
Type | Name | Description |
---|---|---|
IList<IRefNode> | graphNames |
SetActiveGraph(Uri)
Sets the Active Graph.
Declaration
[Obsolete("Replaced by SetActiveGraph(IRefNode)")]
public void SetActiveGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
SetActiveGraph(IRefNode)
Sets the active graph to be the graph with the given name.
Declaration
public void SetActiveGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
SetDefaultGraph(IEnumerable<Uri>)
Sets the Default Graph.
Declaration
[Obsolete("Replaced by SetDefaultGraph(IList<IRefNode>)")]
public void SetDefaultGraph(IEnumerable<Uri> graphUris)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Uri> | graphUris | Graph URIs. |
SetDefaultGraph(IList<IRefNode>)
Sets the default graph to be the union of the graphs with the given names.
Declaration
public void SetDefaultGraph(IList<IRefNode> graphNames)
Parameters
Type | Name | Description |
---|---|---|
IList<IRefNode> | graphNames | Graph names. |
SetDefaultGraph(Uri)
Sets the Default Graph.
Declaration
[Obsolete("Replaced by SetDefaultGraph(IRefNode)")]
public void SetDefaultGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
SetDefaultGraph(IRefNode)
Sets the default graph to be the graph with the given name.
Declaration
public void SetDefaultGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |