Class GraphUriRewriteHandler
A RDF Handler that rewrites the Graph URIs of Triples before passing them to an inner handler.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class GraphUriRewriteHandler : BaseRdfHandler, ICommentRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Constructors
| Edit this page View SourceGraphUriRewriteHandler(IRdfHandler, Uri)
Creates a new Graph URI rewriting handler.
Declaration
public GraphUriRewriteHandler(IRdfHandler handler, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Handler to wrap. |
Uri | graphUri | Graph URI to rewrite to. |
GraphUriRewriteHandler(IRdfHandler, IRefNode)
Creates a new Graph URI rewriting handler.
Declaration
public GraphUriRewriteHandler(IRdfHandler handler, IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Handler to wrap. |
IRefNode | graphName | Graph name to rewrite to. |
Properties
| Edit this page View SourceAcceptsAll
Returns true since this handler accepts all triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceInnerHandlers
Gets the Inner Handler.
Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRdfHandler> |
Methods
| Edit this page View SourceEndRdfInternal(bool)
Ends handling of RDF.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
bool | ok | Whether parsing completed OK. |
Overrides
| Edit this page View SourceHandleBaseUriInternal(Uri)
Handles a Base URI declaration.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHandleNamespaceInternal(string, Uri)
Handles a Namespace declaration.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Namespace Prefix. |
Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHandleQuadInternal(Triple, IRefNode)
Handles a quad by rewriting the graph name and passing it to the inner handler.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
IRefNode | graph | The name of the graph containing the triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceHandleTripleInternal(Triple)
Handles a Triple by rewriting the Graph URI and passing it to the inner handler.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceStartRdfInternal()
Starts handling of RDF.
Declaration
protected override void StartRdfInternal()