Skip to content

Commit

Permalink
JENA-1713: Not a warning or error: NON_INITIAL_DOT_SEGMENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed May 25, 2019
1 parent 1749bd7 commit f043b66
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ public abstract class IRIResolver
printSetting(iriFactoryInst);
}

// Accept any scheme.
setErrorWarning(iriFactoryInst, ViolationCodes.UNREGISTERED_IANA_SCHEME, false, false);

// These are a warning from jena-iri motivated by problems in RDF/XML and also internal processing by IRI
// (IRI.relativize).
// The IRI is valid and does correct resolve when relative.
setErrorWarning(iriFactoryInst, ViolationCodes.NON_INITIAL_DOT_SEGMENT, false, false);

// Turn off?? (ignored in CheckerIRI.iriViolations anyway).
// setErrorWarning(iriFactory, ViolationCodes.LOWERCASE_PREFERRED, false, false);
Expand Down Expand Up @@ -105,6 +111,7 @@ private static void setErrorWarning(IRIFactory factory, int code, boolean isErro
private static void printSetting(IRIFactory factory) {
PrintStream ps = System.out;
printErrorWarning(ps, factory, ViolationCodes.UNREGISTERED_IANA_SCHEME);
printErrorWarning(ps, factory, ViolationCodes.NON_INITIAL_DOT_SEGMENT);
printErrorWarning(ps, factory, ViolationCodes.NOT_NFC);
printErrorWarning(ps, factory, ViolationCodes.NOT_NFKC);
printErrorWarning(ps, factory, ViolationCodes.UNWISE_CHARACTER);
Expand Down

0 comments on commit f043b66

Please sign in to comment.