Click or drag to resize

UniqueBlankNodesHandler Class

A decorator for handlers which ensures that all blank nodes get unique IDs even if a blank node identifier is reused.
Inheritance Hierarchy

Namespace:  VDS.RDF.Parsing.Handlers
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class UniqueBlankNodesHandler : BaseRdfHandler, 
	IWrappingRdfHandler, IRdfHandler, INodeFactory

The UniqueBlankNodesHandler type exposes the following members.

Constructors
  NameDescription
Public methodUniqueBlankNodesHandler
Creates a new Unique Blank Nodes handler.
Top
Properties
  NameDescription
Public propertyAcceptsAll
Gets whether the inner handler accepts all.
(Overrides BaseRdfHandlerAcceptsAll.)
Public propertyInnerHandlers
Gets the inner handler.
Protected propertyNodeFactory
Gets/Sets the in-use Node Factory.
(Inherited from BaseHandler.)
Top
Methods
  NameDescription
Public methodCreateBlankNode
Creates a Blank Node.
(Inherited from BaseHandler.)
Public methodCreateBlankNode(String)
Creates a Blank Node.
(Overrides BaseHandlerCreateBlankNode(String).)
Public methodCreateGraphLiteralNode
Creates a Graph Literal Node.
(Inherited from BaseHandler.)
Public methodCreateGraphLiteralNode(IGraph)
Creates a Graph Literal Node with the given sub-graph.
(Inherited from BaseHandler.)
Public methodCreateLiteralNode(String)
Creates a Literal Node.
(Inherited from BaseHandler.)
Public methodCreateLiteralNode(String, String)
Creates a Literal Node with the given Language.
(Inherited from BaseHandler.)
Public methodCreateLiteralNode(String, Uri)
Creates a Literal Node with the given Datatype.
(Inherited from BaseHandler.)
Public methodCreateUriNode
Creates a URI Node.
(Inherited from BaseHandler.)
Public methodCreateVariableNode
Creates a Variable Node.
(Inherited from BaseHandler.)
Public methodEndRdf
Ends the Handling of RDF.
(Inherited from BaseRdfHandler.)
Protected methodEndRdfInternal
Ends handling RDF.
(Overrides BaseRdfHandlerEndRdfInternal(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNextBlankNodeID
Gets the next available Blank Node ID.
(Inherited from BaseHandler.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHandleBaseUri
Handles Base URI declarations.
(Inherited from BaseRdfHandler.)
Protected methodHandleBaseUriInternal
Handles a Base URI declaration.
(Overrides BaseRdfHandlerHandleBaseUriInternal(Uri).)
Public methodHandleNamespace
Handles Namespace declarations.
(Inherited from BaseRdfHandler.)
Protected methodHandleNamespaceInternal
Handles a Namespace declaration.
(Overrides BaseRdfHandlerHandleNamespaceInternal(String, Uri).)
Public methodHandleTriple
Handles Triples.
(Inherited from BaseRdfHandler.)
Protected methodHandleTripleInternal
Handles a Triple.
(Overrides BaseRdfHandlerHandleTripleInternal(Triple).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStartRdf
Starts the Handling of RDF.
(Inherited from BaseRdfHandler.)
Protected methodStartRdfInternal
Starts handling RDF.
(Overrides BaseRdfHandlerStartRdfInternal.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodApply(IGraph)Overloaded.
Applies the triples of a Graph to an RDF Handler.
(Defined by HandlerExtensions.)
Public Extension MethodApply(IEnumerableTriple)Overloaded.
Applies the triples to an RDF Handler.
(Defined by HandlerExtensions.)
Top
Remarks

In most parsing scenarios this handler is not suitable for usage as it may unintentionally modify the RDF data being parsed, in non-parsing scenarios where this handler is instead being used as a means to generate RDF data from some non-RDF source it may prove very useful.

This handler essentially works by redirecting all calls to the argument taking form of CreateBlankNode with the non-argument form which should always generate a new blank node thus guaranteeing the uniqueness of nodes.

See Also