Show / Hide Table of Contents

Interface IInMemoryQueryableStore

Interface for Triple Stores which can be queried in memory using method calls or the SPARQL implementation contained in this library.

Inherited Members
ITripleStore.IsEmpty
ITripleStore.Graphs
ITripleStore.Triples
ITripleStore.Quads
ITripleStore.UriFactory
ITripleStore.Assert(Quad)
ITripleStore.Retract(Quad)
ITripleStore.Add(IRefNode)
ITripleStore.Add(IGraph)
ITripleStore.Add(IGraph, bool)
ITripleStore.AddFromUri(Uri)
ITripleStore.AddFromUri(Uri, bool)
ITripleStore.AddFromUri(Uri, bool, Loader)
ITripleStore.Remove(Uri)
ITripleStore.Remove(IRefNode)
ITripleStore.HasGraph(Uri)
ITripleStore.HasGraph(IRefNode)
ITripleStore.this[Uri]
ITripleStore.this[IRefNode]
ITripleStore.GetQuads(INode, INode, INode, IRefNode, bool)
ITripleStore.GraphAdded
ITripleStore.GraphRemoved
ITripleStore.GraphChanged
ITripleStore.GraphCleared
ITripleStore.GraphMerged
IDisposable.Dispose()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public interface IInMemoryQueryableStore : ITripleStore, IDisposable
Remarks

An in memory Triple Store will typically load most of the Graphs and consequently Triples contained within it into Memory as the in memory SPARQL implementation only operates over the part of the Triple Store loaded in memory. This being said there is no reason why an in memory store can't provide a Snapshot view of an underlying store to allow only the relevant parts of Store to be loaded and queried.

All the Selection Methods which do not specify a subset of Graphs on such a Triple Store should operate over the entire store.

Methods

| Edit this page View Source

Contains(Triple)

Returns whether a given Triple is contained anywhere in the Query Triples.

Declaration
bool Contains(Triple t)
Parameters
Type Name Description
Triple t

Triple to check for existence of.

Returns
Type Description
bool
| Edit this page View Source

GetTriples(List<Uri>, Uri)

Selects all Triples which have a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriples(List<IRefNode>, Uri)")]
IEnumerable<Triple> GetTriples(List<Uri> graphUris, Uri uri)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

Uri uri

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(List<Uri>, INode)

Selects all Triples which contain the given Node from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriples(List<IRefNode>, INode)")]
IEnumerable<Triple> GetTriples(List<Uri> graphUris, INode n)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(List<IRefNode>, Uri)

Selects all Triples which have a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriples(List<IRefNode> graphNames, Uri uri)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

Uri uri

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(List<IRefNode>, INode)

Selects all Triples which contain the given Node from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriples(List<IRefNode> graphNames, INode n)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(Uri)

Selects all Triples which have a Uri Node with the given Uri from all the Query Triples.

