Click or drag to resize

PagingHandler Class

A RDF Handler which wraps another handler passing only the chunk of triples falling within a given limit and offset to the underlying Handler.
Inheritance Hierarchy

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

The PagingHandler type exposes the following members.

Constructors
  NameDescription
Public methodPagingHandler(IRdfHandler, Int32)
Creates a new Paging Handler.
Public methodPagingHandler(IRdfHandler, Int32, Int32)
Creates a new Paging Handler.
Top
Properties
  NameDescription
Public propertyAcceptsAll
Gets whether the Handler will accept all Triples based on its Limit setting.
(Overrides BaseRdfHandlerAcceptsAll.)
Public propertyInnerHandlers
Gets the Inner Handler wrapped by this 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 with the given ID.
(Inherited from BaseHandler.)
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 RDF Handler.
(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 Base URI Declarations by allowing the inner handler to handle it.
(Overrides BaseRdfHandlerHandleBaseUriInternal(Uri).)
Public methodHandleNamespace
Handles Namespace declarations.
(Inherited from BaseRdfHandler.)
Protected methodHandleNamespaceInternal
Handles Namespace Declarations by allowing the inner handler to handle it.
(Overrides BaseRdfHandlerHandleNamespaceInternal(String, Uri).)
Public methodHandleTriple
Handles Triples.
(Inherited from BaseRdfHandler.)
Protected methodHandleTripleInternal
Handles a Triple by passing it to the Inner Handler only if the Offset has been passed and the Limit has yet to be reached.
(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 RDF Handler.
(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
This handler does not guarantee that you will receive exactly the chunk specified by the limit and offset for two reasons:.
  1. It does not perform any sort of data de-duplication so it is possible that if this handler receives duplicate triples and the underlying handler performs de-duplication then you may see less triples than you expect in your final output since although the underlying handler will receive at most the specified chunk size of triples it may not retain them all
  2. If there are fewer triples than the chunk size or if the chunk exceeds the bounds of the data then you will only receive the triples that fall within the chunk (if any)
See Also