Class ProtocolToUpdateProcessor
A processor for the SPARQL Graph Store HTTP Protocol which operates by translating the requests into SPARQL Query/Update commands as specified by the SPARQL Graph Store HTTP Protocol specification and passing the generated commands to a ISparqlUpdateProcessor which will handle the actual application of the updates.
Inheritance
System.Object
ProtocolToUpdateProcessor
Implements
Inherited Members
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 ProtocolToUpdateProcessor : BaseProtocolProcessor, ISparqlHttpProtocolProcessor
Remarks
The conversion from HTTP operation to SPARQL Query/Update is as defined in the SPARQL 1.1 Graph Store HTTP Protocol specification.
Constructors
| Improve this Doc View SourceProtocolToUpdateProcessor(ISparqlQueryProcessor, ISparqlUpdateProcessor)
Creates a new Protocol to Update Processor.
Declaration
public ProtocolToUpdateProcessor(ISparqlQueryProcessor queryProcessor, ISparqlUpdateProcessor updateProcessor)
Parameters
Type | Name | Description |
---|---|---|
ISparqlQueryProcessor | queryProcessor | Query Processor. |
ISparqlUpdateProcessor | updateProcessor | Update Processor. |
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 |
---|---|---|
System.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 |
---|---|---|
System.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
| Improve this Doc View SourceProcessGet(IHttpContext)
Processes a GET operation.
Declaration
public override void ProcessGet(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | HTTP Context. |
Overrides
| Improve this Doc View SourceProcessHead(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
| Improve this Doc View SourceProcessPostCreate(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. |