Class CountHandler
A RDF Handler which simply counts the Triples.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class CountHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory
Constructors
| Edit this page View SourceCountHandler()
Creates a Handler which counts Triples.
Declaration
public CountHandler()
Properties
| Edit this page View SourceAcceptsAll
Gets that the Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceCount
Gets the Count of Triples handled in the most recent parsing operation.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
Note that each time you reuse the handler the count is reset to 0.
Methods
| Edit this page View SourceHandleQuadInternal(Triple, IRefNode)
Handles the Quad by incrementing the Triple count.
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 the Triple by incrementing the Triple count.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceStartRdfInternal()
Resets the current count to zero.
Declaration
protected override void StartRdfInternal()