Exemple #1
0
 private IRI resolveSilentNoCache(String uriStr) {
   IRI x = IRIResolver.iriFactory.create(uriStr);
   if (SysRIOT.AbsURINoNormalization) {
     // Always process "file:", even in strict mode.
     // file: is widely used in irregular forms.
     if (x.isAbsolute() && !uriStr.startsWith("file:")) return x;
   }
   return base.create(x);
 }
Exemple #2
0
  /*
   * No exception thrown by this method.
   */
  private static IRI resolveIRI(String relStr, String baseStr) {
    IRI i = iriFactory.create(relStr);
    if (i.isAbsolute())
      // removes excess . segments
      return globalResolver.getBaseIRI().create(i);

    IRI base = iriFactory.create(baseStr);

    if ("file".equalsIgnoreCase(base.getScheme())) return globalResolver.getBaseIRI().create(i);
    return base.create(i);
  }