Interface Namespace

  • All Superinterfaces:
    java.lang.Comparable<Namespace>, java.io.Serializable

    public interface Namespace
    extends java.lang.Comparable<Namespace>, java.io.Serializable

    A namespace; an IRI and prefix pair that can be used during serialization to shorten a IRI to a `QName`. The iri() corresponds to the IRI.namespace() of an `IRI`.

    Since:
    0.1
    Version:
    0.1
    Author:
    Michael Grove
    See Also:
    Namespaces in RDF
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String iri()
      The IRI of the namespace
      java.lang.String prefix()
      The prefix of the namespace
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • iri

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

        @Nonnull
        java.lang.String prefix()
        The prefix of the namespace
        Returns:
        the prefix