edu.unika.aifb.owltools.metrics
Class MaximalDepth

java.lang.Object
  extended by edu.unika.aifb.owltools.metrics.Metric
      extended by edu.unika.aifb.owltools.metrics.MaximalDepth

public class MaximalDepth
extends Metric

Calculates the longest asserted subsumption path in the class hierarchy. Measure M3, Gangemi et al. TR 9/05


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.metrics.Metric
context, error, metricsURIBase, ontology, result
 
Constructor Summary
MaximalDepth(org.semanticweb.kaon2.api.Ontology ontologyToBeMeasured, java.lang.String URI, org.semanticweb.kaon2.api.Ontology contextOfMeasurement)
           
 
Method Summary
protected  boolean measure()
          Implements the actual measurement
 java.lang.String metricClassDescription()
          Human-readable description of what the metric is measuring.
 java.lang.String metricClassName()
          Human-readable name of the Metric.
 java.lang.String metricClassURI()
          URI for the metric class.
 
Methods inherited from class edu.unika.aifb.owltools.metrics.Metric
getContext, getError, getOntology, getResult, getURI, succesfulMeasurement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaximalDepth

public MaximalDepth(org.semanticweb.kaon2.api.Ontology ontologyToBeMeasured,
                    java.lang.String URI,
                    org.semanticweb.kaon2.api.Ontology contextOfMeasurement)
Method Detail

metricClassName

public java.lang.String metricClassName()
Description copied from class: Metric
Human-readable name of the Metric. Needs to be implemented by all metrics

Specified by:
metricClassName in class Metric
Returns:
Name of the metric

metricClassURI

public java.lang.String metricClassURI()
Description copied from class: Metric
URI for the metric class. Needs to be implemented by all metrics

Specified by:
metricClassURI in class Metric
Returns:
URI of the metric

metricClassDescription

public java.lang.String metricClassDescription()
Description copied from class: Metric
Human-readable description of what the metric is measuring. Needs to be implemented by all metrics

Specified by:
metricClassDescription in class Metric
Returns:
Description of the metric

measure

protected boolean measure()
Description copied from class: Metric
Implements the actual measurement

Specified by:
measure in class Metric
Returns:
true if the evaluation was succesful, else false