Show / Hide Table of Contents

Class WildcardProtocolHandler

HTTP Handler for adding SPARQL Graph Store HTTP Protocol for RDF Graph Management endpoints to ASP.Net applications
Inheritance
System.Object
BaseSparqlHttpProtocolHandler
WildcardProtocolHandler
Inherited Members
BaseSparqlHttpProtocolHandler._config
BaseSparqlHttpProtocolHandler._basePath
BaseSparqlHttpProtocolHandler.IsReusable
BaseSparqlHttpProtocolHandler.ProcessRequest(HttpContext)
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public class WildcardProtocolHandler : BaseSparqlHttpProtocolHandler
Remarks

Used to create a Protocol endpoint at a Base URL with any URL under this handled by this Handler

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 Protocol Endpoint:
<dotnetrdf:/folder/protocol/*> a dnr:HttpHandler ;
                                     dnr:type "VDS.RDF.Web.WildcardProtocolHandler" ;
                                     dnr:protocolProcessor _:proc .

_:proc a dnr:SparqlHttpProtocolProcessor ;
       dnr:type "VDS.RDF.Update.Protocol.LeviathanProtocolProcessor" ;
       dnr:usingStore _:store .

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

Methods

| Improve this Doc View Source

LoadConfig(HttpContext, out String)

Loads the Handler Configuration
Declaration
protected override BaseProtocolHandlerConfiguration LoadConfig(HttpContext context, out String basePath)
Parameters
Type Name Description
HttpContext context HTTP Context
String basePath Base Path of the Handler which this method will determine
Returns
Type Description
BaseProtocolHandlerConfiguration
Overrides
BaseSparqlHttpProtocolHandler.LoadConfig(HttpContext, out String)
| 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
BaseSparqlHttpProtocolHandler.UpdateConfig(HttpContext)

Extension Methods

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