|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owl.util.AnnotationValueShortFormProvider
public class AnnotationValueShortFormProvider
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 18-Apr-2007
Constructor Summary | |
---|---|
AnnotationValueShortFormProvider(java.util.List<java.net.URI> annotationURIs,
java.util.Map<java.net.URI,java.util.List<java.lang.String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider)
Constructs an annotation value short form provider. |
|
AnnotationValueShortFormProvider(java.util.List<java.net.URI> annotationURIs,
java.util.Map<java.net.URI,java.util.List<java.lang.String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider,
ShortFormProvider alternateShortFormProvider)
Constructs an annotation short form provider. |
Method Summary | |
---|---|
void |
dispose()
Disposes of the short form proivider. |
java.util.List<java.net.URI> |
getAnnotationURIs()
Gets the annotation URIs that this short form provider uses. |
java.util.Map<java.net.URI,java.util.List<java.lang.String>> |
getPreferredLanguageMap()
|
java.lang.String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationValueShortFormProvider(java.util.List<java.net.URI> annotationURIs, java.util.Map<java.net.URI,java.util.List<java.lang.String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider)
SimpleShortFormProvider
as the
alternate short form provider (see other constructor for details).
public AnnotationValueShortFormProvider(java.util.List<java.net.URI> annotationURIs, java.util.Map<java.net.URI,java.util.List<java.lang.String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider, ShortFormProvider alternateShortFormProvider)
annotationURIs
- A List
of preferred annotation URIs. The list is searched from
start to end, so that annotations that have an annotation URI at the start of the list have a higher
priority and are selected over annotation URIs that appear towards or at the end of the list.preferredLanguageMap
- A map which maps annotation URIs to preferred languages. For any given
annotation URI 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.Method Detail |
---|
public java.lang.String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.
public java.util.List<java.net.URI> getAnnotationURIs()
public java.util.Map<java.net.URI,java.util.List<java.lang.String>> getPreferredLanguageMap()
public void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |