jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [4/4] jena git commit: Comments about possible setting changes.
Date Tue, 27 Jan 2015 11:58:04 GMT
Comments about possible setting changes.

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

Branch: refs/heads/master
Commit: 9213a355f4be0e83d95743fdaf8cc118f3f50eb5
Parents: 333a554
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Jan 27 11:57:50 2015 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Jan 27 11:57:50 2015 +0000

----------------------------------------------------------------------
 .../apache/jena/riot/system/IRIResolver.java    | 27 ++++++++++----------
 1 file changed, 14 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/9213a355/jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java b/jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java
index de2ac09..5e01130 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java
@@ -44,24 +44,25 @@ public abstract class IRIResolver
         // Allow relative references for file: URLs.
         iriFactory.setSameSchemeRelativeReferences("file") ;
 
+        iriFactory.setIsError(ViolationCodes.UNREGISTERED_IANA_SCHEME, false) ;
+        iriFactory.setIsWarning(ViolationCodes.UNREGISTERED_IANA_SCHEME, false) ;
+
         // iriFactory.shouldViolation(false,true);
+        
+        // ** Consider not applying NFC tests
+        //iriFactory.setIsError(ViolationCodes.NOT_NFC, false) ;
+        //iriFactory.setIsError(ViolationCodes.NOT_NFKC, false) ;
+
+        // ** Consider not applying -- applies to various unicode blocks. 
+        // iriFactory.setIsError(ViolationCodes.COMPATIBILITY_CHARACTER, false) ;
 
         // Moderate it -- allow unwise chars and any scheme name.
         // iriFactory.setIsError(ViolationCodes.UNWISE_CHARACTER,false);
         // iriFactory.setIsWarning(ViolationCodes.UNWISE_CHARACTER,false);
-
-        // Various errors for unicode conditions.
-        // iriFactory.setIsError(ViolationCodes.NOT_NFC, false) ;
-        // iriFactory.setIsError(ViolationCodes.NOT_NFKC, false) ;
-        // iriFactory.setIsError(ViolationCodes.UNDEFINED_UNICODE_CHARACTER,
-        // false) ;
-        // iriFactory.setIsError(ViolationCodes.UNASSIGNED_UNICODE_CHARACTER,
-        // false) ;
-        // iriFactory.setIsError(ViolationCodes.COMPATIBILITY_CHARACTER, false)
-        // ;
-
-        iriFactory.setIsError(ViolationCodes.UNREGISTERED_IANA_SCHEME, false) ;
-        iriFactory.setIsWarning(ViolationCodes.UNREGISTERED_IANA_SCHEME, false) ;
+        
+        // iriFactory.setIsError(ViolationCodes.UNDEFINED_UNICODE_CHARACTER, false) ;
+        // iriFactory.setIsError(ViolationCodes.UNASSIGNED_UNICODE_CHARACTER, false) ;
+        
     }
 
     /** Check an IRI string (does not resolve it) */


Mime
View raw message