INRIA & UMontrŽal

fr.inrialpes.exmo.align.impl
Class BasicAlignment

java.lang.Object
  |
  +--fr.inrialpes.exmo.align.impl.BasicAlignment
All Implemented Interfaces:
Alignment
Direct Known Subclasses:
ClassNameEqAlignment, EditDistNameAlignment, NameEqAlignment

public class BasicAlignment
extends java.lang.Object
implements Alignment

Represents an OWL ontology alignment. An ontology comprises a number of collections. Each ontology has a number of classes, properties and individuals, along with a number of axioms asserting information about those objects.

Version:
$Id: BasicAlignment.java,v 1.1.1.1 2004/01/22 14:31:06 euzenat Exp $
Author:
Jérôme Euzenat

Field Summary
protected  java.util.Hashtable hash1
           
protected  java.util.Hashtable hash2
           
protected  OWLOntology onto1
           
protected  OWLOntology onto2
           
protected  java.lang.String type
           
 
Constructor Summary
BasicAlignment()
           
 
Method Summary
 void addAlignCell(OWLEntity ob1, OWLEntity ob2)
           
 void addAlignCell(OWLEntity ob1, OWLEntity ob2, java.lang.String relation, double measure)
          Cell methods
 void cut(double threshold)
          The cut function suppresses from an alignment all the cell over a particulat threshold
 void dump(org.xml.sax.ContentHandler h)
          Housekeeping
 double getAlignedMeasure1(OWLEntity ob)
           
 double getAlignedMeasure2(OWLEntity ob)
           
 OWLEntity getAlignedObject1(OWLEntity ob)
          Each part of the cell can be queried independently.
 OWLEntity getAlignedObject2(OWLEntity ob)
           
 Relation getAlignedRelation1(OWLEntity ob)
           
 Relation getAlignedRelation2(OWLEntity ob)
           
 OWLOntology getOntology1()
          Alignment methods
 OWLOntology getOntology2()
           
 java.lang.String getType()
           
protected  void init(OWLOntology onto1, OWLOntology onto2)
           
 void setOntology1(OWLOntology ontology)
           
 void setOntology2(OWLOntology ontology)
           
 void setType(java.lang.String type)
          Alignment type: Currently defined a sa String.
 void write(java.io.PrintStream writer)
          New version corresponding to the RDF/XML/OWL DTD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

onto1

protected OWLOntology onto1

onto2

protected OWLOntology onto2

hash1

protected java.util.Hashtable hash1

hash2

protected java.util.Hashtable hash2
Constructor Detail

BasicAlignment

public BasicAlignment()
Method Detail

init

protected void init(OWLOntology onto1,
                    OWLOntology onto2)

getOntology1

public OWLOntology getOntology1()
Alignment methods

Specified by:
getOntology1 in interface Alignment

getOntology2

public OWLOntology getOntology2()
Specified by:
getOntology2 in interface Alignment

setOntology1

public void setOntology1(OWLOntology ontology)
Specified by:
setOntology1 in interface Alignment

setOntology2

public void setOntology2(OWLOntology ontology)
Specified by:
setOntology2 in interface Alignment

setType

public void setType(java.lang.String type)
Description copied from interface: Alignment
Alignment type: Currently defined a sa String. This string is supposed to contain two characters: among ?, 1, *, + Can be implemented otherwise

Specified by:
setType in interface Alignment

getType

public java.lang.String getType()
Specified by:
getType in interface Alignment

addAlignCell

public void addAlignCell(OWLEntity ob1,
                         OWLEntity ob2,
                         java.lang.String relation,
                         double measure)
                  throws OWLException
Cell methods

Specified by:
addAlignCell in interface Alignment
OWLException

addAlignCell

public void addAlignCell(OWLEntity ob1,
                         OWLEntity ob2)
                  throws OWLException
Specified by:
addAlignCell in interface Alignment
OWLException

getAlignedObject1

public OWLEntity getAlignedObject1(OWLEntity ob)
                            throws OWLException
Description copied from interface: Alignment
Each part of the cell can be queried independently. There is not cell access out of the alignment objects.

Specified by:
getAlignedObject1 in interface Alignment
OWLException

getAlignedObject2

public OWLEntity getAlignedObject2(OWLEntity ob)
                            throws OWLException
Specified by:
getAlignedObject2 in interface Alignment
OWLException

getAlignedRelation1

public Relation getAlignedRelation1(OWLEntity ob)
                             throws OWLException
Specified by:
getAlignedRelation1 in interface Alignment
OWLException

getAlignedRelation2

public Relation getAlignedRelation2(OWLEntity ob)
                             throws OWLException
Specified by:
getAlignedRelation2 in interface Alignment
OWLException

getAlignedMeasure1

public double getAlignedMeasure1(OWLEntity ob)
                          throws OWLException
Specified by:
getAlignedMeasure1 in interface Alignment
OWLException

getAlignedMeasure2

public double getAlignedMeasure2(OWLEntity ob)
                          throws OWLException
Specified by:
getAlignedMeasure2 in interface Alignment
OWLException

dump

public void dump(org.xml.sax.ContentHandler h)
Housekeeping

Specified by:
dump in interface Alignment

cut

public void cut(double threshold)
         throws OWLException
The cut function suppresses from an alignment all the cell over a particulat threshold

OWLException

write

public void write(java.io.PrintStream writer)
           throws java.io.IOException,
                  OWLException
New version corresponding to the RDF/XML/OWL DTD

Specified by:
write in interface Alignment
java.io.IOException
OWLException

INRIA & UMontrŽal

..no bottom yet...