INRIA & friends

org.semanticweb.owl.align
Interface Alignment

All Known Subinterfaces:
AlignmentProcess
All Known Implementing Classes:
BasicAlignment, ClassStructAlignment, DistanceAlignment, EditDistNameAlignment, JWNLAlignment, NameAndPropertyAlignment, NameEqAlignment, SMOANameAlignment, StringDistAlignment, StrucSubsDistAlignment, SubsDistNameAlignment

public interface Alignment

Represents an Ontology alignment.

Version:
$Id: Alignment.java 206 2006-02-17 12:00:00Z euzenat $
Author:
Jérôme Euzenat

Method Summary
 void accept(AlignmentVisitor visitor)
          Alignment methods
 Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob2)
           
 Cell addAlignCell(java.lang.Object ob1, java.lang.Object ob, java.lang.String relation, double measure)
          Cells are created and indexed at once
 Alignment compose(Alignment align)
           
 void cut(double threshold)
           
 void cut(java.lang.String method, double threshold)
           
 void dump(org.xml.sax.ContentHandler h)
          Dump should be implemented as a method generating SAX events for a SAXHandler provided as input
 Cell getAlignCell1(java.lang.Object ob)
          Cells are retrieved These primitives are deprecated.
 Cell getAlignCell2(java.lang.Object ob)
           
 java.util.Set getAlignCells1(java.lang.Object ob)
          Cells are retrieved These primitives are deprecated.
 java.util.Set getAlignCells2(java.lang.Object ob)
           
 java.lang.Object getAlignedObject1(java.lang.Object ob)
          Each part of the cell can be queried independently.
 java.lang.Object getAlignedObject2(java.lang.Object ob)
           
 Relation getAlignedRelation1(java.lang.Object ob)
           
 Relation getAlignedRelation2(java.lang.Object ob)
           
 double getAlignedStrength1(java.lang.Object ob)
           
 double getAlignedStrength2(java.lang.Object ob)
           
 java.util.Enumeration getElements()
           
 java.lang.String getExtension(java.lang.String label)
           
 Parameters getExtensions()
          Extensions are a way to read and add other information (metadata) to the alignment structure itself.
 java.net.URI getFile1()
           
 java.net.URI getFile2()
           
 java.lang.String getLevel()
           
 java.lang.Object getOntology1()
          The alignment has reference to the two aligned ontology.
 java.lang.Object getOntology2()
           
 java.lang.String getType()
           
 void harden(double threshold)
           
 Alignment inverse()
          Algebra of alignment manipulation operations: compose, join, meet.
 Alignment join(Alignment align)
           
 Alignment meet(Alignment align)
           
 int nbCells()
           
 void render(AlignmentVisitor renderer)
          Exporting The alignments are exported for other purposes.
 void setExtension(java.lang.String label, java.lang.String value)
           
 void setFile1(java.net.URI type)
          Alignment type: Currently defined a sa String.
 void setFile2(java.net.URI type)
           
 void setLevel(java.lang.String level)
          Alignment type: Currently defined a sa String.
 void setOntology1(java.lang.Object ontology)
           
 void setOntology2(java.lang.Object ontology)
           
 void setType(java.lang.String type)
          Alignment type: Currently defined a sa String.
 

Method Detail

accept

public void accept(AlignmentVisitor visitor)
            throws AlignmentException
Alignment methods

Throws:
AlignmentException

getOntology1

public java.lang.Object getOntology1()
The alignment has reference to the two aligned ontology. All Alignment cells contain firts the entity from the first ontology The alignment is from the first ontology to the second.


getOntology2

public java.lang.Object getOntology2()

setOntology1

public void setOntology1(java.lang.Object ontology)
                  throws AlignmentException
Throws:
AlignmentException

setOntology2

public void setOntology2(java.lang.Object ontology)
                  throws AlignmentException
Throws:
AlignmentException

setLevel

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


getLevel

public java.lang.String getLevel()

setType

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


getType

public java.lang.String getType()

setFile1

public void setFile1(java.net.URI type)
Alignment type: Currently defined a sa String. This string is supposed to contain two characters: among ?, 1, *, + Can be implemented otherwise


