Show / Hide Table of Contents

Class InMemoryQuadDataset

An in-memory dataset that operates in terms of quads, underlying storage is identical to a InMemoryDataset though this dataset should be more performant for queries that access named graphs frequently.
Inheritance
System.Object
BaseQuadDataset
BaseTransactionalQuadDataset
InMemoryQuadDataset
Implements
IThreadSafeDataset
ISparqlDataset
Inherited Members
BaseTransactionalQuadDataset.AddGraph(IGraph)
BaseTransactionalQuadDataset.RemoveGraph(Uri)
BaseTransactionalQuadDataset.Item[Uri]
BaseTransactionalQuadDataset.GetModifiableGraph(Uri)
BaseTransactionalQuadDataset.Flush()
BaseTransactionalQuadDataset.Discard()
BaseTransactionalQuadDataset.DiscardInternal()
BaseQuadDataset.SetActiveGraph(IEnumerable<Uri>)
BaseQuadDataset.SetActiveGraph(Uri)
BaseQuadDataset.SetDefaultGraph(Uri)
BaseQuadDataset.SetDefaultGraph(IEnumerable<Uri>)
BaseQuadDataset.ResetActiveGraph()
BaseQuadDataset.ResetDefaultGraph()
BaseQuadDataset.DefaultGraphUris
BaseQuadDataset.ActiveGraphUris
BaseQuadDataset.UsesUnionDefaultGraph
BaseQuadDataset.IsDefaultGraph(Uri)
BaseQuadDataset.HasGraph(Uri)
BaseQuadDataset.HasTriples
BaseQuadDataset.ContainsTriple(Triple)
BaseQuadDataset.Triples
BaseQuadDataset.GetTriplesWithSubject(INode)
BaseQuadDataset.GetTriplesWithPredicate(INode)
BaseQuadDataset.GetTriplesWithObject(INode)
BaseQuadDataset.GetTriplesWithSubjectPredicate(INode, INode)
BaseQuadDataset.GetTriplesWithSubjectObject(INode, INode)
BaseQuadDataset.GetTriplesWithPredicateObject(INode, INode)
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()
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRDF.dll
Syntax
public class InMemoryQuadDataset : BaseTransactionalQuadDataset, IThreadSafeDataset, ISparqlDataset

Constructors

| Improve this Doc View Source

InMemoryQuadDataset()

Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Declaration
public InMemoryQuadDataset()
| Improve this Doc View Source

InMemoryQuadDataset(Boolean)

Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Declaration
public InMemoryQuadDataset(bool unionDefaultGraph)
Parameters
Type Name Description
System.Boolean unionDefaultGraph Whether the Default Graph when no Active/Default Graph is explicitly set should be the union of all Graphs in the Dataset.
| Improve this Doc View Source

InMemoryQuadDataset(IGraph)

Creates a new in-memory dataset containing initially just the given graph and treating the given graph as the default graph of the dataset.
Declaration
public InMemoryQuadDataset(IGraph g)
Parameters
Type Name Description
IGraph g Graph.
| Improve this Doc View Source

InMemoryQuadDataset(IInMemoryQueryableStore)

Creates a new In-Memory dataset.
Declaration
public InMemoryQuadDataset(IInMemoryQueryableStore store)
Parameters
Type Name Description
IInMemoryQueryableStore store In-Memory queryable store.
| Improve this Doc View Source

InMemoryQuadDataset(IInMemoryQueryableStore, Boolean)

Creates a new In-Memory dataset.
Declaration
public InMemoryQuadDataset(IInMemoryQueryableStore store, bool unionDefaultGraph)
Parameters
Type Name Description
IInMemoryQueryableStore store In-Memory queryable store.
System.Boolean unionDefaultGraph Whether the Default Graph when no Active/Default Graph is explicitly set should be the union of all Graphs in the Dataset.
| Improve this Doc View Source

InMemoryQuadDataset(IInMemoryQueryableStore, Uri)

Creates a new In-Memory dataset.
Declaration
public InMemoryQuadDataset(IInMemoryQueryableStore store, Uri defaultGraphUri)
Parameters
Type Name Description
IInMemoryQueryableStore store In-Memory queryable store.
System.Uri defaultGraphUri Default Graph URI.

Properties

| Improve this Doc View Source

Graphs

