Alignment API and Server 3.2

fr.inrialpes.exmo.align.impl
Class BasicRelation

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.BasicRelation
All Implemented Interfaces:
Relation
Direct Known Subclasses:
EquivRelation, IncompatRelation, NonTransitiveImplicationRelation, SubsumedRelation, SubsumeRelation

public class BasicRelation
extends Object
implements Relation

Represents an ontology alignment relation.

Version:
$Id: BasicRelation.java 631 2008-02-13 14:12:43Z jdavid $
Author:
Jérôme Euzenat

Field Summary
protected  String relation
          It is intended that the value of the relation is =, < or >.
 
Constructor Summary
BasicRelation(String rel)
          Creation
 
Method Summary
 void accept(AlignmentVisitor visitor)
          Creation
 Relation compose(Relation r)
          By default...
static Relation createRelation(String rel)
           
 void dump(ContentHandler h)
          Housekeeping
 boolean equals(Relation r)
          Are the two relations equal
 String getRelation()
          printable format
 Relation inverse()
          By default the inverse is the relation itself
 void write(PrintWriter writer)
          This is kept for displayig more correctly the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relation

protected String relation
It is intended that the value of the relation is =, < or >. But this can be any string in other applications.

Constructor Detail

BasicRelation

public BasicRelation(String rel)
Creation

Method Detail

accept

public void accept(AlignmentVisitor visitor)
            throws AlignmentException
Description copied from interface: Relation
Creation

Specified by:
accept in interface Relation
Throws:
AlignmentException

getRelation

public String getRelation()
printable format


createRelation

public static Relation createRelation(String rel)

inverse

public Relation inverse()
By default the inverse is the relation itself

Specified by:
inverse in interface Relation

compose

public Relation compose(Relation r)
By default...

Specified by:
compose in interface Relation

equals

public boolean equals(Relation r)
Are the two relations equal

Specified by:
equals in interface Relation

dump

public void dump(ContentHandler h)
Housekeeping

Specified by:
dump in interface Relation

write

public void write(PrintWriter writer)
This is kept for displayig more correctly the result

Specified by:
write in interface Relation

Alignment API and Server 3.2

(C) INRIA & friends, 2003-2008