Package org.obolibrary.robot.providers
Class CURIEShortFormProvider
- java.lang.Object
-
- org.obolibrary.robot.providers.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 Summary
Constructors Constructor Description CURIEShortFormProvider(Map<String,String> prefix2Ns)
Init a new CURIEShortFormProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose of the ShortFormProviderString
getShortForm(org.semanticweb.owlapi.model.IRI iri)
Get the short form of an IRI as a CURIE.String
getShortForm(org.semanticweb.owlapi.model.OWLEntity entity)
Get the short form of an OWLEntity as a CURIE.List<Map.Entry<String,String>>
getSortedPrefixMap()
Get a copy of the full current curie map.
-
-
-
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 interfaceorg.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 interfaceorg.semanticweb.owlapi.util.ShortFormProvider
-
-