Package com.stardog.stark

# Interface Namespace

All Superinterfaces:
  `Comparable<Namespace>`, `Serializable`

public interface Namespace extends Comparable<Namespace>, 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

  Modifier and Type
  Method
  Description
  `String`
  `iri()`
  The IRI of the namespace
  `String`
  `prefix()`
  The prefix of the namespace

  ### Methods inherited from interface java.lang.Comparable

  `compareTo`

- ## Method Details

  - ### iri

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

  - ### prefix

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