Show / Hide Table of Contents

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
object
BaseQuadDataset
BaseImmutableQuadDataset
BaseTransactionalQuadDataset
Implements
ISparqlDataset
ITripleIndex
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseQuadDataset : ISparqlDataset, ITripleIndex

Constructors

| Edit this page View Source

BaseQuadDataset()

Creates a new Quad Dataset.

Declaration
public BaseQuadDataset()
| Edit this page View Source

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.

| Edit this page View Source

BaseQuadDataset(Uri)

Creates a new Quad Dataset.

Declaration
public BaseQuadDataset(Uri defaultGraphUri)
Parameters
Type Name Description
Uri defaultGraphUri

URI of the Default Graph.

| Edit this page View Source

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 Source

ActiveGraphNames

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>
| Edit this page View Source

ActiveGraphUris

Gets the Active Graph URIs.

Declaration
[Obsolete("Replaced by ActiveGraphNames")]
public IEnumerable<Uri> ActiveGraphUris { get; }
Property Value
Type Description
IEnumerable<Uri>
| Edit this page View Source

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>
| Edit this page View Source

DefaultGraphUris

Gets the Default Graph URIs.

Declaration
[Obsolete("Replaced by GDefaultGraphNames")]
public IEnumerable<Uri> DefaultGraphUris { get; }
Property Value
Type Description
IEnumerable<Uri>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

Graphs

Gets the Graphs in the dataset.

Declaration
public virtual IEnumerable<IGraph> Graphs { get; }
Property Value
Type Description
IEnumerable<IGraph>
| Edit this page View Source

HasTriples

Gets whether the dataset has any triples.

Declaration
public virtual bool HasTriples { get; }
Property Value
Type Description
bool
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

QuotedTriples

Gets all the quoted triples in teh dataset.

Declaration
public IEnumerable<Triple> QuotedTriples { get; }
Property Value
Type Description
IEnumerable<Triple>
| Edit this page View Source

Triples

Gets all triples from the dataset.

Declaration
public IEnumerable<Triple> Triples { get; }
Property Value
Type Description
IEnumerable<Triple>
| Edit this page View Source

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 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
bool
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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 t is quoted in the graph, false otherwise.

| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

Discard()

Discards any changes to the dataset.

Declaration
public virtual void Discard()
| Edit this page View Source

Flush()

Flushes any changes to the dataset.

Declaration
public virtual void Flush()
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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.

| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page 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
IEnumerable<Triple>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page 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
IEnumerable<Triple>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page View Source

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>
| Edit this page 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
IEnumerable<Triple>
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page 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
Uri graphUri

Graph URI.

Returns
Type Description
bool
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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.

| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

ResetActiveGraph()

Resets the Active Graph.

Declaration
public void ResetActiveGraph()
| Edit this page View Source

ResetDefaultGraph()

Resets the Default Graph.

Declaration
public void ResetDefaultGraph()
| Edit this page View Source

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.

| Edit this page View Source

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
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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

Implements

ISparqlDataset
ITripleIndex

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseQuadDataset()
    • BaseQuadDataset(bool)
    • BaseQuadDataset(Uri)
    • BaseQuadDataset(IRefNode)
  • Properties
    • ActiveGraphNames
    • ActiveGraphUris
    • DefaultGraphNames
    • DefaultGraphUris
    • GraphNames
    • GraphUris
    • Graphs
    • HasTriples
    • this[Uri]
    • this[IRefNode]
    • QuotedTriples
    • Triples
    • UsesUnionDefaultGraph
  • Methods
    • AddGraph(IGraph)
    • AddQuad(Uri, Triple)
    • AddQuad(IRefNode, Triple)
    • ContainsQuad(IRefNode, Triple)
    • ContainsQuoted(IRefNode, Triple)
    • ContainsQuotedTriple(Triple)
    • ContainsTriple(Triple)
    • Discard()
    • Flush()
    • GetGraphInternal(IRefNode)
    • GetModifiableGraph(Uri)
    • GetModifiableGraph(IRefNode)
    • GetQuads(IRefNode)
    • GetQuadsWithObject(IRefNode, INode)
    • GetQuadsWithPredicate(IRefNode, INode)
    • GetQuadsWithPredicateObject(IRefNode, INode, INode)
    • GetQuadsWithSubject(IRefNode, INode)
    • GetQuadsWithSubjectObject(IRefNode, INode, INode)
    • GetQuadsWithSubjectPredicate(IRefNode, INode, INode)
    • GetQuoted(Uri)
    • GetQuoted(INode)
    • GetQuoted(IRefNode)
    • GetQuotedWithObject(Uri)
    • GetQuotedWithObject(INode)
    • GetQuotedWithObject(IRefNode, INode)
    • GetQuotedWithPredicate(Uri)
    • GetQuotedWithPredicate(INode)
    • GetQuotedWithPredicate(IRefNode, INode)
    • GetQuotedWithPredicateObject(INode, INode)
    • GetQuotedWithPredicateObject(IRefNode, INode, INode)
    • GetQuotedWithSubject(Uri)
    • GetQuotedWithSubject(INode)
    • GetQuotedWithSubject(IRefNode, INode)
    • GetQuotedWithSubjectObject(INode, INode)
    • GetQuotedWithSubjectObject(IRefNode, INode, INode)
    • GetQuotedWithSubjectPredicate(INode, INode)
    • GetQuotedWithSubjectPredicate(IRefNode, INode, INode)
    • GetTriples(Uri)
    • GetTriples(INode)
    • GetTriplesWithObject(Uri)
    • GetTriplesWithObject(INode)
    • GetTriplesWithPredicate(Uri)
    • GetTriplesWithPredicate(INode)
    • GetTriplesWithPredicateObject(INode, INode)
    • GetTriplesWithSubject(Uri)
    • GetTriplesWithSubject(INode)
    • GetTriplesWithSubjectObject(INode, INode)
    • GetTriplesWithSubjectPredicate(INode, INode)
    • HasGraph(Uri)
    • HasGraph(IRefNode)
    • HasGraphInternal(IRefNode)
    • IsDefaultGraph(Uri)
    • IsDefaultGraph(IRefNode)
    • RemoveGraph(Uri)
    • RemoveGraph(IRefNode)
    • RemoveQuad(Uri, Triple)
    • RemoveQuad(IRefNode, Triple)
    • ResetActiveGraph()
    • ResetDefaultGraph()
    • SetActiveGraph(IEnumerable<Uri>)
    • SetActiveGraph(IList<IRefNode>)
    • SetActiveGraph(Uri)
    • SetActiveGraph(IRefNode)
    • SetDefaultGraph(IEnumerable<Uri>)
    • SetDefaultGraph(IList<IRefNode>)
    • SetDefaultGraph(Uri)
    • SetDefaultGraph(IRefNode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX