Class StoreCountHandler
A RDF Handler which simply counts the Triples and Graphs.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class StoreCountHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory
  Constructors
| Edit this page View SourceStoreCountHandler()
Creates a new Store Count Handler.
Declaration
public StoreCountHandler()
  Properties
| Edit this page View SourceAcceptsAll
Gets that this Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
| Edit this page View SourceGraphCount
Gets the count of distinct Graph URIs.
Declaration
public int GraphCount { get; }
  Property Value
| Type | Description | 
|---|---|
| int | 
TripleCount
Gets the count of Triples.
Declaration
public int TripleCount { get; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
| Edit this page View SourceHandleQuadInternal(Triple, IRefNode)
Handles Triples/Quads by counting the Triples and distinct Graph URIs.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Triple | t | Triple.  | 
      
| IRefNode | graph | The graph containing the triple.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
Overrides
| Edit this page View SourceHandleTripleInternal(Triple)
Handles Triples/Quads by counting the Triples and distinct Graph URIs.
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 RDF Handling by resetting the counters.
Declaration
protected override void StartRdfInternal()