public class BidirectionalShortFormProviderAdapter
extends org.semanticweb.owlapi.util.CachingBidirectionalShortFormProvider
implements org.semanticweb.owlapi.util.OWLEntitySetProvider<org.semanticweb.owlapi.model.OWLEntity>
| Constructor and Description |
|---|
BidirectionalShortFormProviderAdapter(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider)
Creates a BidirectionalShortFormProvider that maps between the entities that are referenced
in the specified ontologies and the shortforms of these entities.
|
BidirectionalShortFormProviderAdapter(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.util.stream.Stream<org.semanticweb.owlapi.model.OWLEntity> |
entities() |
protected String |
generateShortForm(org.semanticweb.owlapi.model.OWLEntity entity) |
Set<org.semanticweb.owlapi.model.OWLEntity> |
getEntities() |
add, entities, getEntity, getShortForm, rebuild, remove, shortFormspublic BidirectionalShortFormProviderAdapter(org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider)
shortFormProvider - shortFormProviderpublic BidirectionalShortFormProviderAdapter(org.semanticweb.owlapi.model.OWLOntologyManager man,
org.semanticweb.owlapi.util.ShortFormProvider shortFormProvider)
dispose method must be called when the provider has been finished with so that the
provider may remove itself as a listener from the manager.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--shortform mappings based
on whether the specified ontologies contain references to entities or not.protected String generateShortForm(org.semanticweb.owlapi.model.OWLEntity entity)
generateShortForm in class org.semanticweb.owlapi.util.CachingBidirectionalShortFormProviderpublic void dispose()
dispose in interface org.semanticweb.owlapi.util.ShortFormProviderdispose in class org.semanticweb.owlapi.util.CachingBidirectionalShortFormProviderpublic Set<org.semanticweb.owlapi.model.OWLEntity> getEntities()
getEntities in interface org.semanticweb.owlapi.util.OWLEntitySetProvider<org.semanticweb.owlapi.model.OWLEntity>public java.util.stream.Stream<org.semanticweb.owlapi.model.OWLEntity> entities()
entities in interface org.semanticweb.owlapi.util.OWLEntitySetProvider<org.semanticweb.owlapi.model.OWLEntity>Copyright © 2018 The University of Manchester. All Rights Reserved.