Skip to content

Commit

Permalink
Comments about possible setting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Jan 27, 2015
1 parent 333a554 commit 9213a35
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions jena-arq/src/main/java/org/apache/jena/riot/system/IRIResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 9213a35

Please sign in to comment.