Declaration
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 from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriples(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(List<Uri>, Uri)

Selects all Triples where the Object is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithObject(List<IRefNode>, Uri)")]
IEnumerable<Triple> GetTriplesWithObject(List<Uri> graphUris, Uri u)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(List<Uri>, INode)

Selects all Triples where the Object is a given Node from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithObject(List<IRefNode>, INode)")]
IEnumerable<Triple> GetTriplesWithObject(List<Uri> graphUris, INode n)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(List<IRefNode>, Uri)

Selects all Triples where the Object is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithObject(List<IRefNode> graphNames, Uri u)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(List<IRefNode>, INode)

Selects all Triples where the Object is a given Node from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithObject(List<IRefNode> graphNames, INode n)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

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 from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithObject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(INode)

Selects all Triples where the Object is a given Node from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithObject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(List<Uri>, Uri)

Selects all Triples where the Predicate is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithPredicate(List<IRefNode>, Uri)")]
IEnumerable<Triple> GetTriplesWithPredicate(List<Uri> graphUris, Uri u)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(List<Uri>, INode)

Selects all Triples where the Predicate is a given Node from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithPredicate(List<IRefNode>, INode)")]
IEnumerable<Triple> GetTriplesWithPredicate(List<Uri> graphUris, INode n)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(List<IRefNode>, Uri)

Selects all Triples where the Predicate is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithPredicate(List<IRefNode> graphNames, Uri u)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(List<IRefNode>, INode)

Selects all Triples where the Predicate is a given Node from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithPredicate(List<IRefNode> graphNames, INode n)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

INode n

Node.

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 from all the Query Triples.

Declaration
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 from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithPredicate(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicateObject(INode, INode)

Selects all the Triples with the given Predicate-Object pair from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithPredicateObject(INode predicate, INode obj)
Parameters
Type Name Description
INode predicate

Predicate.

INode obj

Object.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(List<Uri>, Uri)

Selects all Triples where the Subject is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithSubject(List<IRefNode>, Uri)")]
IEnumerable<Triple> GetTriplesWithSubject(List<Uri> graphUris, Uri u)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(List<Uri>, INode)

Selects all Triples where the Subject is a given Node from a Subset of Graphs in the Triple Store.

Declaration
[Obsolete("Replaced by GetTriplesWithSubject(List<IRefNode>, INode)")]
IEnumerable<Triple> GetTriplesWithSubject(List<Uri> graphUris, INode n)
Parameters
Type Name Description
List<Uri> graphUris

List of the Graph URIs of Graphs you want to select over.

INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(List<IRefNode>, Uri)

Selects all Triples where the Subject is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithSubject(List<IRefNode> graphNames, Uri u)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(List<IRefNode>, INode)

Selects all Triples where the Subject is a given Node from a Subset of Graphs in the Triple Store.

Declaration
IEnumerable<Triple> GetTriplesWithSubject(List<IRefNode> graphNames, INode n)
Parameters
Type Name Description
List<IRefNode> graphNames

List of the names of Graphs you want to select over.

INode n

Node.

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 from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithSubject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(INode)

Selects all Triples where the Subject is a given Node from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithSubject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubjectObject(INode, INode)

Selects all the Triples with the given Subject-Object pair from all the Query Triples.

Declaration
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)

Selects all the Triples with the given Subject-Predicate pair from all the Query Triples.

Declaration
IEnumerable<Triple> GetTriplesWithSubjectPredicate(INode subj, INode predicate)
Parameters
Type Name Description
INode subj

Subject.

INode predicate

Predicate.

Returns
Type Description
IEnumerable<Triple>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
TripleStoreExtensions.LoadFromEmbeddedResource(ITripleStore, string)
TripleStoreExtensions.LoadFromEmbeddedResource(ITripleStore, string, IStoreReader)
TripleStoreExtensions.LoadFromFile(ITripleStore, string)
TripleStoreExtensions.LoadFromFile(ITripleStore, string, IStoreReader)
TripleStoreExtensions.LoadFromString(ITripleStore, string)
TripleStoreExtensions.LoadFromString(ITripleStore, string, IStoreReader)
TripleStoreExtensions.LoadFromUri(ITripleStore, Uri)
TripleStoreExtensions.LoadFromUri(ITripleStore, Uri, IStoreReader)
TripleStoreExtensions.LoadFromUri(ITripleStore, Uri, IStoreReader, Loader)
TripleStoreExtensions.SaveToFile(ITripleStore, string)
TripleStoreExtensions.SaveToFile(ITripleStore, string, IStoreWriter)
  • Edit this page
  • View Source
In this article
  • Methods
    • Contains(Triple)
    • GetTriples(List<Uri>, Uri)
    • GetTriples(List<Uri>, INode)
    • GetTriples(List<IRefNode>, Uri)
    • GetTriples(List<IRefNode>, INode)
    • GetTriples(Uri)
    • GetTriples(INode)
    • GetTriplesWithObject(List<Uri>, Uri)
    • GetTriplesWithObject(List<Uri>, INode)
    • GetTriplesWithObject(List<IRefNode>, Uri)
    • GetTriplesWithObject(List<IRefNode>, INode)
    • GetTriplesWithObject(Uri)
    • GetTriplesWithObject(INode)
    • GetTriplesWithPredicate(List<Uri>, Uri)
    • GetTriplesWithPredicate(List<Uri>, INode)
    • GetTriplesWithPredicate(List<IRefNode>, Uri)
    • GetTriplesWithPredicate(List<IRefNode>, INode)
    • GetTriplesWithPredicate(Uri)
    • GetTriplesWithPredicate(INode)
    • GetTriplesWithPredicateObject(INode, INode)
    • GetTriplesWithSubject(List<Uri>, Uri)
    • GetTriplesWithSubject(List<Uri>, INode)
    • GetTriplesWithSubject(List<IRefNode>, Uri)
    • GetTriplesWithSubject(List<IRefNode>, INode)
    • GetTriplesWithSubject(Uri)
    • GetTriplesWithSubject(INode)
    • GetTriplesWithSubjectObject(INode, INode)
    • GetTriplesWithSubjectPredicate(INode, INode)
  • Extension Methods
Back to top Generated by DocFX