-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRI3986relativeAbsolutePath(IRI base, IRI target) Calculate a relative URI as a absolute path, if possible.static IRI3986relativeParentPath(IRI base, IRI target) static IRI3986relativePath(IRI base, IRI target) Calculate a relative URI as a relative child path of the base.static IRI3986relativeResource(IRI base, IRI target) Calculate a relative URI as a same-place (scheme, authority) resource, if possible.static IRI3986relativeSameDocument(IRI base, IRI target) Calculate a "same document" relative URI, if possible.static IRI3986relativeScheme(IRI base, IRI target) Calculate a "same scheme" relative URI, if possible.
-
Constructor Details
-
AlgRelativizeIRI
public AlgRelativizeIRI()
-
-
Method Details
-
relativeScheme
Calculate a "same scheme" relative URI, if possible.The IRIs have the same scheme.
The relative URI is the "//" part onwards of the target. -
relativeResource
Calculate a relative URI as a same-place (scheme, authority) resource, if possible.The IRIs have the same scheme and authority.
The base does not have a query string.
The relative URI is the path, query and fragment of the target. -
relativeAbsolutePath
Calculate a relative URI as a absolute path, if possible.That is, the IRIs have the same scheme and authority. The base does not have a query string. The relative URI is the path, query and fragment of the target.
-
relativeSameDocument
Calculate a "same document" relative URI, if possible.That is, the IRIs refer to the same document (same scheme, authority, path and query string) and the relative URI is the fragment of the target if it has one.
The base must have a scheme and not have a query string.
Return null if the target does not have a fragment.
-
relativePath
Calculate a relative URI as a relative child path of the base.The base must have scheme.
The IRIs have the same scheme and authority.
The base has a path which is a prefix of the target.
The relative URI is the remainder of the path, query and fragment of the target.
The relative path may be "" leading to "?query#frag" or "#frag" The relative path does go up: it does not start with "..". SeerelativeParentPath(IRI, IRI). -
relativeParentPath
-