Class Vocabularies.VocabularyNamespace

java.lang.Object
org.eclipse.rdf4j.model.base.AbstractNamespace
org.eclipse.rdf4j.model.vocabulary.Vocabularies.VocabularyNamespace
All Implemented Interfaces:
Serializable, Comparable<Namespace>, Namespace
Enclosing class:
Vocabularies

private static class Vocabularies.VocabularyNamespace extends AbstractNamespace
  • Field Details

    • prefix

      private final String prefix
    • namespace

      private final String namespace
  • Constructor Details

    • VocabularyNamespace

      public VocabularyNamespace(String prefix, String namespace)
  • Method Details

    • getPrefix

      public String getPrefix()
      Description copied from interface: Namespace
      Gets the prefix of the current namespace. The default namespace is represented by an empty prefix string.
      Returns:
      prefix of namespace, or an empty string in case of the default namespace.
    • getName

      public String getName()
      Description copied from interface: Namespace
      Gets the name of the current namespace (i.e. its IRI).
      Returns:
      name of namespace