Class AlgResolveIRI

java.lang.Object
org.apache.jena.rfc3986.AlgResolveIRI

public class AlgResolveIRI extends Object
Algorithms for IRIs : resolution
  • Constructor Details

    • AlgResolveIRI

      public AlgResolveIRI()
  • Method Details

    • resolve

      public static IRI3986 resolve(IRI base, IRI reference)
      Resolve an IRI against a base.

      This function includes resolving the path if the scheme of base and the scheme of the reference is the same or both absent.

    • relativize

      public static IRI3986 relativize(IRI base, IRI iri)
      Calculate a relative IRI for a (base, target) pair. Returns null if none generated. The base IRI must not have query string.
    • safeInitalSegment

      public static String safeInitalSegment(String relPath)
      Ensure the relative path satisfies segment-no-nc in it's first segment.