Gets all the Graphs in the Dataset.
Declaration
public override IEnumerable<IGraph> Graphs { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IGraph>
Overrides
BaseQuadDataset.Graphs
| Improve this Doc View Source

GraphUris

Gets all the URIs of Graphs in the Dataset.
Declaration
public override IEnumerable<Uri> GraphUris { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Uri>
Overrides
BaseQuadDataset.GraphUris
| Improve this Doc View Source

Lock

Gets the Lock used to ensure MRSW concurrency on the dataset when available.
Declaration
public ReaderWriterLockSlim Lock { get; }
Property Value
Type Description
System.Threading.ReaderWriterLockSlim

Methods

| Improve this Doc View Source

AddGraphInternal(IGraph)

Adds a Graph to the Dataset merging it with any existing Graph with the same URI.
Declaration
protected override bool AddGraphInternal(IGraph g)
Parameters
Type Name Description
IGraph g Graph.
Returns
Type Description
System.Boolean
Overrides
BaseTransactionalQuadDataset.AddGraphInternal(IGraph)
| Improve this Doc View Source

AddQuad(Uri, Triple)

Adds a quad to the dataset.
Declaration
protected override bool AddQuad(Uri graphUri, Triple t)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseQuadDataset.AddQuad(Uri, Triple)
| Improve this Doc View Source

ContainsQuad(Uri, Triple)

Gets whether the dataset contains a given Quad.
Declaration
protected override bool ContainsQuad(Uri graphUri, Triple t)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseQuadDataset.ContainsQuad(Uri, Triple)
| Improve this Doc View Source

FlushInternal()

Flushes any changes to the store.
Declaration
protected override void FlushInternal()
Overrides
BaseTransactionalQuadDataset.FlushInternal()
| Improve this Doc View Source

GetGraphInternal(Uri)

Gets the Graph with the given URI from the Dataset.
Declaration
protected override IGraph GetGraphInternal(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
IGraph
Overrides
BaseQuadDataset.GetGraphInternal(Uri)
Remarks

For In-Memory datasets the Graph returned from this property is no different from the Graph returned by the GetModifiableGraphInternal(Uri) method.

| Improve this Doc View Source

GetModifiableGraphInternal(Uri)

Gets a Modifiable wrapper around a Graph in the Dataset.
Declaration
protected override ITransactionalGraph GetModifiableGraphInternal(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
ITransactionalGraph
Overrides
BaseTransactionalQuadDataset.GetModifiableGraphInternal(Uri)
| Improve this Doc View Source

GetQuads(Uri)

Gets all quads for a given graph.
Declaration
protected override IEnumerable<Triple> GetQuads(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseQuadDataset.GetQuads(Uri)
| Improve this Doc View Source

GetQuadsWithObject(Uri, INode)

Gets all Quads with a given object.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithObject(Uri, INode)
| Improve this Doc View Source

GetQuadsWithPredicate(Uri, INode)

Gets all Quads with a given predicate.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithPredicate(Uri, INode)
| Improve this Doc View Source

GetQuadsWithPredicateObject(Uri, INode, INode)

Gets all Quads with a given predicate and object.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithPredicateObject(Uri, INode, INode)
| Improve this Doc View Source

GetQuadsWithSubject(Uri, INode)

Gets all Quads with a given subject.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithSubject(Uri, INode)
| Improve this Doc View Source

GetQuadsWithSubjectObject(Uri, INode, INode)

Gets all Quads with a given subject and object.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithSubjectObject(Uri, INode, INode)
| Improve this Doc View Source

GetQuadsWithSubjectPredicate(Uri, INode, INode)

Gets all Quads with a given subject and predicate.
Declaration
protected override 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>
Overrides
BaseQuadDataset.GetQuadsWithSubjectPredicate(Uri, INode, INode)
| Improve this Doc View Source

HasGraphInternal(Uri)

Gets whether a Graph with the given URI is the Dataset.
Declaration
protected override bool HasGraphInternal(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Boolean
Overrides
BaseQuadDataset.HasGraphInternal(Uri)
| Improve this Doc View Source

RemoveGraphInternal(Uri)

Removes a Graph from the Dataset.
Declaration
protected override bool RemoveGraphInternal(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Boolean
Overrides
BaseTransactionalQuadDataset.RemoveGraphInternal(Uri)
| Improve this Doc View Source

RemoveQuad(Uri, Triple)

Removes a quad from the dataset.
Declaration
protected override bool RemoveQuad(Uri graphUri, Triple t)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseQuadDataset.RemoveQuad(Uri, Triple)

Implements

IThreadSafeDataset
ISparqlDataset

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • InMemoryQuadDataset()
    • InMemoryQuadDataset(Boolean)
    • InMemoryQuadDataset(IGraph)
    • InMemoryQuadDataset(IInMemoryQueryableStore)
    • InMemoryQuadDataset(IInMemoryQueryableStore, Boolean)
    • InMemoryQuadDataset(IInMemoryQueryableStore, Uri)
  • Properties
    • Graphs
    • GraphUris
    • Lock
  • Methods
    • AddGraphInternal(IGraph)
    • AddQuad(Uri, Triple)
    • ContainsQuad(Uri, Triple)
    • FlushInternal()
    • GetGraphInternal(Uri)
    • GetModifiableGraphInternal(Uri)
    • GetQuads(Uri)
    • GetQuadsWithObject(Uri, INode)
    • GetQuadsWithPredicate(Uri, INode)
    • GetQuadsWithPredicateObject(Uri, INode, INode)
    • GetQuadsWithSubject(Uri, INode)
    • GetQuadsWithSubjectObject(Uri, INode, INode)
    • GetQuadsWithSubjectPredicate(Uri, INode, INode)
    • HasGraphInternal(Uri)
    • RemoveGraphInternal(Uri)
    • RemoveQuad(Uri, Triple)
  • Implements
  • Extension Methods
Back to top Generated by DocFX