Table of Contents

Name

ts-util - perform various maintenance and diagnostic tasks

Synopsis

ts-util [-h] [-u <user>] [-p <passwd>] [-d <db>] [-r <host>] [util ...]

Description

This command allows you to perform various useful maintenance tests and display information about 3store knowledge bases.

Options

-h, --help
Show brief help message.
-u, --username
Set the username for the connection to the knowledge-base. This is optional, if it is not given a default will be used, generally 'rdf' unless it was changed at build time.
-p, --password
Set the password for the connection to the knowledge-base. This is optional, if it is not given a default will be used, generally 'rdf' unless it was changed at build time.
-d, --database
Set the database name used for the connection to the knowledge-base. If this parameter is not specified the default will be used.
-r, --remote
Give a remote host to connect to. If not given it will use the local machine.
[util]
Specify which utility is to be used. If none is specified, `size' is used. The list of supported utilities is in the UTILITIES section.

Utilities

deps
Show the dependencies between various graphs (models) in the knowledge base. Output format is:

Graph

Dependent graph

Such that the statements in `Dependent graph' are only true because of statements in `Graph'.

models
List all the models in the knowledge base. Some attempt is made to print each model URI once, but there may be duplicates, especially in large KBs.
optimise / optimize
Remove any stale entries in the symbols and triples tables, and rebuild th indexes for more efficient queries. Can take some time to complete, around 30 seconds per million triples is a reasonable estimate.
size [default]
Displays the size (number of triples) of the knowledge base, broken down into various relevant categories.
sqlconf
Display various SQL server configuration variables. Output is dependent on the SQL backend.
symbols
Show all the symbols (RDF nodes; URIs and Literals) that are used in the KB. URIs are shown enclosed in angle brackets, Literals in quotes, and bNodes as skolemised, bare turtle format bNodes.

Example

ts-util -d test optimise
-
Optimise the tables used to represent the `test' KB.

See Also

ts-setup(1) , ts-import(1) , ts-query(1) , ts-remove(1) and ts-explain(1)


Table of Contents