/** * 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)); }
/** * Resolve an IRI against whatever is the base for this process (likely to * be based on the current working directory of this process at the time of * initialization of this class). */ public static IRI resolveIRI(String uriStr) { return exceptions(globalResolver.resolve(uriStr)); }
/** * Resolve an IRI against whatever is the base for this process (likely to * be based on the current working directory of this process at the time of * initialization of this class). */ public static IRI resolveIRI(String uriStr) { return exceptions(globalResolver.resolve(uriStr)) ; }
/** * Resolve a URI against a base. If baseStr is a relative file IRI * then it is first resolved against the current working directory. * * @param relStr * @param baseStr * Can be null if relStr is absolute * @return An absolute URI * @throws RiotException * If result would not be legal, absolute IRI */ static public IRI resolve(String relStr, String baseStr) throws RiotException { return exceptions(resolveIRI(relStr, baseStr)); }
/** * Create resolve a URI against a base. If baseStr is a relative file IRI * then it is first resolved against the current working directory. * * @param relStr * @param baseStr * Can be null if relStr is absolute * @return An absolute URI * @throws RiotException * If result would not be legal, absolute IRI */ static public IRI resolve(String relStr, String baseStr) throws RiotException { return exceptions(resolveIRI(relStr, baseStr)) ; }
/** * Create resolve a URI against a base. If baseStr is a relative file IRI * then it is first resolved against the current working directory. * * @param relStr * @return String An absolute URI * @throws RiotException * If result would not be legal, absolute IRI */ static public String resolveString(String relStr) throws RiotException { return exceptions(resolveIRI(relStr)).toString() ; }
/** * Resolve a URI against the base for this process. 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 * @throws RiotException * If result would not be legal, absolute IRI */ static public String resolveString(String uriStr) throws RiotException { return exceptions(resolveIRI(uriStr)).toString(); }
/** * Resolve a URI against a base. * * @param relStr * @param baseStr * Can be null if relStr is absolute * @return String An absolute URI * @throws RiotException * If result would not be legal, absolute IRI */ static public String resolveString(String relStr, String baseStr) throws RiotException { return exceptions(resolveIRI(relStr, baseStr)).toString(); }
/** * Create resolve a URI against a base. If baseStr is a relative file IRI * then it is first resolved against the current working directory. * * @param relStr * @param baseStr * Can be null if relStr is absolute * @return String An absolute URI * @throws RiotException * If result would not be legal, absolute IRI */ static public String resolveString(String relStr, String baseStr) throws RiotException { return exceptions(resolveIRI(relStr, baseStr)).toString() ; }