You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2012/11/13 18:29:45 UTC
svn commit: r1408848 -
/jena/site/trunk/content/documentation/tdb/optimizer.mdtext
Author: rvesse
Date: Tue Nov 13 17:29:44 2012
New Revision: 1408848
URL: http://svn.apache.org/viewvc?rev=1408848&view=rev
Log:
Applied Leigh Dodd's documentation patch on how to generate TDB stats for union graphs
Modified:
jena/site/trunk/content/documentation/tdb/optimizer.mdtext
Modified: jena/site/trunk/content/documentation/tdb/optimizer.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb/optimizer.mdtext?rev=1408848&r1=1408847&r2=1408848&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb/optimizer.mdtext (original)
+++ jena/site/trunk/content/documentation/tdb/optimizer.mdtext Tue Nov 13 17:29:44 2012
@@ -30,6 +30,7 @@ properties.
- [Abbreviated Rule Form](#abbreviated-rule-form)
- [Defaults](#defaults)
- [Generating a statistics file](#generating-a-statistics-file)
+ - [Generating statistics for Union Graphs](#generating-statistics-for-union-graphs)
- [Writing Rules](#writing-rules)
## Quickstart
@@ -290,6 +291,23 @@ Practical tip: Don't feed the output of
*location*/stats.opt because when the command starts it will find
an empty statistics file at that location.
+### Generating statistics for Union Graphs
+
+By default `tdbstats` only processes the default graph of a dataset. However
+in some circumstances it is desirable to have the statistics generated
+over Named Graphs in the dataset.
+
+The `tdb:unionDefaultGraph` option will cause TDB to synthesize a default
+graph for SPARQL queries, from the union of all Named Graphs in the
+dataset.
+
+Ideally the statistics file should be generated against this
+union graph. This can be achieved using the `--graph` option as follows:
+
+ tdbstats --graph urn:x-arq:UnionGraph --loc /path/to/indexes
+
+The `graph` parameter uses a built-in TDB [special graph name](/documentation/tdb/datasets.html#special-graph-names)
+
## Writing Rules
Rule for an inverse functional property:
@@ -320,4 +338,4 @@ number of instances, in which case
((VAR rdf:type class) ...)
-is a useful selective rule.
+is a useful selective rule.
\ No newline at end of file