public TurtleParserBase() { /* **** temporary **** */ setPrologue(new Prologue()); IRIFactory iriFactory = new IRIFactory(IRIFactory.iriImplementation()); // // These two are from IRIFactory.iriImplementation() ... // iriFactory.useSpecificationIRI(true); // iriFactory.useSchemeSpecificRules("*", true); // // // Allow relative references for file: URLs. // iriFactory.setSameSchemeRelativeReferences("file"); // // DOUBLE_WHITESPACE is misnamed - it applies to last character being a space as well (IRI bug?) //setErrorWarning(iriFactory, ViolationCodes.DOUBLE_WHITESPACE, true, true); setErrorWarning(iriFactory, ViolationCodes.UNWISE_CHARACTER, true, true); setErrorWarning(iriFactory, ViolationCodes.WHITESPACE, true, true); setErrorWarning(iriFactory, ViolationCodes.UNREGISTERED_IANA_SCHEME, false, false); setErrorWarning(iriFactory, ViolationCodes.UNDEFINED_UNICODE_CHARACTER, false, false); IRI iri = iriFactory.create(IRIResolver.chooseBaseURI()); IRIResolver resolver = IRIResolver.create(iri); getPrologue().setResolver(IRIResolver.create(iri)); }
public static final IRIFactory iriFactory = new IRIFactory() ; private static boolean showExceptions = true ; static {