Package org.semanticweb.owlapi.util
Class BidirectionalShortFormProviderAdapter
java.lang.Object
org.semanticweb.owlapi.util.CachingBidirectionalShortFormProvider
org.semanticweb.owlapi.util.BidirectionalShortFormProviderAdapter
- All Implemented Interfaces:
BidirectionalShortFormProvider
,ShortFormProvider
A bidirectional short form provider which uses a specified short form provider to generate the
bidirectional entity--short form mappings.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionBidirectionalShortFormProviderAdapter
(Collection<OWLOntology> ontologies, ShortFormProvider shortFormProvider) Creates a BidirectionalShortFormProvider that maps between the entities that are referenced in the specified ontologies and the short forms of these entities.BidirectionalShortFormProviderAdapter
(OWLOntologyManager man, Collection<OWLOntology> ontologies, ShortFormProvider shortFormProvider) Creates a BidirectionalShortFormProvider that maps between the entities that are referenced in the specified ontologies and the short forms of these entities.BidirectionalShortFormProviderAdapter
(ShortFormProvider shortFormProvider) -
Method Summary
Methods inherited from class org.semanticweb.owlapi.util.CachingBidirectionalShortFormProvider
add, entities, getEntity, getShortForm, shortForms
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.util.BidirectionalShortFormProvider
getEntities, getShortForms
-
Constructor Details
-
BidirectionalShortFormProviderAdapter
- Parameters:
shortFormProvider
- the short form provider to use
-
BidirectionalShortFormProviderAdapter
public BidirectionalShortFormProviderAdapter(Collection<OWLOntology> ontologies, ShortFormProvider shortFormProvider) Creates a BidirectionalShortFormProvider that maps between the entities that are referenced in the specified ontologies and the short forms of these entities.- Parameters:
ontologies
- The ontologies that contain references to the entities to be mapped.shortFormProvider
- The short form provider that should be used to generate the short forms of the referenced entities.
-
BidirectionalShortFormProviderAdapter
public BidirectionalShortFormProviderAdapter(OWLOntologyManager man, Collection<OWLOntology> ontologies, ShortFormProvider shortFormProvider) Creates a BidirectionalShortFormProvider that maps between the entities that are referenced in the specified ontologies and the short forms of these entities. Note that thedispose
method must be called when the provider has been finished with so that the provider may remove itself as a listener from the manager.- Parameters:
ontologies
- The ontologies that contain references to the entities to be mapped.shortFormProvider
- The short form provider that should be used to generate the short forms of the referenced entities.man
- This short form provider will track changes to ontologies. The provider will listen for ontology changes and update the cache of entity--short form mappings based on whether the specified ontologies contain references to entities or not.
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:ShortFormProvider
Disposes of the short form provider. This frees any resources and clears any caches.- Specified by:
dispose
in interfaceShortFormProvider
- Overrides:
dispose
in classCachingBidirectionalShortFormProvider
-