Class InMemoryExtensions
Extension methods for working with a IGraph instance as an in-memory queryable SPARQL dataset.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public static class InMemoryExtensions
Methods
| Edit this page View SourceExecuteQuery(IGraph, string)
Executes a SPARQL Query on a Graph.
Declaration
public static object ExecuteQuery(this IGraph g, string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
string | sparqlQuery | SPARQL Query. |
Returns
Type | Description |
---|---|
object |
ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, string)
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
Declaration
public static void ExecuteQuery(this IGraph g, IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | SPARQL Results Handler. |
string | sparqlQuery | SPARQL Query. |
ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString)
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
Declaration
public static void ExecuteQuery(this IGraph g, IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlParameterizedString sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | SPARQL Results Handler. |
SparqlParameterizedString | sparqlQuery | SPARQL Query. |
ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlQuery)
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
Declaration
public static void ExecuteQuery(this IGraph g, IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | SPARQL Results Handler. |
SparqlQuery | query | SPARQL Query. |
ExecuteQuery(IGraph, SparqlParameterizedString)
Executes a SPARQL Query on a Graph.
Declaration
public static object ExecuteQuery(this IGraph g, SparqlParameterizedString sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
SparqlParameterizedString | sparqlQuery | SPARQL Query. |
Returns
Type | Description |
---|---|
object |
ExecuteQuery(IGraph, SparqlQuery)
Executes a SPARQL Query on a Graph.
Declaration
public static object ExecuteQuery(this IGraph g, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to query. |
SparqlQuery | query | SPARQL Query. |
Returns
Type | Description |
---|---|
object |