org.semanticweb.owlapi
Class CreateValuePartition
java.lang.Object
org.semanticweb.owlapi.AbstractCompositeOntologyChange
org.semanticweb.owlapi.CreateValuePartition
- All Implemented Interfaces:
- OWLCompositeOntologyChange
public class CreateValuePartition
- extends AbstractCompositeOntologyChange
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 23-Jul-2007
This composite change will create a value partion - see "pattern 2" in
"Representing Specified Values in OWL: "value partitions" and "value sets""
(http://www.w3.org/TR/swbp-specified-values.)
A value partition is an ontology design pattern which is used to represent
a set of closed values for a particular property. For example the property
hasSize might only take values from SmallSize, MediumSize and LargeSize. In
this case, the value partition is Size, and has the values SmallSize, MediumSize
and LargeSize. This composite change will set hasSize to be functional and its
range as Size. Size will be covered by SmallSize, MediumSize and LargeSize and
these classes which represent the values will be made disjoint with eachother.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateValuePartition
public CreateValuePartition(OWLDataFactory dataFactory,
OWLClass valuePartitionClass,
java.util.Set<OWLClass> valuePartionClasses,
OWLObjectProperty valuePartitionProperty,
OWLOntology targetOntology)
- Creates a composite change that will create a value partition.
- Parameters:
dataFactory
- A data factory which can be used to create the necessary axiomsvaluePartitionClass
- The class which represents the value partition.valuePartionClasses
- The classes that represent the various values of the value
partition.valuePartitionProperty
- the property which should be used in conjunction with the
value partition.targetOntology
- The target ontology which the axioms that are necessary to create
the value partition will be added to.
getChanges
public java.util.List<OWLOntologyChange> getChanges()
- Description copied from interface:
OWLCompositeOntologyChange
- Gets the changes which compose this composite change. Once this method
has been invoked, it will always return the same list of changes.
- Returns:
- A list of ontology changes.