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
System.IDisposable.Dispose()
Assembly: dotNetRDF.dll
Syntax
public interface IInMemoryQueryableStore : ITripleStore, IDisposable
Methods
|
Improve this Doc
View Source
Contains(Triple)
Returns whether a given Triple is contained anywhere in the Query Triples.
Declaration
Parameters
Type |
Name |
Description |
Triple |
t |
Triple to check for existence of. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ExecuteQuery(String)
Executes a SPARQL Query on the Triple Store.
Declaration
[Obsolete("This method of making queries is often error prone due to misconceptions about what data is being queries and we recommend using an ISparqlQueryProcessor instead, see remarks for more discussion")]
object ExecuteQuery(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
SPARQL Query as an unparsed string. |
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, String)
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Declaration
[Obsolete("This method of making queries is often error prone due to misconceptions about what data is being queries and we recommend using an ISparqlQueryProcessor instead, see remarks for more discussion")]
void ExecuteQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string query)
Parameters
Type |
Name |
Description |
IRdfHandler |
rdfHandler |
RDF Handler. |
ISparqlResultsHandler |
resultsHandler |
Results Handler. |
System.String |
query |
SPARQL Query as an unparsed string. |
Remarks
|
Improve this Doc
View Source
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Declaration
[Obsolete("This method of making queries is often error prone due to misconceptions about what data is being queries and we recommend using an ISparqlQueryProcessor instead, see remarks for more discussion")]
void ExecuteQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Remarks
|
Improve this Doc
View Source
ExecuteQuery(SparqlQuery)
Executes a SPARQL Query on the Triple Store.
Declaration
[Obsolete("This method of making queries is often error prone due to misconceptions about what data is being queries and we recommend using an ISparqlQueryProcessor instead, see remarks for more discussion")]
object ExecuteQuery(SparqlQuery query)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriples(List<Uri> graphUris, Uri uri)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
System.Uri |
uri |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
GetTriples(List<Uri>, INode)
Selects all Triples which contain the given Node from a Subset of Graphs in the Triple Store.
Declaration
IEnumerable<Triple> GetTriples(List<Uri> graphUris, INode n)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
INode |
n |
Node. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Uri |
uri |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithObject(List<Uri> graphUris, Uri u)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithObject(List<Uri> graphUris, INode n)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
INode |
n |
Node. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithPredicate(List<Uri> graphUris, Uri u)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithPredicate(List<Uri> graphUris, INode n)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
INode |
n |
Node. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 pred, INode obj)
Parameters
Type |
Name |
Description |
INode |
pred |
Predicate. |
INode |
obj |
Object. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithSubject(List<Uri> graphUris, Uri u)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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
IEnumerable<Triple> GetTriplesWithSubject(List<Uri> graphUris, INode n)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Uri> |
graphUris |
List of the Graph URIs of Graphs you want to select over. |
INode |
n |
Node. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Uri |
u |
Uri. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
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 pred)
Parameters
Type |
Name |
Description |
INode |
subj |
Subject. |
INode |
pred |
Predicate. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
Extension Methods