Class CURIEShortFormProvider

  • All Implemented Interfaces:
    org.semanticweb.owlapi.util.ShortFormProvider

    public class CURIEShortFormProvider
    extends Object
    implements org.semanticweb.owlapi.util.ShortFormProvider
    ShortFormProvider to return CURIEs. Similar to QNameShortFormProvider.
    Author:
    Becky Jackson
    • Constructor Detail

      • CURIEShortFormProvider

        public CURIEShortFormProvider​(Map<String,​String> prefix2Ns)
        Init a new CURIEShortFormProvider
        Parameters:
        prefix2Ns - Map of prefixes to namespaces
    • Method Detail

      • getShortForm

        @Nonnull
        public String getShortForm​(@Nonnull
                                   org.semanticweb.owlapi.model.OWLEntity entity)
        Get the short form of an OWLEntity as a CURIE.
        Specified by:
        getShortForm in interface org.semanticweb.owlapi.util.ShortFormProvider
        Parameters:
        entity - OWLEntity to get short form of
        Returns:
        CURIE
      • getShortForm

        public String getShortForm​(org.semanticweb.owlapi.model.IRI iri)
        Get the short form of an IRI as a CURIE.
        Parameters:
        iri - IRI to get short form of
        Returns:
        CURIE
      • getSortedPrefixMap

        public List<Map.Entry<String,​String>> getSortedPrefixMap()
        Get a copy of the full current curie map.
        Returns:
        sortedPrefixMap
      • dispose

        public void dispose()
        Dispose of the ShortFormProvider
        Specified by:
        dispose in interface org.semanticweb.owlapi.util.ShortFormProvider