public class SynchronizedRefinementOperator extends AbstractRefinementOperator implements LengthLimitedRefinementOperator
Constructor and Description |
---|
SynchronizedRefinementOperator(LengthLimitedRefinementOperator delegate) |
Modifier and Type | Method and Description |
---|---|
LengthLimitedRefinementOperator |
getDelegate() |
OWLClassExpressionLengthMetric |
getLengthMetric() |
void |
init()
Method to be called after the component has been configured.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression description)
Standard refinement operation.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression description,
int maxLength)
Optional refinement operation, where the learning algorithm can
specify an additional bound on the length of descriptions.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression description,
int maxLength,
List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements)
Optional refinement operation, where the learning algorithm can
specify an additional bound on the length of descriptions and
a list of known refinements, which do not need to be returned.
|
void |
setLengthMetric(OWLClassExpressionLengthMetric lengthMetric) |
isInitialized
public SynchronizedRefinementOperator(LengthLimitedRefinementOperator delegate)
public void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression description)
RefinementOperator
refine
in interface RefinementOperator
description
- The description, which will be refined.public Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression description, int maxLength)
LengthLimitedRefinementOperator
refine
in interface LengthLimitedRefinementOperator
description
- The description, which will be refined.maxLength
- The maximum length of returned description, where length is defined by OWLClassExpressionUtils.getLength(OWLClassExpression)
}.public Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression description, int maxLength, List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements)
LengthLimitedRefinementOperator
refine
in interface LengthLimitedRefinementOperator
description
- The description, which will be refined.maxLength
- The maximum length of returned description, where length is defined by OWLClassExpressionUtils.getLength(OWLClassExpression)
.knownRefinements
- A collection of known refinements, which do not need to be returned.public void setLengthMetric(OWLClassExpressionLengthMetric lengthMetric)
setLengthMetric
in interface LengthLimitedRefinementOperator
public OWLClassExpressionLengthMetric getLengthMetric()
getLengthMetric
in interface LengthLimitedRefinementOperator
public LengthLimitedRefinementOperator getDelegate()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann