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
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 SourceContains(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 |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |