GATE
Version 3.1-2270

gate.wordnet
Class SemanticRelationImpl

java.lang.Object
  extended by gate.wordnet.SemanticRelationImpl
All Implemented Interfaces:
Relation, SemanticRelation

public class SemanticRelationImpl
extends Object
implements SemanticRelation


Field Summary
 
Fields inherited from interface gate.wordnet.Relation
REL_ANTONYM, REL_ATTRIBUTE, REL_CAUSE, REL_DERIVED_FROM_ADJECTIVE, REL_ENTAILMENT, REL_HYPERNYM, REL_HYPONYM, REL_MEMBER_HOLONYM, REL_MEMBER_MERONYM, REL_PART_HOLONYM, REL_PART_MERONYM, REL_PARTICIPLE_OF_VERB, REL_PERTAINYM, REL_SEE_ALSO, REL_SIMILAR_TO, REL_SUBSTANCE_HOLONYM, REL_SUBSTANCE_MERONYM, REL_VERB_GROUP
 
Constructor Summary
SemanticRelationImpl(int _type, Synset _src, Synset _target)
           
 
Method Summary
 int getInverseType()
          returns the inverse relation (Hyponym <-> Hypernym, etc)
 String getLabel()
          returns a label for the relation, e.g.
 Synset getSource()
          returns the source (Synset) of this lexical relation
 String getSymbol()
          returns a symbol for the relation, e.g
 Synset getTarget()
          returns the source (Synset) of this lexical relation
 int getType()
          returns the type of the relation - one of REL_XXX
 boolean isApplicableTo(int pos)
          checks if the relation is applicab;le to specific POS - see REL_XXX comments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.wordnet.Relation
getInverseType, getLabel, getSymbol, getType, isApplicableTo
 

Constructor Detail

SemanticRelationImpl

public SemanticRelationImpl(int _type,
                            Synset _src,
                            Synset _target)
Method Detail

getSource

public Synset getSource()
returns the source (Synset) of this lexical relation

Specified by:
getSource in interface SemanticRelation

getTarget

public Synset getTarget()
returns the source (Synset) of this lexical relation

Specified by:
getTarget in interface SemanticRelation

getType

public int getType()
returns the type of the relation - one of REL_XXX

Specified by:
getType in interface Relation

getSymbol

public String getSymbol()
returns a symbol for the relation, e.g. "@"

Specified by:
getSymbol in interface Relation

getLabel

public String getLabel()
returns a label for the relation, e.g. "HYPERNYM"

Specified by:
getLabel in interface Relation

getInverseType

public int getInverseType()
returns the inverse relation (Hyponym <-> Hypernym, etc)

Specified by:
getInverseType in interface Relation

isApplicableTo

public boolean isApplicableTo(int pos)
checks if the relation is applicab;le to specific POS - see REL_XXX comments

Specified by:
isApplicableTo in interface Relation

GATE
Version 3.1-2270