setFile2

public void setFile2(java.net.URI type)

getFile1

public java.net.URI getFile1()

getFile2

public java.net.URI getFile2()

addAlignCell

public Cell addAlignCell(java.lang.Object ob1,
                         java.lang.Object ob,
                         java.lang.String relation,
                         double measure)
                  throws AlignmentException
Cells are created and indexed at once

Throws:
AlignmentException

addAlignCell

public Cell addAlignCell(java.lang.Object ob1,
                         java.lang.Object ob2)
                  throws AlignmentException
Throws:
AlignmentException

getAlignCell1

public Cell getAlignCell1(java.lang.Object ob)
                   throws AlignmentException
Cells are retrieved These primitives are deprecated. Use getAlignCells1 and getAlignCells2 instead. Reason: this applies only for 1:1 alignments Some implementations might act cleverly (retrieving the best value). Basic implementations may raise the exception

Throws:
AlignmentException

getAlignCell2

public Cell getAlignCell2(java.lang.Object ob)
                   throws AlignmentException
Throws:
AlignmentException

getAlignedObject1

public java.lang.Object getAlignedObject1(java.lang.Object ob)
                                   throws AlignmentException
Each part of the cell can be queried independently. These primitives are deprecated. Use getAlignCells1 and getAlignCells2 instead. Reason: this applies only for 1:1 alignments Some implementations might act cleverly (retrieving the best value). Basic implementations may raise the exception

Throws:
AlignmentException

getAlignedObject2

public java.lang.Object getAlignedObject2(java.lang.Object ob)
                                   throws AlignmentException
Throws:
AlignmentException

getAlignedRelation1

public Relation getAlignedRelation1(java.lang.Object ob)
                             throws AlignmentException
Throws:
AlignmentException

getAlignedRelation2

public Relation getAlignedRelation2(java.lang.Object ob)
                             throws AlignmentException
Throws:
AlignmentException

getAlignedStrength1

public double getAlignedStrength1(java.lang.Object ob)
                           throws AlignmentException
Throws:
AlignmentException

getAlignedStrength2

public double getAlignedStrength2(java.lang.Object ob)
                           throws AlignmentException
Throws:
AlignmentException

getAlignCells1

public java.util.Set getAlignCells1(java.lang.Object ob)
                             throws AlignmentException
Cells are retrieved These primitives are deprecated. Use getAlignCells1 and getAlignCells2 instead. Reason: this applies only for 1:1 alignments Some implementations might act cleverly (retrieving the best value). Basic implementations may raise the exception

Throws:
AlignmentException

getAlignCells2

public java.util.Set getAlignCells2(java.lang.Object ob)
                             throws AlignmentException
Throws:
AlignmentException

getExtensions

public Parameters getExtensions()
Extensions are a way to read and add other information (metadata) to the alignment structure itself.


getExtension

public java.lang.String getExtension(java.lang.String label)

setExtension

public void setExtension(java.lang.String label,
                         java.lang.String value)

getElements

public java.util.Enumeration getElements()

nbCells

public int nbCells()

cut

public void cut(java.lang.String method,
                double threshold)
         throws AlignmentException
Throws:
AlignmentException

cut

public void cut(double threshold)
         throws AlignmentException
Throws:
AlignmentException

harden

public void harden(double threshold)
            throws AlignmentException
Throws:
AlignmentException

inverse

public Alignment inverse()
                  throws AlignmentException
Algebra of alignment manipulation operations: compose, join, meet.

Throws:
AlignmentException

meet

public Alignment meet(Alignment align)
               throws AlignmentException
Throws:
AlignmentException

join

public Alignment join(Alignment align)
               throws AlignmentException
Throws:
AlignmentException

compose

public Alignment compose(Alignment align)
                  throws AlignmentException
Throws:
AlignmentException

dump

public void dump(org.xml.sax.ContentHandler h)
Dump should be implemented as a method generating SAX events for a SAXHandler provided as input


render

public void render(AlignmentVisitor renderer)
            throws AlignmentException
Exporting The alignments are exported for other purposes.

Throws:
AlignmentException

INRIA & friends

..no bottom yet...