Show / Hide Table of Contents

Class BaseSparqlServer

Abstract Base class for SPARQL Servers which provide combined SPARQL Query, Update and Graph Store HTTP Protocol endpoints
Inheritance
System.Object
BaseSparqlServer
SparqlServer
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public abstract class BaseSparqlServer : IHttpHandler

Fields

| Improve this Doc View Source

_config

Handler Configuration
Declaration
protected BaseSparqlServerConfiguration _config
Field Value
Type Description
BaseSparqlServerConfiguration

Properties

| Improve this Doc View Source

IsReusable

Returns that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

HandleQueryErrors(HttpContext, String, String, Exception)

Handles errors in processing SPARQL Query Requests
Declaration
protected virtual void HandleQueryErrors(HttpContext context, String title, String query, Exception ex)
Parameters
Type Name Description
HttpContext context Context of the HTTP Request
String title Error title
String query Sparql Query
Exception ex Error
| Improve this Doc View Source

HandleQueryErrors(HttpContext, String, String, Exception, Int32)

Handles errors in processing SPARQL Query Requests
Declaration
protected virtual void HandleQueryErrors(HttpContext context, String title, String query, Exception ex, int statusCode)
Parameters
Type Name Description
HttpContext context Context of the HTTP Request
String title Error title
String query Sparql Query
Exception ex Error
System.Int32 statusCode HTTP Status Code to return
| Improve this Doc View Source

HandleUpdateErrors(HttpContext, String, String, Exception)

Handles errors in processing SPARQL Update Requests
Declaration
protected virtual void HandleUpdateErrors(HttpContext context, String title, String update, Exception ex)
Parameters
Type Name Description
HttpContext context Context of the HTTP Request
String title Error title
String update SPARQL Update
Exception ex Error
| Improve this Doc View Source

HandleUpdateErrors(HttpContext, String, String, Exception, Int32)

Handles errors in processing SPARQL Update Requests
Declaration
protected virtual void HandleUpdateErrors(HttpContext context, String title, String update, Exception ex, int statusCode)
Parameters
Type Name Description
HttpContext context Context of the HTTP Request
String title Error title
String update SPARQL Update
Exception ex Error
System.Int32 statusCode HTTP Status Code
| Improve this Doc View Source

LoadConfig(HttpContext, out String)

Loads the Handler Configuration
Declaration
protected abstract BaseSparqlServerConfiguration LoadConfig(HttpContext context, out String basePath)
Parameters
Type Name Description
HttpContext context HTTP Context
String basePath Base Path of the Handler
Returns
Type Description
BaseSparqlServerConfiguration
| Improve this Doc View Source

ProcessDescriptionRequest(HttpContext)

Processes Service Description requests
Declaration
public void ProcessDescriptionRequest(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ProcessProtocolRequest(HttpContext)

Processes Protocol requests
Declaration
public void ProcessProtocolRequest(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ProcessQuery(SparqlQuery)

Processes SPARQL Queries
Declaration
protected virtual Object ProcessQuery(SparqlQuery query)
Parameters
Type Name Description
SparqlQuery query Query
Returns
Type Description
Object
Remarks

Implementations should override this method if their behaviour requires more than just invoking the configured Query processor

| Improve this Doc View Source

ProcessQueryRequest(HttpContext)

Processes Query requests
Declaration
public void ProcessQueryRequest(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ProcessQueryResults(HttpContext, Object)

Internal Helper function which returns the Results back to the Client in one of their accepted formats
Declaration
protected virtual void ProcessQueryResults(HttpContext context, Object result)
Parameters
Type Name Description
HttpContext context Context of the HTTP Request
Object result Results of the Sparql Query
Remarks

Implementations should override this if they want to control how results are sent to the client rather than using the default behaviour provided by HandlerHelper.ProcessResults()

| Improve this Doc View Source

ProcessRequest(HttpContext)

Processes requests
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ProcessUpdateRequest(HttpContext)

Processes Update requests
Declaration
public void ProcessUpdateRequest(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ProcessUpdates(SparqlUpdateCommandSet)

Processes SPARQL Updates
Declaration
protected virtual void ProcessUpdates(SparqlUpdateCommandSet cmds)
Parameters
Type Name Description
SparqlUpdateCommandSet cmds Update Command Set
Remarks

Implementations should override this method if their behaviour requires more than just invoking the configured Update processor

| Improve this Doc View Source

ShowQueryForm(HttpContext)

Generates a SPARQL Query Form
Declaration
protected virtual void ShowQueryForm(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

ShowUpdateForm(HttpContext)

Generates a SPARQL Update Form
Declaration
protected virtual void ShowUpdateForm(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context
| Improve this Doc View Source

UpdateConfig(HttpContext)

Updates the Handler Configuration
Declaration
protected virtual void UpdateConfig(HttpContext context)
Parameters
Type Name Description
HttpContext context HTTP Context

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • _config
  • Properties
    • IsReusable
  • Methods
    • HandleQueryErrors(HttpContext, String, String, Exception)
    • HandleQueryErrors(HttpContext, String, String, Exception, Int32)
    • HandleUpdateErrors(HttpContext, String, String, Exception)
    • HandleUpdateErrors(HttpContext, String, String, Exception, Int32)
    • LoadConfig(HttpContext, out String)
    • ProcessDescriptionRequest(HttpContext)
    • ProcessProtocolRequest(HttpContext)
    • ProcessQuery(SparqlQuery)
    • ProcessQueryRequest(HttpContext)
    • ProcessQueryResults(HttpContext, Object)
    • ProcessRequest(HttpContext)
    • ProcessUpdateRequest(HttpContext)
    • ProcessUpdates(SparqlUpdateCommandSet)
    • ShowQueryForm(HttpContext)
    • ShowUpdateForm(HttpContext)
    • UpdateConfig(HttpContext)
  • Extension Methods
Back to top Generated by DocFX