Show / Hide Table of Contents

Class QueryHandler

HTTP Handler for adding SPARQL Query endpoints to ASP.Net applications
Inheritance
System.Object
BaseSparqlQueryHandler
QueryHandler
Inherited Members
BaseSparqlQueryHandler._config
BaseSparqlQueryHandler.IsReusable
BaseSparqlQueryHandler.ProcessRequest(HttpContext)
BaseSparqlQueryHandler.ProcessQuery(SparqlQuery)
BaseSparqlQueryHandler.ProcessResults(HttpContext, Object)
BaseSparqlQueryHandler.HandleErrors(HttpContext, String, String, Exception)
BaseSparqlQueryHandler.HandleErrors(HttpContext, String, String, Exception, Int32)
BaseSparqlQueryHandler.ShowQueryForm(HttpContext)
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public class QueryHandler : BaseSparqlQueryHandler
Remarks

Used to create a Query endpoint at a specific fixed URL

This Handler is configured using the new Configuration API introduced in the 0.3.0 release. This requires just one setting to be defined in the <appSettings> section of your Web.config file which points to a Configuration Graph like so:

<add key="dotNetRDFConfig" value="~/App_Data/config.ttl" />
The Configuration Graph must then contain Triples like the following to specify a Query Endpoint:
<dotnetrdf:/folder/query> a dnr:HttpHandler ;
                                dnr:type "VDS.RDF.Web.QueryHandler" ;
                                dnr:queryProcessor _:proc .

_:proc a dnr:SparqlQueryProcessor ;
       dnr:type "VDS.RDF.Query.LeviathanQueryProcessor" ;
       dnr:usingStore _:store .

_:store a dnr:TripleStore ;
        dnr:type "VDS.RDF.TripleStore" .

Methods

| Improve this Doc View Source

LoadConfig(HttpContext)

Loads the Handler Configuration
Declaration
protected override BaseQueryHandlerConfiguration LoadConfig(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
Returns
Type Description
BaseQueryHandlerConfiguration
Overrides
BaseSparqlQueryHandler.LoadConfig(HttpContext)
| Improve this Doc View Source

UpdateConfig(HttpContext)

Updates the Handler Configuration
Declaration
protected override void UpdateConfig(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
Overrides
BaseSparqlQueryHandler.UpdateConfig(HttpContext)

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • LoadConfig(HttpContext)
    • UpdateConfig(HttpContext)
  • Extension Methods
Back to top Generated by DocFX