fr.inrialpes.exmo.ontosim.align
Class ASShortestPathMeasure
java.lang.Object
fr.inrialpes.exmo.ontosim.align.AbstractAlignmentSpaceMeasure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
fr.inrialpes.exmo.ontosim.align.ASShortestPathMeasure
- All Implemented Interfaces:
- AlignmentSpaceMeasure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>, Measure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
- Direct Known Subclasses:
- ASAlignmentPathMeasure
public class ASShortestPathMeasure
- extends AbstractAlignmentSpaceMeasure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
A measure between ontologies in the alignment space depending of the length of the shortest path between the ontologies.
This measure is directed, i.e., it is not symmetric
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inited
private boolean inited
modality
protected ASShortestPathMeasure.NORM modality
size
protected int size
norm
protected int norm
diameter
protected int diameter
index
protected Hashtable<URI,Integer> index
matrix
protected int[][] matrix
ASShortestPathMeasure
public ASShortestPathMeasure(org.semanticweb.owl.align.OntologyNetwork noo)
ASShortestPathMeasure
public ASShortestPathMeasure()
getMType
public Measure.TYPES getMType()
getNormModality
public ASShortestPathMeasure.NORM getNormModality()
setNormModality
public void setNormModality(ASShortestPathMeasure.NORM mod)
getValue
public int getValue(fr.inrialpes.exmo.ontowrap.Ontology o1,
fr.inrialpes.exmo.ontowrap.Ontology o2)
setAlignmentSpace
public void setAlignmentSpace(org.semanticweb.owl.align.OntologyNetwork noo)
- Specified by:
setAlignmentSpace
in interface AlignmentSpaceMeasure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
- Overrides:
setAlignmentSpace
in class AbstractAlignmentSpaceMeasure<fr.inrialpes.exmo.ontowrap.LoadedOntology<?>>
getMeasureValue
public double getMeasureValue(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
getSim
public double getSim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
getDissim
public double getDissim(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o1,
fr.inrialpes.exmo.ontowrap.LoadedOntology<?> o2)
init
private void init()
throws OntoSimException
- This function does compute the values for all
- Throws:
OntoSimException
(C) INRIA, UPMF & friends, 2008-2011