Package org.semanticweb.owlapi.util
Interface BidirectionalShortFormProvider
- All Superinterfaces:
ShortFormProvider
- All Known Implementing Classes:
BidirectionalShortFormProviderAdapter
,CachingBidirectionalShortFormProvider
A short form provider which is capable of translating back and forth between entities and their
short forms.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptionFor a given short form this method obtains the entities which have this short form.getEntities
(String shortForm) For a given short form this method obtains the entities which have this short form.A convenience method which gets an entity from its short form.Gets all of the short forms that are mapped to entities.Gets all of the short forms that are mapped to entities.Methods inherited from interface org.semanticweb.owlapi.util.ShortFormProvider
dispose, getShortForm
-
Method Details
-
getEntities
For a given short form this method obtains the entities which have this short form.- Parameters:
shortForm
- The short form of the entities that will be retrieved.- Returns:
- The set of entities that have the specified short form. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
entities
For a given short form this method obtains the entities which have this short form.- Parameters:
shortForm
- The short form of the entities that will be retrieved.- Returns:
- stream of entities that have the specified short form.
-
getEntity
A convenience method which gets an entity from its short form.- Parameters:
shortForm
- The short form of the entity.- Returns:
- The actual entity or
null
if there is no entity which has the specified short form. If the specified short form corresponds to more than one entity then an entity will be chosen by the implementation of the short form provider.
-
getShortForms
Gets all of the short forms that are mapped to entities.- Returns:
- A set which contains the strings representing the short forms of entities for which there is a mapping. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
shortForms
Gets all of the short forms that are mapped to entities.- Returns:
- stream of the strings representing the short forms of entities for which there is a mapping.
-