Alignment API and Server 4.2.${version.update}

fr.inrialpes.exmo.align.impl.edoal
Class EDOALCell

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.BasicCell
      extended by fr.inrialpes.exmo.align.impl.edoal.EDOALCell
All Implemented Interfaces:
Comparable<Cell>, Cell, Visitable

public class EDOALCell
extends BasicCell

This implements a particular of ontology correspondence when it is a correspondence from the EDOAL Mapping Language. The current implementation of this class consists of encapsulating the EDOAL Mapping Rule object and reimplementing the ALignment API accessors around it. This is fine but there is another implementation that would be more satisfactory: Reimplementing the EDOAL Mapping Rules in terms of a proper Cell with: id: URI id object1: Resource source object2: Resource target relation: The class name of the rule measure: float measure -- no real use of direction.

Version:
$Id: EDOALCell.java 1568 2011-04-20 13:20:24Z euzenat $
Author:
Jérôme Euzenat

Field Summary
private  URI id
           
private  Set<Transformation> transformations
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicCell
extensions, object1, object2, relation, semantics, strength
 
Constructor Summary
EDOALCell(String id, Expression ob1, Expression ob2, Relation rel, double m)
          Creation
 
Method Summary
 void accept(AlignmentVisitor visitor)
           
 void accept(TypeCheckingVisitor visitor)
           
 void addTransformation(Transformation trs)
           
 URI getObject1AsURI(Alignment al)
           
 URI getObject2AsURI(Alignment al)
           
 Cell inverse()
           
 Set<Transformation> transformations()
          May be null
 
Methods inherited from class fr.inrialpes.exmo.align.impl.BasicCell
compareTo, compose, dump, equals, equals, getExtension, getExtensions, getId, getObject1, getObject1AsURI, getObject2, getObject2AsURI, getRelation, getSemantics, getStrength, hashCode, setExtension, setExtensions, setId, setObject1, setObject2, setRelation, setSemantics, setStrength
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private URI id

transformations

private Set<Transformation> transformations
Constructor Detail

EDOALCell

public EDOALCell(String id,
                 Expression ob1,
                 Expression ob2,
                 Relation rel,
                 double m)
          throws AlignmentException
Creation

Throws:
AlignmentException
Method Detail

accept

public void accept(AlignmentVisitor visitor)
            throws AlignmentException
Specified by:
accept in interface Visitable
Overrides:
accept in class BasicCell
Throws:
AlignmentException

accept

public void accept(TypeCheckingVisitor visitor)
            throws AlignmentException
Throws:
AlignmentException

getObject1AsURI

public URI getObject1AsURI(Alignment al)
                    throws AlignmentException
Specified by:
getObject1AsURI in interface Cell
Overrides:
getObject1AsURI in class BasicCell
Throws:
AlignmentException

getObject2AsURI

public URI getObject2AsURI(Alignment al)
                    throws AlignmentException
Specified by:
getObject2AsURI in interface Cell
Overrides:
getObject2AsURI in class BasicCell
Throws:
AlignmentException

addTransformation

public void addTransformation(Transformation trs)

transformations

public Set<Transformation> transformations()
May be null


inverse

public Cell inverse()
             throws AlignmentException
Specified by:
inverse in interface Cell
Overrides:
inverse in class BasicCell
Throws:
AlignmentException

Alignment API and Server 4.2.${version.update}

(C) INRIA & friends, 2003-${curryear}