fr.inrialpes.exmo.align.impl.edoal
Class EDOALCell
java.lang.Object
fr.inrialpes.exmo.align.impl.BasicCell
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
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 |
id
private URI id
transformations
private Set<Transformation> transformations
EDOALCell
public EDOALCell(String id,
Expression ob1,
Expression ob2,
Relation rel,
double m)
throws AlignmentException
- Creation
- Throws:
AlignmentException
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
(C) INRIA & friends, 2003-${curryear}