Class QueryableGraph
Class for representing Graphs which can be directly queried using SPARQL.
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public class QueryableGraph : Graph, IGraph, INodeFactory, IDisposable, IXmlSerializable, ISerializable
Constructors
| Improve this Doc View SourceQueryableGraph()
Creates a new Queryable Graph.
Declaration
public QueryableGraph()
Methods
| Improve this Doc View SourceExecuteQuery(String)
Executes a SPARQL Query on the Graph.
Declaration
public object ExecuteQuery(string sparqlQuery)
Parameters
Type | Name | Description |
---|---|---|
System.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. |
System.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.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable