Class QueryableGraph
Class for representing Graphs which can be directly queried using SPARQL.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class QueryableGraph : Graph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>, IEquatable<Graph>
Constructors
| Edit this page View SourceQueryableGraph(IRefNode)
Creates a new Queryable Graph.
The name to assign to the new graph.Declaration
public QueryableGraph(IRefNode graphName = null)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName |
Methods
| Edit this page View SourceExecuteQuery(string)
Executes a SPARQL Query on the Graph.
Declaration
public object ExecuteQuery(string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
string | sparqlQuery | SPARQL Query. |
Returns
Type | Description |
---|---|
object |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, string)
Executes a SPARQL Query on the Graph handling the results with the given handlers.
Declaration
public void ExecuteQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | SPARQL Results Handler. |
string | sparqlQuery | SPARQL Query. |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
Executes a SPARQL Query on the Graph handling the results with the given handlers.
Declaration
public void ExecuteQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | SPARQL Results Handler. |
SparqlQuery | query | SPARQL Query. |
ExecuteQuery(SparqlQuery)
Executes a SPARQL Query on the Graph.
Declaration
public object ExecuteQuery(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | SPARQL Query. |
Returns
Type | Description |
---|---|
object |