Repository: jena
Updated Branches:
  refs/heads/master ff723ecfe -> f3a1faaa2


Fix bug with Airline metadata in Stats demo


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/db8b0e7c
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/db8b0e7c
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/db8b0e7c

Branch: refs/heads/master
Commit: db8b0e7cf499d5349e4defd7880760776e6d99e2
Parents: b64e310
Author: Rob Vesse <[email protected]>
Authored: Tue Feb 7 14:33:14 2017 +0000
Committer: Rob Vesse <[email protected]>
Committed: Tue Feb 7 14:33:14 2017 +0000

----------------------------------------------------------------------
 .../org/apache/jena/hadoop/rdf/stats/RdfStats.java     | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/db8b0e7c/jena-elephas/jena-elephas-stats/src/main/java/org/apache/jena/hadoop/rdf/stats/RdfStats.java
----------------------------------------------------------------------
diff --git 
a/jena-elephas/jena-elephas-stats/src/main/java/org/apache/jena/hadoop/rdf/stats/RdfStats.java
 
b/jena-elephas/jena-elephas-stats/src/main/java/org/apache/jena/hadoop/rdf/stats/RdfStats.java
index 7425f42..59dbf16 100644
--- 
a/jena-elephas/jena-elephas-stats/src/main/java/org/apache/jena/hadoop/rdf/stats/RdfStats.java
+++ 
b/jena-elephas/jena-elephas-stats/src/main/java/org/apache/jena/hadoop/rdf/stats/RdfStats.java
@@ -37,6 +37,7 @@ import com.github.rvesse.airline.SingleCommand;
 import com.github.rvesse.airline.annotations.Arguments;
 import com.github.rvesse.airline.annotations.Command;
 import com.github.rvesse.airline.annotations.Option;
+import com.github.rvesse.airline.annotations.help.Examples;
 import com.github.rvesse.airline.annotations.restrictions.AllowedRawValues;
 import com.github.rvesse.airline.annotations.restrictions.Required;
 import com.github.rvesse.airline.help.Help;
@@ -50,7 +51,17 @@ import 
com.github.rvesse.airline.parser.errors.ParseException;
  * Entry point for the Hadoop job, handles launching all the relevant Hadoop
  * jobs
  */
-@Command(name = "hadoop jar PATH_TO_JAR 
org.apache.jena.hadoop.rdf.stats.RdfStats", description = "A command which 
computes statistics on RDF data using Hadoop")
+@Command(name = "rdf-stats", description = "A command which computes 
statistics on RDF data using Hadoop")
+//@formatter:off
+@Examples(examples = 
+        {
+            "hadoop jar PATH_TO_JAR org.apache.jena.hadoop.rdf.stats.RdfStats 
-n -o /example/node-counts /example/input.nt" 
+        }, 
+        descriptions = 
+        {
+            "Runs the JAR under Hadoop Map/Reduce calculating node counts for 
/example/input.nt and outputting them to /example/node-counts" 
+        })
+//@formatter:on
 public class RdfStats implements Tool {
     //@formatter:off
     private static final String DATA_TYPE_TRIPLES = "triples", 

Reply via email to