public class AnnotationValueShortFormProvider extends Object implements ShortFormProvider
Constructor and Description |
---|
AnnotationValueShortFormProvider(List<OWLAnnotationProperty> annotationProperties,
Map<OWLAnnotationProperty,List<String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider)
Constructs an annotation value short form provider.
|
AnnotationValueShortFormProvider(List<OWLAnnotationProperty> annotationProperties,
Map<OWLAnnotationProperty,List<String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider,
ShortFormProvider alternateShortFormProvider)
Constructs an annotation short form provider.
|
AnnotationValueShortFormProvider(OWLOntologySetProvider ontologySetProvider,
ShortFormProvider alternateShortFormProvider,
IRIShortFormProvider alternateIRIShortFormProvider,
List<OWLAnnotationProperty> annotationProperties,
Map<OWLAnnotationProperty,List<String>> preferredLanguageMap)
Constructs an annotation short form provider.
|
AnnotationValueShortFormProvider(OWLOntologySetProvider ontologySetProvider,
ShortFormProvider alternateShortFormProvider,
IRIShortFormProvider alternateIRIShortFormProvider,
List<OWLAnnotationProperty> annotationProperties,
Map<OWLAnnotationProperty,List<String>> preferredLanguageMap,
OWLAnnotationValueVisitorEx<String> literalRenderer) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of the short form proivider.
|
List<OWLAnnotationProperty> |
getAnnotationProperties() |
Map<OWLAnnotationProperty,List<String>> |
getPreferredLanguageMap() |
String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity.
|
public AnnotationValueShortFormProvider(List<OWLAnnotationProperty> annotationProperties, Map<OWLAnnotationProperty,List<String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider)
SimpleShortFormProvider
as the alternate short form providerannotationProperties
- A List
of preferred annotation properties. The list is
searched from start to end, so that annotations that have a
property at the start of the list have a higher priority and are
selected over annotations with properties that appear towards or
at the end of the list.preferredLanguageMap
- A map which maps annotation properties to preferred languages. For
any given annotation property there may be a list of preferred
languages. Languages at the start of the list have a higher
priority over languages at the end of the list. This parameter may
be empty but it must not be null
.ontologySetProvider
- An OWLOntologySetProvider
which provides a set of ontology
from which candidate annotation axioms should be taken. For a
given entity, all ontologies are examined.public AnnotationValueShortFormProvider(List<OWLAnnotationProperty> annotationProperties, Map<OWLAnnotationProperty,List<String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider, ShortFormProvider alternateShortFormProvider)
annotationProperties
- A List
of preferred annotation properties. The list is
searched from start to end, so that annotations that have a
property at the start of the list have a higher priority and are
selected over annotations with properties that appear towards or
at the end of the list.preferredLanguageMap
- A map which maps annotation properties to preferred languages. For
any given annotation property there may be a list of preferred
languages. Languages at the start of the list have a higher
priority over languages at the end of the list. This parameter may
be empty but it must not be null
.ontologySetProvider
- An OWLOntologySetProvider
which provides a set of ontology
from which candidate annotation axioms should be taken. For a
given entity, all ontologies are examined.alternateShortFormProvider
- A short form provider which will be used to generate the short
form for an entity that does not have any annotations. This
provider will also be used in the case where the value of an
annotation is an OWLIndividual
for providing the short
form of the individual.public AnnotationValueShortFormProvider(OWLOntologySetProvider ontologySetProvider, ShortFormProvider alternateShortFormProvider, IRIShortFormProvider alternateIRIShortFormProvider, List<OWLAnnotationProperty> annotationProperties, Map<OWLAnnotationProperty,List<String>> preferredLanguageMap)
annotationProperties
- A List
of preferred annotation properties. The list is
searched from start to end, so that annotations that have a
property at the start of the list have a higher priority and are
selected over annotations with properties that appear towards or
at the end of the list.preferredLanguageMap
- A map which maps annotation properties to preferred languages. For
any given annotation property there may be a list of preferred
languages. Languages at the start of the list have a higher
priority over languages at the end of the list. This parameter may
be empty but it must not be null
.ontologySetProvider
- An OWLOntologySetProvider
which provides a set of ontology
from which candidate annotation axioms should be taken. For a
given entity, all ontologies are examined.alternateShortFormProvider
- A short form provider which will be used to generate the short
form for an entity that does not have any annotations. This
provider will also be used in the case where the value of an
annotation is an OWLIndividual
for providing the short
form of the individual.alternateIRIShortFormProvider
- the alternate IRI short form providerpublic AnnotationValueShortFormProvider(OWLOntologySetProvider ontologySetProvider, ShortFormProvider alternateShortFormProvider, IRIShortFormProvider alternateIRIShortFormProvider, List<OWLAnnotationProperty> annotationProperties, Map<OWLAnnotationProperty,List<String>> preferredLanguageMap, OWLAnnotationValueVisitorEx<String> literalRenderer)
ontologySetProvider
- ontologiesalternateShortFormProvider
- short form provideralternateIRIShortFormProvider
- iri short form providerannotationProperties
- annotation propertiespreferredLanguageMap
- preferred language mapliteralRenderer
- literal rendererpublic String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.public List<OWLAnnotationProperty> getAnnotationProperties()
public Map<OWLAnnotationProperty,List<String>> getPreferredLanguageMap()
public void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider
Copyright © 2017 The University of Manchester. All Rights Reserved.