Interface IRIProvider

All Known Implementing Classes:
IRIProvider3986, IRIProviderAny, IRIProviderJDK, IRIProviderJenaIRI

public interface IRIProvider
Provider: an implementation of a factory for IRIs. This is not an application interface - is the plugin for the provider to jena.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    check(String iriStr)
    Check an IRI, throw IRIException if the string does not conform to the grammar of RFC 3986/3987, or violates additional rules of a URI scheme know to the provider.
    Create an IRI, throw IRIException if the string does not conform to the grammar of RFC 3986/3987.
    boolean
     
    void
    strictMode(String scheme, boolean runStrict)
    Run in strict mode for a given URI scheme - the exact definition of "strict" depends on the provider.
  • Method Details

    • create

      IRIx create(String iri) throws IRIException
      Create an IRI, throw IRIException if the string does not conform to the grammar of RFC 3986/3987.

      The returned IRIx may have additional information about violations of URI schemes; these do not cause an exception.

      Throws:
      IRIException
    • check

      void check(String iriStr) throws IRIException
      Check an IRI, throw IRIException if the string does not conform to the grammar of RFC 3986/3987, or violates additional rules of a URI scheme know to the provider.
      Throws:
      IRIException
    • strictMode

      void strictMode(String scheme, boolean runStrict)
      Run in strict mode for a given URI scheme - the exact definition of "strict" depends on the provider. When strict, a provider should implement to the letter of the specifications, including URI-scheme rules. This strictness should be documented.
    • isStrictMode

      boolean isStrictMode(String scheme)