Show / Hide Table of Contents

Class GraphUriRewriteHandler

A RDF Handler that rewrites the Graph URIs of Triples before passing them to an inner handler.

Inheritance
object
BaseHandler
BaseRdfHandler
GraphUriRewriteHandler
Implements
ICommentRdfHandler
IWrappingRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseRdfHandler.HandleComment(string)
BaseRdfHandler.HandleCommentInternal(string)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.LanguageTagValidation
BaseHandler.ResolveQName(string)
BaseHandler.BaseUri
BaseHandler.NamespaceMap
BaseHandler.UriFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(string)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(string, Uri)
BaseHandler.CreateLiteralNode(string)
BaseHandler.CreateLiteralNode(string, string)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateUriNode(string)
BaseHandler.CreateUriNode()
BaseHandler.CreateVariableNode(string)
BaseHandler.CreateTripleNode(Triple)
BaseHandler.GetNextBlankNodeID()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class GraphUriRewriteHandler : BaseRdfHandler, ICommentRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory

Constructors

| Edit this page View Source

GraphUriRewriteHandler(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.

| Edit this page View Source

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 Source

AcceptsAll

Returns true since this handler accepts all triples.

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
bool
Overrides
BaseRdfHandler.AcceptsAll
| Edit this page View Source

InnerHandlers

Gets the Inner Handler.

Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type Description
IEnumerable<IRdfHandler>

Methods

| Edit this page View Source

EndRdfInternal(bool)

Ends handling of RDF.

Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type Name Description
bool ok

Whether parsing completed OK.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
| Edit this page View Source

HandleBaseUriInternal(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
BaseRdfHandler.HandleBaseUriInternal(Uri)
| Edit this page View Source

HandleNamespaceInternal(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
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
| Edit this page View Source

HandleQuadInternal(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
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
| Edit this page View Source

HandleTripleInternal(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
BaseRdfHandler.HandleTripleInternal(Triple)
| Edit this page View Source

StartRdfInternal()

Starts handling of RDF.

Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

ICommentRdfHandler
IWrappingRdfHandler
IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • GraphUriRewriteHandler(IRdfHandler, Uri)
    • GraphUriRewriteHandler(IRdfHandler, IRefNode)
  • Properties
    • AcceptsAll
    • InnerHandlers
  • Methods
    • EndRdfInternal(bool)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX