From 65583ecae0db6d3b95c576e4607e209b8be74898 Mon Sep 17 00:00:00 2001 From: Adam Sotona Date: Wed, 2 Jan 2019 14:27:18 +0100 Subject: [PATCH] fixed #50 Unclear how to use stats with named graphs - improve docs --- docs/tools.md | 6 ++++-- .../main/java/com/msd/gin/halyard/tools/HalyardStats.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/tools.md b/docs/tools.md index 20e8b9034..4de650c07 100644 --- a/docs/tools.md +++ b/docs/tools.md @@ -235,8 +235,10 @@ by the VoID vocabulary, its extensions, and the SPARQL 1.1 Service Description. -c,--named-graph Optional restrict stats calculation to the given named graph only -g,--stats-named-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] ``` diff --git a/tools/src/main/java/com/msd/gin/halyard/tools/HalyardStats.java b/tools/src/main/java/com/msd/gin/halyard/tools/HalyardStats.java index 581039b4e..320cfec00 100644 --- a/tools/src/main/java/com/msd/gin/halyard/tools/HalyardStats.java +++ b/tools/src/main/java/com/msd/gin/halyard/tools/HalyardStats.java @@ -453,7 +453,7 @@ public HalyardStats() { addOption("t", "target-file", "target_url", "Optional target file to export the statistics (instead of update) hdfs:///[{0}].[.]", 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) {