Class QueryableGraph
Class for representing Graphs which can be directly queried using SPARQL.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class QueryableGraph : Graph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>, IEquatable<Graph>
Constructors
| Improve this Doc 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
| Improve this Doc 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 |
---|---|
System.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 |
---|---|
System.Object |
Implements
System.IDisposable
System.IEquatable<T>
System.IEquatable<T>