org.dllearner.learningproblems
Class EvaluatedDescriptionClass

java.lang.Object
  extended by org.dllearner.core.EvaluatedDescription
      extended by 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

Constructor Summary
EvaluatedDescriptionClass(Description description, ClassScore score)
          Constructs an evaluated description for learning classes in ontologies.
 
Method Summary
 String asJSON()
          This convenience method can be used to store and exchange evaluated descriptions by transforming them to a JSON string.
 boolean followsFromKB()
           
 double getAddition()
           
 Set<Individual> getAdditionalInstances()
           
 double getCoverage()
           
 Set<Individual> getCoveredInstances()
           
 Set<Individual> getNotCoveredInstances()
           
 boolean isConsistent()
           
 void setConsistent(boolean isConsistent)
           
 void setFollowsFromKB(boolean followsFromKB)
           
 
Methods inherited from class org.dllearner.core.EvaluatedDescription
getAccuracy, getDescription, getDescriptionDepth, getDescriptionLength, getSparqlQuery, setDescription, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluatedDescriptionClass

public EvaluatedDescriptionClass(Description description,
                                 ClassScore score)
Constructs an evaluated description for learning classes in ontologies.

Parameters:
description - Description.
score - Score of description.
Method Detail

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.


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann