Show / Hide Table of Contents

Class GenericProtocolProcessor

A processor for the SPARQL Graph Store HTTP Protocol which operates by performing the desired operations on some arbitrary underlying Store for which an IStorageProvider is available.
Inheritance
System.Object
BaseProtocolProcessor
GenericProtocolProcessor
Implements
ISparqlHttpProtocolProcessor
Inherited Members
BaseProtocolProcessor.DefaultParameterPattern
BaseProtocolProcessor.ResolveGraphUri(IHttpContext)
BaseProtocolProcessor.ResolveGraphUri(IHttpContext, IGraph)
BaseProtocolProcessor.MintGraphUri(IHttpContext, IGraph)
BaseProtocolProcessor.ParsePayload(IHttpContext)
BaseProtocolProcessor.SendResultsToClient(IHttpContext, IGraph)
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.Update.Protocol
Assembly: dotNetRDF.dll
Syntax
public class GenericProtocolProcessor : BaseProtocolProcessor, ISparqlHttpProtocolProcessor

Constructors

| Improve this Doc View Source

GenericProtocolProcessor(IStorageProvider)

Creates a new Generic Protocol Processor.
Declaration
public GenericProtocolProcessor(IStorageProvider manager)
Parameters
Type Name Description
IStorageProvider manager Generic IO Manager.

Methods

| Improve this Doc View Source

GetGraph(Uri)

Retrieves the Graph with the given URI.
Declaration
protected override IGraph GetGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
IGraph
Overrides
BaseProtocolProcessor.GetGraph(Uri)
| Improve this Doc View Source

HasGraph(Uri)

Determines whether a Graph with the given URI exists.
Declaration
protected override bool HasGraph(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Boolean
Overrides
BaseProtocolProcessor.HasGraph(Uri)
| Improve this Doc View Source

ProcessDelete(IHttpContext)

Processes a DELETE operation.
Declaration
public override void ProcessDelete(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessDelete(IHttpContext)
Remarks

Warning: If the underlying IStorageProvider is read-only then this operation returns a 403 Forbidden.

The delete operation does not explicitly remove the Graph but simply replaces it with an empty Graph.

| Improve this Doc View Source

ProcessGet(IHttpContext)

Processes a GET operation.
Declaration
public override void ProcessGet(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessGet(IHttpContext)
Remarks
Implemented by making a call to LoadGraph(IGraph, Uri) on the underlying IStorageProvider.
| Improve this Doc View Source

ProcessHead(IHttpContext)

Processes a HEAD operation.
Declaration
public override void ProcessHead(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessHead(IHttpContext)
| Improve this Doc View Source

ProcessPatch(IHttpContext)

Processes a PATCH operation.
Declaration
public override void ProcessPatch(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessPatch(IHttpContext)
| Improve this Doc View Source

ProcessPost(IHttpContext)

Processes a POST operation.
Declaration
public override void ProcessPost(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessPost(IHttpContext)
Remarks

Warning: If the underlying IStorageProvider is read-only then this operation returns a 403 Forbidden.

Otherwise this is implemented using UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>) if updates are supported, if not then the Graph has to be loaded, the POSTed data merged into it and then the Graph is saved again.

| Improve this Doc View Source

ProcessPostCreate(IHttpContext)

Processes a POST operation which adds triples to a new Graph in the Store and returns the URI of the newly created Graph.
Declaration
public override void ProcessPostCreate(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessPostCreate(IHttpContext)
Remarks

This operation allows clients to POST data to an endpoint and have it create a Graph and assign a URI for them.

| Improve this Doc View Source

ProcessPut(IHttpContext)

Processes a PUT operation.
Declaration
public override void ProcessPut(IHttpContext context)
Parameters
Type Name Description
IHttpContext context HTTP Context.
Overrides
BaseProtocolProcessor.ProcessPut(IHttpContext)
Remarks

Warning: If the underlying IStorageProvider is read-only then this operation returns a 403 Forbidden.

Implemented by calling SaveGraph(IGraph) on the underlying manager.

Implements

ISparqlHttpProtocolProcessor

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • GenericProtocolProcessor(IStorageProvider)
  • Methods
    • GetGraph(Uri)
    • HasGraph(Uri)
    • ProcessDelete(IHttpContext)
    • ProcessGet(IHttpContext)
    • ProcessHead(IHttpContext)
    • ProcessPatch(IHttpContext)
    • ProcessPost(IHttpContext)
    • ProcessPostCreate(IHttpContext)
    • ProcessPut(IHttpContext)
  • Implements
  • Extension Methods
Back to top Generated by DocFX