Interface NamespaceMapper

  • All Superinterfaces:
    org.apache.jena.rdf.model.ModelChangedListener
    All Known Implementing Classes:
    NamespaceMapperJena

    public interface NamespaceMapper
    extends org.apache.jena.rdf.model.ModelChangedListener
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getNamespaceForPrefix​(String prefix)
      Returns the full namespace URI represented by a given abbreviation, or null if not found.
      List<String> getPrefixesForNamespace​(String namespace)
      Returns a list of abbreviations that have been used to represent a given namespace.
      String getPrefixForNamespace​(String namespace)
      Returns the current abbreviation to use for a given namespace, or null if undefined.
      • Methods inherited from interface org.apache.jena.rdf.model.ModelChangedListener

        addedStatement, addedStatements, addedStatements, addedStatements, addedStatements, notifyEvent, removedStatement, removedStatements, removedStatements, removedStatements, removedStatements
    • Method Detail

      • getPrefixForNamespace

        String getPrefixForNamespace​(String namespace)
        Returns the current abbreviation to use for a given namespace, or null if undefined.
        Parameters:
        namespace - Namespace
      • getPrefixesForNamespace

        List<String> getPrefixesForNamespace​(String namespace)
        Returns a list of abbreviations that have been used to represent a given namespace.
        Parameters:
        namespace - Namespace
      • getNamespaceForPrefix

        String getNamespaceForPrefix​(String prefix)
        Returns the full namespace URI represented by a given abbreviation, or null if not found.
        Parameters:
        prefix - Prefix