public class ShortFormFromRDFSLabelAxiomListProvider extends Object implements ShortFormProvider
rdfs:label
annotation values
taken from a list of axioms. A list of preferred annotation URIs and preferred annotation
languages is used to determine which annotation value to select if there are multiple annotations
for the entity whose short form is being generated. If there are multiple annotations the these
annotations are ranked by preferred IRI and then by preferred language.Constructor and Description |
---|
ShortFormFromRDFSLabelAxiomListProvider(List<? extends OWLAxiom> axioms,
ShortFormProvider alternateShortFormProvider,
IRIShortFormProvider alternateIRIShortFormProvider,
List<String> preferredLanguages) |
ShortFormFromRDFSLabelAxiomListProvider(List<String> preferredLanguages,
List<? extends OWLAxiom> axioms)
Constructs an annotation value short form provider.
|
ShortFormFromRDFSLabelAxiomListProvider(List<String> preferredLanguages,
List<? extends OWLAxiom> axioms,
ShortFormProvider alternateShortFormProvider)
Constructs an annotation short form provider.
|
Modifier and Type | Method and Description |
---|---|
String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public ShortFormFromRDFSLabelAxiomListProvider(List<String> preferredLanguages, List<? extends OWLAxiom> axioms)
SimpleShortFormProvider
as
the alternate short form providerpreferredLanguages
- 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
.axioms
- axioms to use.public ShortFormFromRDFSLabelAxiomListProvider(List<String> preferredLanguages, List<? extends OWLAxiom> axioms, ShortFormProvider alternateShortFormProvider)
preferredLanguages
- 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
.axioms
- axioms to use.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 ShortFormFromRDFSLabelAxiomListProvider(List<? extends OWLAxiom> axioms, ShortFormProvider alternateShortFormProvider, IRIShortFormProvider alternateIRIShortFormProvider, List<String> preferredLanguages)
axioms
- axioms to use.alternateShortFormProvider
- short form provideralternateIRIShortFormProvider
- iri short form providerpreferredLanguages
- preferred languagespublic String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.Copyright © 2020 The University of Manchester. All rights reserved.