Interface IRI

  • All Superinterfaces:
    Resource, java.io.Serializable, Value

    @Immutable
    public interface IRI
    extends Resource

    An Internationalized Resource Identifier (IRI) within an RDF graph.

    IRI's generally have two components, a namespace, which is often the URL of the document in which the concept appears and the name of the concept itself. The namespace and local name are tokenized from the complete `String` representation of the IRI as follows:

    * First occurrence of `#` * If not, then last occurrence of `\` * If not, then Last occurrence of `:` For example, the IRI `http://example.org/foo/bar/baz` would have a local name of `baz` and a namespace of `http://example.org/foo/bar/`
    Since:
    0.1
    Version:
    0.1
    Author:
    Michael Grove
    See Also:
    IRIs in RDF, RFC 3987
    • Method Detail

      • namespace

        @Nonnull
        java.lang.String namespace()
        The namespace of the IRI
        Returns:
        the namespace
      • localName

        @Nonnull
        java.lang.String localName()
        The local name of the IRI
        Returns:
        the local name