public class RhoDRDown extends RefinementOperatorAdapter implements Component, CustomHierarchyRefinementOperator, CustomStartRefinementOperator, ReasoningBasedRefinementOperator
Utility
in a modified
form to make it accessible for implementations of other refinement
operators. These utility methods may be completed and carefully
integrated back later.Modifier and Type | Field and Description |
---|---|
long |
mComputationTimeNs |
long |
topComputationTimeNs |
Constructor and Description |
---|
RhoDRDown() |
RhoDRDown(RhoDRDown op)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIntersection(org.semanticweb.owlapi.model.OWLObjectIntersectionOf intersection) |
int |
getCardinalityLimit() |
SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> |
getClassCandidates(org.semanticweb.owlapi.model.OWLClassExpression index) |
DatatypePropertyHierarchy |
getDataPropertyHierarchy() |
int |
getFrequencyThreshold() |
OWLClassExpressionLengthMetric |
getLengthMetric() |
int |
getMaxNrOfSplits() |
SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> |
getNegClassCandidates(org.semanticweb.owlapi.model.OWLClassExpression index) |
ObjectPropertyHierarchy |
getObjectPropertyHierarchy() |
AbstractReasonerComponent |
getReasoner() |
org.semanticweb.owlapi.model.OWLClassExpression |
getStartClass() |
ClassHierarchy |
getSubHierarchy() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isApplyAllFilter() |
boolean |
isApplyExistsFilter() |
boolean |
isDisjointChecks() |
boolean |
isInstanceBasedDisjoints() |
boolean |
isUseAllConstructor() |
boolean |
isUseBooleanDatatypes() |
boolean |
isUseCardinalityRestrictions() |
boolean |
isUseDataHasValueConstructor() |
boolean |
isUseExistsConstructor() |
boolean |
isUseHasSelf() |
boolean |
isUseHasValueConstructor() |
boolean |
isUseNegation() |
boolean |
isUseNumericDatatypes() |
boolean |
isUseStringDatatypes() |
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression concept)
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.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
refine(org.semanticweb.owlapi.model.OWLClassExpression description,
int maxLength,
List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements,
org.semanticweb.owlapi.model.OWLClassExpression currDomain) |
void |
setApplyAllFilter(boolean applyAllFilter) |
void |
setApplyExistsFilter(boolean applyExistsFilter) |
void |
setCardinalityLimit(int cardinalityLimit) |
void |
setClassHierarchy(ClassHierarchy classHierarchy) |
void |
setDataPropertyHierarchy(DatatypePropertyHierarchy dataPropertyHierarchy) |
void |
setDisjointChecks(boolean disjointChecks) |
void |
setDropDisjuncts(boolean dropDisjuncts)
By default, the operator does not specialize e.g.
|
void |
setFrequencyThreshold(int frequencyThreshold) |
void |
setInstanceBasedDisjoints(boolean instanceBasedDisjoints) |
void |
setLengthMetric(OWLClassExpressionLengthMetric lengthMetric) |
void |
setMaxNrOfSplits(int maxNrOfSplits) |
void |
setNumericValuesSplitter(ValuesSplitter numericValuesSplitter)
Set the splitter used to precompute possible splits for data properties with numeric ranges.
|
void |
setObjectPropertyHierarchy(ObjectPropertyHierarchy objectPropertyHierarchy) |
void |
setReasoner(AbstractReasonerComponent reasoner) |
void |
setReasoner(Reasoner reasoner) |
void |
setStartClass(org.semanticweb.owlapi.model.OWLClassExpression startClass) |
void |
setSubHierarchy(ClassHierarchy subHierarchy) |
void |
setUseAllConstructor(boolean useAllConstructor) |
void |
setUseBooleanDatatypes(boolean useBooleanDatatypes) |
void |
setUseCardinalityRestrictions(boolean useCardinalityRestrictions) |
void |
setUseDataHasValueConstructor(boolean useDataHasValueConstructor) |
void |
setUseExistsConstructor(boolean useExistsConstructor) |
void |
setUseHasSelf(boolean useHasSelf) |
void |
setUseHasValueConstructor(boolean useHasValueConstructor) |
void |
setUseInverse(boolean useInverse) |
void |
setUseNegation(boolean useNegation) |
void |
setUseNumericDatatypes(boolean useNumericDatatypes) |
void |
setUseObjectValueNegation(boolean useObjectValueNegation) |
void |
setUseSomeOnly(boolean useSomeOnly) |
void |
setUseStringDatatypes(boolean useStringDatatypes) |
void |
setUseTimeDatatypes(boolean useTimeDatatypes) |
isInitialized
public long mComputationTimeNs
public long topComputationTimeNs
public RhoDRDown()
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 concept)
RefinementOperator
refine
in interface RefinementOperator
refine
in class RefinementOperatorAdapter
concept
- 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
refine
in class RefinementOperatorAdapter
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
refine
in class RefinementOperatorAdapter
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 Set<org.semanticweb.owlapi.model.OWLClassExpression> refine(org.semanticweb.owlapi.model.OWLClassExpression description, int maxLength, List<org.semanticweb.owlapi.model.OWLClassExpression> knownRefinements, org.semanticweb.owlapi.model.OWLClassExpression currDomain)
public static boolean checkIntersection(org.semanticweb.owlapi.model.OWLObjectIntersectionOf intersection)
public void setDropDisjuncts(boolean dropDisjuncts)
dropDisjuncts
- Whether to remove disjuncts in refinement process.public SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> getClassCandidates(org.semanticweb.owlapi.model.OWLClassExpression index)
public SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> getNegClassCandidates(org.semanticweb.owlapi.model.OWLClassExpression index)
public int getFrequencyThreshold()
public void setFrequencyThreshold(int frequencyThreshold)
public boolean isUseDataHasValueConstructor()
public void setUseDataHasValueConstructor(boolean useDataHasValueConstructor)
public boolean isApplyAllFilter()
public void setApplyAllFilter(boolean applyAllFilter)
public boolean isApplyExistsFilter()
public void setApplyExistsFilter(boolean applyExistsFilter)
public boolean isUseAllConstructor()
public void setUseAllConstructor(boolean useAllConstructor)
public boolean isUseExistsConstructor()
public void setUseExistsConstructor(boolean useExistsConstructor)
public boolean isUseHasValueConstructor()
public void setUseHasValueConstructor(boolean useHasValueConstructor)
public boolean isUseCardinalityRestrictions()
public void setUseCardinalityRestrictions(boolean useCardinalityRestrictions)
public boolean isUseHasSelf()
public void setUseHasSelf(boolean useHasSelf)
public boolean isUseNegation()
public void setUseNegation(boolean useNegation)
public boolean isUseBooleanDatatypes()
public void setUseBooleanDatatypes(boolean useBooleanDatatypes)
public boolean isUseStringDatatypes()
public void setUseStringDatatypes(boolean useStringDatatypes)
public boolean isInstanceBasedDisjoints()
public void setInstanceBasedDisjoints(boolean instanceBasedDisjoints)
public AbstractReasonerComponent getReasoner()
@Autowired public void setReasoner(AbstractReasonerComponent reasoner)
public ClassHierarchy getSubHierarchy()
public void setSubHierarchy(ClassHierarchy subHierarchy)
public org.semanticweb.owlapi.model.OWLClassExpression getStartClass()
public void setStartClass(org.semanticweb.owlapi.model.OWLClassExpression startClass)
setStartClass
in interface CustomStartRefinementOperator
public int getCardinalityLimit()
public void setCardinalityLimit(int cardinalityLimit)
public ObjectPropertyHierarchy getObjectPropertyHierarchy()
public void setObjectPropertyHierarchy(ObjectPropertyHierarchy objectPropertyHierarchy)
setObjectPropertyHierarchy
in interface CustomHierarchyRefinementOperator
public DatatypePropertyHierarchy getDataPropertyHierarchy()
public void setDataPropertyHierarchy(DatatypePropertyHierarchy dataPropertyHierarchy)
setDataPropertyHierarchy
in interface CustomHierarchyRefinementOperator
public void setReasoner(Reasoner reasoner)
setReasoner
in interface ReasoningBasedRefinementOperator
public void setClassHierarchy(ClassHierarchy classHierarchy)
setClassHierarchy
in interface CustomHierarchyRefinementOperator
public void setUseObjectValueNegation(boolean useObjectValueNegation)
useObjectValueNegation
- the useObjectValueNegation to setpublic boolean isUseNumericDatatypes()
public void setUseNumericDatatypes(boolean useNumericDatatypes)
public void setUseInverse(boolean useInverse)
useInverse
- whether to use inverse properties in property restrictionspublic void setUseSomeOnly(boolean useSomeOnly)
useSomeOnly
- whether to allow universal restrictions on a property r only if there exists already
a existential restriction on the same property in an intersectionpublic void setUseTimeDatatypes(boolean useTimeDatatypes)
useTimeDatatypes
- whether to use data/time literal restrictionspublic int getMaxNrOfSplits()
public void setMaxNrOfSplits(int maxNrOfSplits)
public boolean isDisjointChecks()
public void setDisjointChecks(boolean disjointChecks)
public OWLClassExpressionLengthMetric getLengthMetric()
getLengthMetric
in interface LengthLimitedRefinementOperator
getLengthMetric
in class RefinementOperatorAdapter
public void setLengthMetric(OWLClassExpressionLengthMetric lengthMetric)
setLengthMetric
in interface LengthLimitedRefinementOperator
setLengthMetric
in class RefinementOperatorAdapter
public void setNumericValuesSplitter(ValuesSplitter numericValuesSplitter)
numericValuesSplitter
- DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann