/** * 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() ; }
IRI iri = IRIResolver.resolveIRI(baseIRI) ; if ( iri.hasViolation(false) ) throw new CmdException("Bad base IRI: " + baseIRI) ;
IRI iri = IRIResolver.resolveIRI(baseIRI) ; if ( iri.hasViolation(false) ) throw new CmdException("Bad base IRI: " + baseIRI) ;
IRI iri = IRIResolver.resolveIRI(baseIRI) ; if ( iri.hasViolation(false) ) throw new CmdException("Bad base IRI: " + baseIRI) ;