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: Check for quads only when outputtign the whole dataset
Date Mon, 06 Jun 2016 19:02:45 GMT
Repository: jena
Updated Branches:
  refs/heads/master 6f12cdbd3 -> 1ca43f086


Check for quads only when outputtign the whole dataset


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

Branch: refs/heads/master
Commit: 75c77d04760d77847dee4bf99392fda817ef3d48
Parents: 6f12cdb
Author: Andy Seaborne <andy@apache.org>
Authored: Mon Jun 6 19:54:13 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Mon Jun 6 19:54:13 2016 +0100

----------------------------------------------------------------------
 jena-sdb/src/main/java/sdb/sdbdump.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/75c77d04/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 7c3bde0..56e9883 100644
--- a/jena-sdb/src/main/java/sdb/sdbdump.java
+++ b/jena-sdb/src/main/java/sdb/sdbdump.java
@@ -85,11 +85,11 @@ public class sdbdump extends CmdArgsDB
         if ( contains(argDeclSyntax) )
             syntax = getArg(argDeclSyntax).getValue();
         Lang lang = RDFLanguages.nameToLang(syntax);
-        if ( ! RDFLanguages.isQuads(lang) )
-            cmdError("Not a 'quads' language (try 'N-Quads' or 'TriG')", true) ;
 
         try {
             if ( modGraph.getGraphName() == null ) {
+                if ( ! RDFLanguages.isQuads(lang) )
+                    cmdError("Not a 'quads' language (try 'N-Quads' or 'TriG')", true) ;
                 Dataset dataset = getModStore().getDataset();
                 RDFDataMgr.write(System.out, dataset, lang);
             } else {


Mime
View raw message