/** The current global resolver based on the working directory */ static { IRI cwd; try { cwd = iriFactory.construct(globalBase); } catch (IRIException e) { System.err.println("Unexpected IRIException in initializer: " + e.getMessage()); cwd = iriFactory.create("file:///"); e.printStackTrace(System.err); } globalResolver = new IRIResolverSync(IRIResolver.create(cwd)); }
/** Parse an IRI (does not resolve it) - throws exception on a bad IRI */ public static IRI parseIRIex(String iriStr) throws IRIException { return iriFactory.construct(iriStr); }