• User Guide
  • How-To Guides
  • Developer Guide
  • API Documentation
  • FAQs
  • Support
  • User Guide
  • Tools
  • rdfOptStats
Show / Hide Table of Contents
  • Tutorial
    • Getting Started
    • Library Overview
    • Hello World
    • Reading RDF
    • Writing RDF
    • Working With Graphs
    • Typed Values and Lists
    • Working with Triple Stores
    • Building SPARQL
    • Querying with SPARQL
    • Updating with SPARQL
  • Exceptions
  • Equality and Comparison
  • Event Model
  • Utility Methods
  • Extension Methods
  • Using the Namespace Mapper
  • Storage API
    • Triple Store Integration
    • Servers API
    • Transactions API
  • Storage Providers
    • Allegro Graph
    • Blazegraph
    • Dataset Files
    • 4store
    • Fuseki
    • In-Memory
    • Sesame
    • SPARQL Query Endpoints
    • SPARQL Query and Update Endpoints
    • SPARQL Graph Store Protocol
    • Stardog
    • Virtuoso
  • Advanced SPARQL
    • Result Formatting
    • SPARQL Datasets
    • Full Text Querying with SPARQL
    • Advanced SPARQL Operations
  • Ontology API
  • Inference and Reasoning
  • ASP.NET Integration
    • Creating SPARQL Endpoints
    • Deploying with rdfWebDeploy
  • Global Options
  • Dynamic API
  • Formatting API
  • Configuration API
    • Graphs
    • Triple Stores
    • Object Factories
    • Readers and Writers
    • SPARQL Endpoints
    • Query Processors
    • Update Processors
    • Protocol Processors
    • SPARQL Datasets
    • SPARQL Expression Factories
    • SPARQL Operators
    • SPARQL Optimisers
    • Full Text Query
    • Reasoners
    • Storage Providers
    • User Groups
    • Permissions
    • Users
    • Static Options
    • Proxy Servers
  • Handlers API
  • JSON-LD API
    • Expansion
    • Compaction
    • Flattening
    • Framing
    • Processor Options
    • Error Handling
  • Tools
    • rdfConvert
    • rdfEditor
      • Advanced Settings
    • rdfOptStats
    • rdfQuery
    • rdfServer
    • rdfServerGui
    • rdfWebDeploy
    • soh
    • Sparql GUI
    • Store Manager
      • Store Manager Plugins

rdfOptStats

rdfOptStats is a command line utility for generating statistics on RDF for use with our WeightedOptimiser for SPARQL queries.

Download

You can download this tool as part of our Toolkit

Documentation

Command usage is as follows:

rdfOptStats.exe [options] input1 [input2 [input3 ...]]

e.g. Generate all stats to a file stats.ttl for the input files data1.rdf and data2.rdf

rdfOptStats.exe -all -output stats.ttl data1.rdf data2.rdf

e.g. Generate all stats for all files within a given directory

rdfOptStats.exe -all -output stats.nt data\*

Notes

Only simple wildcard patterns are supported as inputs e.g.

  • data*
  • some\path*.rdf
  • .
  • *.ttl

Any other wildcard pattern will be rejected

Supported Options

Option Purpose
-all Specifies that counts of Subjects, Predicates and Objects should be generated
-literals Specifies that counts should include Literals (default is URIs only) - this requires an output format that supports Literal Subjects e.g. N3
-nodes Specifies that aggregated for Nodes should be generated i.e. counts that don't specify which position the URI/Literal occurs in
-p Specifies that counts for Predicates should be generated
-o Specifies that counts for Objects should be generated
-output file Specifies the file to output the statistics to
-s Specifies that counts for Subjects should be generated
  • Improve this Doc
In This Article
  • Download
  • Documentation
    • Notes
    • Supported Options
Back to top Generated by DocFX