jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/2] jena git commit: Reformat
Date Thu, 09 Jun 2016 15:54:45 GMT
Repository: jena
Updated Branches:
  refs/heads/master 8e02240e5 -> 7f2dfed0a


Reformat


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

Branch: refs/heads/master
Commit: a1b4c3354ce0a63c45c9c6277c10f121234d69b9
Parents: 8e02240
Author: Andy Seaborne <andy@apache.org>
Authored: Thu Jun 9 16:23:11 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Thu Jun 9 16:23:11 2016 +0100

----------------------------------------------------------------------
 jena-sdb/src/main/java/sdb/sdbdump.java | 25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/a1b4c335/jena-sdb/src/main/java/sdb/sdbdump.java
----------------------------------------------------------------------
diff --git a/jena-sdb/src/main/java/sdb/sdbdump.java b/jena-sdb/src/main/java/sdb/sdbdump.java
index 9efc66f..731742d 100644
--- a/jena-sdb/src/main/java/sdb/sdbdump.java
+++ b/jena-sdb/src/main/java/sdb/sdbdump.java
@@ -50,21 +50,19 @@ public class sdbdump extends CmdArgsDB
     public static final String usage = "sdbdump --sdb <SPEC> [--out syntax]" ;
 
     private static ModGraph modGraph = new ModGraph() ;
-    static ArgDecl argDeclSyntax = new ArgDecl(true, "out") ;
+    static ArgDecl argDeclSyntax = new ArgDecl(true, "output", "out") ;
 
-    public static void main(String ... argv)
-    {
-        SDB.init();
+    public static void main(String... argv) {
+        SDB.init() ;
         new sdbdump(argv).mainRun() ;
     }
 
-    protected sdbdump(String ... args)
-    {
-        super(args);
+    protected sdbdump(String... args) {
+        super(args) ;
         addModule(modGraph) ;
-        add(argDeclSyntax) ;
+        add(argDeclSyntax, "--output=", "RDF Syntax for output (For datasets, TriG, N-Quads;
for graphs, any RDF syntax)") ;
     }
-    
+
     @Override
     protected String getCommandName() { return Lib.className(this) ; }
     
@@ -72,15 +70,13 @@ public class sdbdump extends CmdArgsDB
     protected String getSummary()  { return Lib.className(this)+" --sdb <SPEC> [--out
syntax]" ; }
 
     @Override
-    protected void processModulesAndArgs()
-    {
+    protected void processModulesAndArgs() {
         if ( getNumPositional() > 0 )
             cmdError("No positional arguments allowed", true) ;
     }
-    
+
     @Override
-    protected void execCmd(List<String> args)
-    {
+    protected void execCmd(List<String> args) {
         // This is a streamable syntax.
         String syntax = "N-QUADS";
         if ( contains(argDeclSyntax) )
@@ -104,5 +100,4 @@ public class sdbdump extends CmdArgsDB
             ex.printStackTrace(System.err);
         }
     }
-
 }


Mime
View raw message