Skip to content

Commit

Permalink
fixed #50 Unclear how to use stats with named graphs - improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Sotona committed Jan 2, 2019
1 parent 015c00c commit 65583ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ by the VoID vocabulary, its extensions, and the SPARQL 1.1 Service Description.
-c,--named-graph <named_graph> Optional restrict stats calculation to the given named
graph only
-g,--stats-named-graph <target_graph> Optional target named graph of the exported statistics
(default is
'http://merck.github.io/Halyard/ns#statsContext')
(default value is
'http://merck.github.io/Halyard/ns#statsContext'),
modification is recomended only for external export as
internal Halyard optimizers expect the default value
Example: halyard stats -s my_dataset [-g 'http://whatever/mystats'] [-t
hdfs:/my_folder/my_stats.trig]
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public HalyardStats() {
addOption("t", "target-file", "target_url", "Optional target file to export the statistics (instead of update) hdfs://<path>/<file_name>[{0}].<RDF_ext>[.<compression>]", false, true);
addOption("r", "threshold", "size", "Optional minimal size of a named graph to calculate statistics for (default is 1000)", false, true);
addOption("c", "named-graph", "named_graph", "Optional restrict stats calculation to the given named graph only", false, true);
addOption("g", "stats-named-graph", "target_graph", "Optional target named graph of the exported statistics (default is '" + HALYARD.STATS_GRAPH_CONTEXT.stringValue() + "')", false, true);
addOption("g", "stats-named-graph", "target_graph", "Optional target named graph of the exported statistics (default value is '" + HALYARD.STATS_GRAPH_CONTEXT.stringValue() + "'), modification is recomended only for external export as internal Halyard optimizers expect the default value", false, true);
}

private static RowRange rowRange(byte prefix, byte[] hash) {
Expand Down

0 comments on commit 65583ec

Please sign in to comment.