Show / Hide Table of Contents

Class QueryService

Represents the SPARQL Query Service provided by a Pellet Server knowledge base.
Inheritance
System.Object
PelletService
QueryService
Inherited Members
PelletService.Name
PelletService.Endpoint
PelletService.MimeTypes
System.Object.Equals(System.Object)
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.Query.Inference.Pellet.Services
Assembly: dotNetRDF.dll
Syntax
public class QueryService : PelletService

Methods

| Improve this Doc View Source

Query(String)

Makes a SPARQL Query against the Knowledge Base.
Declaration
public object Query(string sparqlQuery)
Parameters
Type Name Description
System.String sparqlQuery SPARQL Query.
Returns
Type Description
System.Object
| Improve this Doc View Source

Query(String, GraphCallback, SparqlResultsCallback, Object)

Makes a SPARQL Query against the Knowledge Base.
Declaration
public void Query(string sparqlQuery, GraphCallback graphCallback, SparqlResultsCallback resultsCallback, object state)
Parameters
Type Name Description
System.String sparqlQuery SPARQL Query.
GraphCallback graphCallback Callback to invoke for queries that return a Graph.
SparqlResultsCallback resultsCallback Callback to invoke for queries that return a Result Set.
System.Object state State to pass to whichever callback function is invoked.
Remarks
If the operation succeeds the callback will be invoked normally, if there is an error the callback will be invoked with a instance of AsyncError passed as the state which provides access to the error message and the original state passed in.
| Improve this Doc View Source

Query(IRdfHandler, ISparqlResultsHandler, String)

Processes a SPARQL Query against the Knowledge Base passing the results to the RDF or Results handler as appropriate.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery)
Parameters
Type Name Description
IRdfHandler rdfHandler RDF Handler.
ISparqlResultsHandler resultsHandler Results Handler.
System.String sparqlQuery SPARQL Query.
| Improve this Doc View Source

Query(IRdfHandler, ISparqlResultsHandler, String, QueryCallback, Object)

Processes a SPARQL Query against the Knowledge Base passing the results to the RDF or Results handler as appropriate.
Declaration
public void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, QueryCallback callback, object state)
Parameters
Type Name Description
IRdfHandler rdfHandler RDF Handler.
ISparqlResultsHandler resultsHandler Results Handler.
System.String sparqlQuery SPARQL Query.
QueryCallback callback Callback to invoke once handling of results has completed.
System.Object state State to pass to the callback.
Remarks
If the operation succeeds the callback will be invoked normally, if there is an error the callback will be invoked with a instance of AsyncError passed as the state which provides access to the error message and the original state passed in.

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • Query(String)
    • Query(String, GraphCallback, SparqlResultsCallback, Object)
    • Query(IRdfHandler, ISparqlResultsHandler, String)
    • Query(IRdfHandler, ISparqlResultsHandler, String, QueryCallback, Object)
  • Extension Methods
Back to top Generated by DocFX