|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owl.util.PropertyAssertionValueShortFormProvider
public class PropertyAssertionValueShortFormProvider
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 17-Jun-2007
A short form provider that generates short forms from the values of object
property assertions or data property assertions if the entity is an individual.
If the entity whose short form is not being generated is not an individual
(i.e. it is a class, property etc.) then an alternate short form provider is
used. (As a side note, the use case for this particular short form provider
came from the SKOS community, which have individuals that have preferredLabel
property assertions).
Constructor Summary | |
---|---|
PropertyAssertionValueShortFormProvider(java.util.List<OWLPropertyExpression> properties,
java.util.Map<OWLDataPropertyExpression,java.util.List<java.lang.String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider)
Constructs a property value short form provider. |
|
PropertyAssertionValueShortFormProvider(java.util.List<OWLPropertyExpression> properties,
java.util.Map<OWLDataPropertyExpression,java.util.List<java.lang.String>> preferredLanguageMap,
OWLOntologySetProvider ontologySetProvider,
ShortFormProvider alternateShortFormProvider)
Constructs a property value short form provider. |
Method Summary | |
---|---|
void |
dispose()
Disposes of the short form proivider. |
java.util.Map<OWLDataPropertyExpression,java.util.List<java.lang.String>> |
getPreferredLanguageMap()
|
java.util.List<OWLPropertyExpression> |
getProperties()
|
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 PropertyAssertionValueShortFormProvider(java.util.List<OWLPropertyExpression> properties, java.util.Map<OWLDataPropertyExpression,java.util.List<java.lang.String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider)
SimpleShortFormProvider
as the
alternate short form provider (see other constructor for details).
public PropertyAssertionValueShortFormProvider(java.util.List<OWLPropertyExpression> properties, java.util.Map<OWLDataPropertyExpression,java.util.List<java.lang.String>> preferredLanguageMap, OWLOntologySetProvider ontologySetProvider, ShortFormProvider alternateShortFormProvider)
properties
- A List
of preferred properties. The list is searched from
start to end, so that property assertions whose property is at the start of the list have a higher
priority and are selected over properties that appear towards or at the end of the list.preferredLanguageMap
- A map which maps data properties to preferred languages. For any given
data property there may be a list of preferred languages for the values of that property
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 property values (e.g. class, property). 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<OWLPropertyExpression> getProperties()
public java.util.Map<OWLDataPropertyExpression,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 |