@Override synchronized public IRI resolveSilent(String uriStr) { return other.resolveSilent(uriStr); } }
@Override synchronized public IRI resolveSilent(String uriStr) { return other.resolveSilent(uriStr) ; } }
/** * Resolve a relative URI against the base of this IRIResolver * or normalize an absolute URI. * * @param uriStr * @return the resolved IRI * @throws RiotException * If resulting URI would not be legal, absolute IRI */ public IRI resolve(String uriStr) { return exceptions(resolveSilent(uriStr)); }
/** * Resolving relative IRIs, return a string, but do not throw exception on * bad a IRI */ public String resolveToStringSilent(String uriStr) { return resolveSilent(uriStr).toString(); }
/** * Resolve a URI against a base. If baseStr is a relative file IRI * then it is first resolved against the current working directory. * If it is an absolute URI, it is normalized. * * @param uriStr * @return String An absolute URI */ static public String resolveStringSilent(String uriStr) throws RiotException { return globalResolver.resolveSilent(uriStr).toString(); }
/** * Resolving relative IRIs, return a string, but do not throw exception on * bad a IRI */ public String resolveToStringSilent(String uriStr) { return resolveSilent(uriStr).toString() ; }
/** * Construct an IRIResolver with base determined by the argument URI. If * this is relative, it is relative against the current working * directory. * * @param baseStr * @throws RiotException * If resulting base unparsable. */ public IRIResolverNormal(String baseStr) { if ( baseStr == null ) base = chooseBaseURI(); else base = globalResolver.resolveSilent(baseStr); }
/** * Construct an IRIResolver with base determined by the argument URI. If * this is relative, it is relative against the current working * directory. * * @param baseS * @throws RiotException * If resulting base unparsable. */ public IRIResolverNormal(String baseS) { if (baseS == null) base = chooseBaseURI() ; else base = globalResolver.resolveSilent(baseS) ; }
@Override public IRI makeIRI(String uriStr, long line, long col) { IRI iri = resolver.resolveSilent(uriStr); // Some specific problems and specific error messages,. if ( uriStr.contains(" ") ) { // Specific check for spaces. errorHandler.warning("Bad IRI: <" + uriStr + "> Spaces are not legal in URIs/IRIs.", line, col); return iri; } if ( !checking ) return iri; // At this point, IRI "errors" are warnings. // A tuned set of checking. CheckerIRI.iriViolations(iri, errorHandler, line, col); return iri; }
@Override public IRI makeIRI(String uriStr, long line, long col) { // resolves, but we handle the errors and warnings. IRI iri = prologue.getResolver().resolveSilent(uriStr) ; CheckerIRI.iriViolations(iri, errorHandler, line, col) ; return iri ; }
protected String resolveIRI(String iriStr, int line, int column) { if ( isBNodeIRI(iriStr) ) return iriStr ; if ( getPrologue() != null ) { if ( getPrologue().getResolver() != null ) try { // Used to be errors (pre Jena 2.12.0) // .resolve(iriStr) IRI iri = getPrologue().getResolver().resolveSilent(iriStr) ; if ( true ) CheckerIRI.iriViolations(iri, errorHandler, line, column) ; iriStr = iri.toString() ; } catch (JenaURIException ex) { throwParseException(ex.getMessage(), line, column) ; } } return iriStr ; }