/** * Resolve the relative URI str against the current * working directory. * @param str * @return String */ public static String resolveGlobal(String str) { return exceptions(cwd.resolve(str)).toString(); }
/** * Resolve the relative URI against the base of * this IRIResolver. * @param relURI * @return the resolved IRI * @throws JenaURIException * If resulting URI would not be legal, absolute IRI */ public String resolve(String relURI) { return exceptions(base.resolve(relURI)).toString(); }
/** * Resolve the relative URI against the base of * this IRIResolver. * @param relURI * @return the resolved IRI * @throws JenaURIException * If resulting URI would not be legal, absolute IRI */ public String resolve(String relURI) { return exceptions(base.resolve(relURI)).toString(); }
/** * Resolve the relative URI str against the current * working directory. * @param str * @return String */ public static String resolveGlobal(String str) { return exceptions(cwd.resolve(str)).toString(); }
/** * Resolve the relative URI against the base of * this IRIResolver. * @param relURI * @return the resolved IRI * @throws JenaURIException * If resulting URI would not be legal, absolute IRI */ public String resolve(String relURI) { return exceptions(base.resolve(relURI)).toString(); }
/** * Resolve the relative URI str against the current * working directory. * @param str * @return */ public static String resolveGlobal(String str) { return exceptions(cwd.resolve(str)).toString(); }
/** * Turn a filename into a well-formed file: URL relative to the working * directory. * * @param filename * @return String The filename as an absolute URL */ static public String resolveFileURL(String filename) throws IRIException { IRI r = cwd.resolve(filename); if (!r.getScheme().equalsIgnoreCase("file")) { return resolveFileURL("./" + filename); } return r.toString(); }
/** * Turn a filename into a well-formed file: URL relative to the working * directory. * * @param filename * @return String The filename as an absolute URL */ static public String resolveFileURL(String filename) throws IRIException { IRI r = cwd.resolve(filename); if (!r.getScheme().equalsIgnoreCase("file")) { return resolveFileURL("./" + filename); } return r.toString(); }
/** * Turn a filename into a well-formed file: URL relative to the working * directory. * * @param filename * @return String The filename as an absolute URL */ static public String resolveFileURL(String filename) throws IRIException { IRI r = cwd.resolve(filename); if (!r.getScheme().equalsIgnoreCase("file")) { return resolveFileURL("./" + filename); } return r.toString(); }
/** * Resolve the relative URI against the base of this IRIResolver. * * @param relURI * @return the resolved IRI - not checked for violations. */ @Override public IRI resolveSilent(String relURI) { if (resolvedIRIs != null && resolvedIRIs.containsKey(relURI)) return resolvedIRIs.get(relURI) ; IRI iri = base.resolve(relURI) ; if (resolvedIRIs != null) resolvedIRIs.put(relURI, iri) ; return iri ; } }