jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/2] jena git commit: TokenType.BOOLEAN - basic hooks
Date Sun, 25 Jun 2017 08:58:43 GMT
TokenType.BOOLEAN - basic hooks


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

Branch: refs/heads/master
Commit: 32e5f20ff6a0edab04f394bb388a18a4f94819e1
Parents: 475b8cc
Author: Andy Seaborne <andy@apache.org>
Authored: Sun Jun 25 09:58:37 2017 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sun Jun 25 09:58:37 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/jena/riot/system/ParserProfileStd.java  | 4 ++++
 .../src/main/java/org/apache/jena/riot/tokens/TokenType.java     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/32e5f20f/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfileStd.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfileStd.java b/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfileStd.java
index 415958c..e893f15 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfileStd.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfileStd.java
@@ -218,6 +218,10 @@ public class ParserProfileStd implements ParserProfile
 
             case STRING :
                 return createStringLiteral(str, line, col);
+                
+            case BOOLEAN :
+                return createTypedLiteral(str, XSDDatatype.XSDboolean, line, col);
+                
             default : {
                 Node x = createNodeFromToken(currentGraph, token, line, col);
                 if ( x != null )

http://git-wip-us.apache.org/repos/asf/jena/blob/32e5f20f/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenType.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenType.java b/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenType.java
index 2a42497..f2d38b4 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenType.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenType.java
@@ -25,7 +25,7 @@ public enum TokenType {
     // One kind of string - the seen form is record 
     STRING, 
 
-    LITERAL_LANG, LITERAL_DT, INTEGER, DECIMAL, DOUBLE,
+    LITERAL_LANG, LITERAL_DT, INTEGER, DECIMAL, DOUBLE, BOOLEAN,
 
     // Not RDF
     KEYWORD, VAR, HEX,   // Starts with *


Mime
View raw message