Interface IRI

All Superinterfaces:
Resource, 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    The local name of the IRI
    The namespace of the IRI
  • Method Details

    • namespace

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

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