leila.relations
Class StupidRelation

java.lang.Object
  extended by leila.relations.Relation
      extended by leila.relations.StupidRelation

public class StupidRelation
extends Relation

This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).

StupidRelation.java is a toy relation of just two words for debugging purposes.


Nested Class Summary
 
Nested classes/interfaces inherited from class leila.relations.Relation
Relation.WordPairType
 
Field Summary
 java.lang.String first
          Holds the first word
 java.lang.String second
          Holds the second word
 
Constructor Summary
StupidRelation()
           
 
Method Summary
 Relation.WordPairType assess(LinkageWord w1, LinkageWord w2)
          Judges a pair of words
 boolean possibleExample(LinkageWord w)
          Tells whether the word equals the first word
 boolean requiresCounterexamples()
          returns false
 
Methods inherited from class leila.relations.Relation
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public java.lang.String first
Holds the first word


second

public java.lang.String second
Holds the second word

Constructor Detail

StupidRelation

public StupidRelation()
Method Detail

requiresCounterexamples

public boolean requiresCounterexamples()
returns false

Overrides:
requiresCounterexamples in class Relation

assess

public Relation.WordPairType assess(LinkageWord w1,
                                    LinkageWord w2)
Judges a pair of words

Overrides:
assess in class Relation

possibleExample

public boolean possibleExample(LinkageWord w)
Tells whether the word equals the first word

Overrides:
possibleExample in class Relation