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.
Implements
Inherited Members
Namespace: VDS.RDF.Update.Protocol
Assembly: dotNetRdf.AspNet.dll
Syntax
public class GenericProtocolProcessor : BaseProtocolProcessor, ISparqlHttpProtocolProcessor
Constructors
| Improve this Doc View SourceGenericProtocolProcessor(IStorageProvider, IUriFactory)
Creates a new Generic Protocol Processor.
Declaration
public GenericProtocolProcessor(IStorageProvider manager, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
IUriFactory | uriFactory | Factory for creating new URI instances. |
Methods
| Improve this Doc View SourceGetGraph(Uri)
Retrieves the Graph with the given URI.
Declaration
protected override IGraph GetGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
Overrides
| Improve this Doc View SourceHasGraph(Uri)
Determines whether a Graph with the given URI exists.
Declaration
protected override bool HasGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceProcessDelete(IHttpContext)
Processes a DELETE operation.
Declaration
public override void ProcessDelete(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
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.
ProcessGet(IHttpContext)
Processes a GET operation.
Declaration
public override void ProcessGet(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
Remarks
Implemented by making a call to
ProcessHead(IHttpContext)
Processes a HEAD operation.
Declaration
public override void ProcessHead(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
| Improve this Doc View SourceProcessPatch(IHttpContext)
Processes a PATCH operation.
Declaration
public override void ProcessPatch(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
| Improve this Doc View SourceProcessPost(IHttpContext)
Processes a POST operation.
Declaration
public override void ProcessPost(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
Remarks
Warning: If the underlying IStorageProvider is read-only then this operation returns a 403 Forbidden.
Otherwise this is implemented using
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
Remarks
This operation allows clients to POST data to an endpoint and have it create a Graph and assign a URI for them.
ProcessPut(IHttpContext)
Processes a PUT operation.
Declaration
public override void ProcessPut(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
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.