Show / Hide Table of Contents

Class SchemaGraphHandler

HTTP Handler for serving Graphs in ASP.Net applications
Inheritance
System.Object
BaseGraphHandler
GraphHandler
SchemaGraphHandler
Inherited Members
GraphHandler.LoadConfig(HttpContext)
GraphHandler.UpdateConfig(HttpContext)
BaseGraphHandler._config
BaseGraphHandler.IsReusable
BaseGraphHandler.ProcessRequest(HttpContext)
BaseGraphHandler.ProcessGraph(IGraph)
BaseGraphHandler.ComputeETag(IGraph)
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public class SchemaGraphHandler : GraphHandler
Remarks

Configured exactly in the same way as GraphHandler - only difference in functionality is that if the requested Content Type (based on the Accept: header) is HTML then the HtmlSchemaWriter will be used to provide a human readable schema document rather than the standard HtmlWriter which justs creates a table of Triples. Remember though that this means that the HTML output will not contain embedded RDFa as the HtmlSchemaWriter does not embed any as opposed to the standard HtmlWriter which does.

Methods

| Improve this Doc View Source

SelectWriter(MimeTypeDefinition)

Overrides writer Selection to use the HtmlSchemaWriter whenever the HtmlWriter would normally have been used
Declaration
protected override IRdfWriter SelectWriter(MimeTypeDefinition definition)
Parameters
Type Name Description
MimeTypeDefinition definition MIME Type Definition selected based on the Requests Accept header
Returns
Type Description
IRdfWriter
Overrides
BaseGraphHandler.SelectWriter(MimeTypeDefinition)

Extension Methods

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