org.dllearner.learningproblems
Class EvaluatedDescriptionClass
java.lang.Object
org.dllearner.core.EvaluatedDescription
org.dllearner.learningproblems.EvaluatedDescriptionClass
- All Implemented Interfaces:
- Serializable
public class EvaluatedDescriptionClass
- extends EvaluatedDescription
- implements Serializable
An evaluated description for learning classes in ontologies.
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
EvaluatedDescriptionClass
public EvaluatedDescriptionClass(Description description,
ClassScore score)
- Constructs an evaluated description for learning classes in ontologies.
- Parameters:
description - Description.score - Score of description.
getAddition
public double getAddition()
- Returns:
- The addition factor.
- See Also:
ClassScore.getAddition()
getAdditionalInstances
public Set<Individual> getAdditionalInstances()
- Returns:
- The instances of the class description, which are not instances
of the class to learn.
- See Also:
ClassScore.getAdditionalInstances()
getCoverage
public double getCoverage()
- Returns:
- The coverage percentage.
- See Also:
ClassScore.getCoverage()
getCoveredInstances
public Set<Individual> getCoveredInstances()
- Returns:
- The instances covered by the class description.
- See Also:
ClassScore.getCoveredInstances()
getNotCoveredInstances
public Set<Individual> getNotCoveredInstances()
- Returns:
- The instances of the class not covered by the class description.
- See Also:
ClassScore.getCoveredInstances()
isConsistent
public boolean isConsistent()
- Returns:
- True if adding the axiom to the knowledge base leads to an inconsistent knowledge base. False otherwise.
followsFromKB
public boolean followsFromKB()
- Returns:
- True if adding the axiom to the knowledge base does not logically change the knowledge base (i.e. the axiom already follows from it). False otherwise.
setConsistent
public void setConsistent(boolean isConsistent)
setFollowsFromKB
public void setFollowsFromKB(boolean followsFromKB)
asJSON
public String asJSON()
- This convenience method can be used to store and exchange evaluated
descriptions by transforming them to a JSON string.
- Overrides:
asJSON in class EvaluatedDescription
- Returns:
- A JSON representation of an evaluated description.
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann