Class InMemoryDataset
Inheritance
System.Object
InMemoryDataset
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: dotNetRdf.dll
Syntax
public class InMemoryDataset : BaseTransactionalDataset, IThreadSafeDataset, ISparqlDataset, ITripleIndex
Constructors
|
Improve this Doc
View Source
InMemoryDataset()
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Declaration
|
Improve this Doc
View Source
InMemoryDataset(bool)
Creates a new in-memory dataset using the default in-memory TripleStore as the underlying storage.
Declaration
public InMemoryDataset(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
InMemoryDataset(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 InMemoryDataset(IGraph g)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph.
|
|
Improve this Doc
View Source
InMemoryDataset(IInMemoryQueryableStore, bool)
Creates a new In-Memory dataset.
Declaration
public InMemoryDataset(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
InMemoryDataset(IInMemoryQueryableStore, IRefNode)
Creates a new In-Memory dataset.
Declaration
public InMemoryDataset(IInMemoryQueryableStore store, IRefNode defaultGraphName)
Parameters
|
Improve this Doc
View Source
InMemoryDataset(IInMemoryQueryableStore)
Creates a new In-Memory dataset.
Declaration
public InMemoryDataset(IInMemoryQueryableStore store)
Parameters
Properties
|
Improve this Doc
View Source
GraphNames
Gets an enumeration of the names of all graphs in the dataset.
Declaration
public override IEnumerable<IRefNode> GraphNames { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T><IRefNode> |
|
Overrides
|
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<T><IGraph> |
|
Overrides
|
Improve this Doc
View Source
GraphUris
Gets all the URIs of Graphs in the Dataset.
Declaration
[Obsolete("Replaced by GraphNames")]
public override IEnumerable<Uri> GraphUris { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T><System.Uri> |
|
Overrides
|
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
|
Improve this Doc
View Source
ContainsQuotedTripleInternal(Triple)
Declaration
protected override bool ContainsQuotedTripleInternal(Triple t)
Parameters
Type |
Name |
Description |
Triple |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
ContainsTripleInternal(Triple)
Gets whether the Dataset contains a specific Triple.
Declaration
protected override bool ContainsTripleInternal(Triple t)
Parameters
Type |
Name |
Description |
Triple |
t |
Triple.
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
FlushInternal()
If there have been changes made to the Dataset and the underlying in-memory store is a ITransactionalStore ensures the underlying store is notified to flush those changes.
Declaration
protected override void FlushInternal()
Overrides
|
Improve this Doc
View Source
GetAllQuotedTriples()
Declaration
protected override IEnumerable<Triple> GetAllQuotedTriples()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetAllTriples()
Gets all the Triples in the underlying in-memory store.
Declaration
protected override IEnumerable<Triple> GetAllTriples()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetGraphInternal(IRefNode)
Gets the Graph with the given URI from the Dataset.
Declaration
protected override IGraph GetGraphInternal(IRefNode graphName)
Parameters
Type |
Name |
Description |
IRefNode |
graphName |
Graph URI.
|
Returns
Overrides
|
Improve this Doc
View Source
GetModifiableGraphInternal(IRefNode)
Gets a Modifiable wrapper around a Graph in the Dataset.
Declaration
protected override ITransactionalGraph GetModifiableGraphInternal(IRefNode graphName)
Parameters
Type |
Name |
Description |
IRefNode |
graphName |
Graph URI.
|
Returns
Overrides
|
Improve this Doc
View Source
GetQuotedWithObjectInternal(INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithObjectInternal(INode obj)
Parameters
Type |
Name |
Description |
INode |
obj |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetQuotedWithPredicateInternal(INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithPredicateInternal(INode predicate)
Parameters
Type |
Name |
Description |
INode |
predicate |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetQuotedWithPredicateObjectInternal(INode, INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithPredicateObjectInternal(INode pred, INode obj)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetQuotedWithSubjectInternal(INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithSubjectInternal(INode subj)
Parameters
Type |
Name |
Description |
INode |
subj |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetQuotedWithSubjectObjectInternal(INode, INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithSubjectObjectInternal(INode subj, INode obj)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetQuotedWithSubjectPredicateInternal(INode, INode)
Declaration
protected override IEnumerable<Triple> GetQuotedWithSubjectPredicateInternal(INode subj, INode predicate)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithObjectInternal(INode)
Gets all the Triples in the Dataset with the given Object.
Declaration
protected override IEnumerable<Triple> GetTriplesWithObjectInternal(INode obj)
Parameters
Type |
Name |
Description |
INode |
obj |
Object.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithPredicateInternal(INode)
Gets all the Triples in the Dataset with the given Predicate.
Declaration
protected override IEnumerable<Triple> GetTriplesWithPredicateInternal(INode predicate)
Parameters
Type |
Name |
Description |
INode |
predicate |
Predicate.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithPredicateObjectInternal(INode, INode)
Gets all the Triples in the Dataset with the given Predicate and Object.
Declaration
protected override IEnumerable<Triple> GetTriplesWithPredicateObjectInternal(INode pred, INode obj)
Parameters
Type |
Name |
Description |
INode |
pred |
Predicate.
|
INode |
obj |
Object.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithSubjectInternal(INode)
Gets all the Triples in the Dataset with the given Subject.
Declaration
protected override IEnumerable<Triple> GetTriplesWithSubjectInternal(INode subj)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithSubjectObjectInternal(INode, INode)
Gets all the Triples in the Dataset with the given Subject and Object.
Declaration
protected override IEnumerable<Triple> GetTriplesWithSubjectObjectInternal(INode subj, INode obj)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject.
|
INode |
obj |
Object.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
GetTriplesWithSubjectPredicateInternal(INode, INode)
Gets all the Triples in the Dataset with the given Subject and Predicate.
Declaration
protected override IEnumerable<Triple> GetTriplesWithSubjectPredicateInternal(INode subj, INode predicate)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject.
|
INode |
predicate |
Predicate.
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T><Triple> |
|
Overrides
|
Improve this Doc
View Source
HasGraphInternal(IRefNode)
Gets whether a Graph with the given URI is the Dataset.
Declaration
protected override bool HasGraphInternal(IRefNode graphName)
Parameters
Type |
Name |
Description |
IRefNode |
graphName |
Graph name.
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
RemoveGraphInternal(IRefNode)
Removes a Graph from the Dataset.
Declaration
protected override bool RemoveGraphInternal(IRefNode graphName)
Parameters
Type |
Name |
Description |
IRefNode |
graphName |
Graph name.
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements
Extension Methods