Class QNameShortFormProvider

java.lang.Object
org.semanticweb.owlapi.util.QNameShortFormProvider
All Implemented Interfaces:
ShortFormProvider

public class QNameShortFormProvider extends Object implements ShortFormProvider
A short form provider which creates QNames for entities.
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Constructor Details

    • QNameShortFormProvider

      public QNameShortFormProvider()
      Creates a QNameShortFormProvider where namespace prefix mappings will automatically be generated.
    • QNameShortFormProvider

      public QNameShortFormProvider(Map<String,String> prefix2Ns)
      Creates a QNameShortFormProvider where the specified map overrides any auto-generated prefix namespace mappings.
      Parameters:
      prefix2Ns - The map which contains a prefix to namespace mapping. The prefix must not have a trailing ":"; if one is there, it will be removed
  • Method Details

    • getShortForm

      public String getShortForm(OWLEntity entity)
      Description copied from interface: ShortFormProvider
      Gets the short form for the specified entity.
      Specified by:
      getShortForm in interface ShortFormProvider
      Parameters:
      entity - The entity.
      Returns:
      A string which represents a short rendering of the specified entity. The returned value will not be null but might be an empty string.