You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2019/09/22 08:51:24 UTC
[jena] branch master updated: JENA-864: Switch off checking for
NFKC and unicode compatibility chars
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/master by this push:
new c07209c JENA-864: Switch off checking for NFKC and unicode compatibility chars
new e147e1c Merge pull request #607 from afs/jena864_NFC
c07209c is described below
commit c07209c736b0a90b2ae523383ffe764ba57fd00c
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Fri Sep 20 15:47:36 2019 +0100
JENA-864: Switch off checking for NFKC and unicode compatibility chars
---
.../java/org/apache/jena/riot/system/IRIResolver.java | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
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 8b7224d..bf76991 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
@@ -71,13 +71,18 @@ public abstract class IRIResolver
// NFC tests are not well understood by general developers and these cause confusion.
// See JENA-864
- //iriFactory.setIsError(ViolationCodes.NOT_NFC, false);
- //iriFactory.setIsError(ViolationCodes.NOT_NFKC, false);
- //iriFactory.setIsWarning(ViolationCodes.NOT_NFC, false);
- //iriFactory.setIsWarning(ViolationCodes.NOT_NFKC, false);
+
+ // NFC is in RDF 1.1 so do test for that.
+ // https://www.w3.org/TR/rdf11-concepts/#section-IRIs
+ // Leave switched on as a warning.
+ //setErrorWarning(iriFactoryInst, ViolationCodes.NOT_NFC, false, false);
- // ** Applies to various unicode blocks.
- // setErrorWarning(iriFactory, ViolationCodes.COMPATIBILITY_CHARACTER, false, false);
+ // NFKC is not mentioned in RDF 1.1. Switch off.
+ setErrorWarning(iriFactoryInst, ViolationCodes.NOT_NFKC, false, false);
+
+ // ** Applies to various unicode blocks.
+ // Don't apply these tests.
+ setErrorWarning(iriFactoryInst, ViolationCodes.COMPATIBILITY_CHARACTER, false, false);
// This causes test failures.
// The tests catch warnings and a warning is expected.