gov.llnl.ontology.wordnet
Enum Synset.Relation

java.lang.Object
  extended by java.lang.Enum<Synset.Relation>
      extended by gov.llnl.ontology.wordnet.Synset.Relation
All Implemented Interfaces:
Serializable, Comparable<Synset.Relation>
Enclosing interface:
Synset

public static enum Synset.Relation
extends Enum<Synset.Relation>

The set of relations that can connect any two Synsets. Each relation is attributed with the character symbols used in the WordNet dictionary files to identify instances of each relation. Most relations have a corresponding reflexive type, such as HYPERNYMis the reflexive relation of Relation:HYPONYM.


Enum Constant Summary
ALSO_SEE
           
ANTONYM
          An opposite of relation.
ATTRIBUTE
          A relation signifying that the current Synset is a required attribute to some other Synset.
CAUSE
          A causal relation.
DERIVATIONALLY_RELATED_FORMS
           
ENTAILMENT
          A relation for entailments.
HYPERNYM
          A parent of relation.
HYPONYM
          A child of relation.
INSTANCE_HYPERNYM
          A parent of relation.
INSTANCE_HYPONYM
          A child of relation.
MEMBER_HOLONYM
          A part of relation.
MEMBER_MERONYM
          A part of relation.
PART_HOLONYM
          A part of relation.
PART_MERONYM
          A part of relation.
SIMILAR_TO
           
SUBSTANCE_HOLONYM
          A part of relation.
SUBSTANCE_MERONYM
          A part of relation.
VERB_GROUPS
           
 
Method Summary
static Synset.Relation fromId(String label)
          Returns the Synset.Relation corresponding to one of the symbols used in the WordNet dictionary files.
 Synset.Relation reflexive()
          Returns the reflexive Synset.Relation.
 String toId()
          The label or identifier for this Synset.Relation
 String toString()
           
static Synset.Relation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Synset.Relation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HYPERNYM

public static final Synset.Relation HYPERNYM
A parent of relation. Hypernyms are a generalized, or parent, Synsets of a given Synset.


INSTANCE_HYPERNYM

public static final Synset.Relation INSTANCE_HYPERNYM
A parent of relation. Instance hypernyms are the reflexive type of an Instance Hyponym. For example, "river" is an Instance Hypernym of "Mississippi River".


HYPONYM

public static final Synset.Relation HYPONYM
A child of relation. Hyponyms are subconcepts of a more general concept.


INSTANCE_HYPONYM

public static final Synset.Relation INSTANCE_HYPONYM
A child of relation. Instance hyponyms are the real world instances of a generalized concept, for example, "Mississippi River" is an instance hyponym of "river".


ANTONYM

public static final Synset.Relation ANTONYM
An opposite of relation. Antonyms are concepts that have an opposite meaning, such as "hot" and "cold". Conceptually, they may be similar, but only differ on a few distinct features.


MEMBER_HOLONYM

public static final Synset.Relation MEMBER_HOLONYM
A part of relation. Member holonyms are parts of another concept. For example, "Saturn" is a member holonym of "solar sysetm".


SUBSTANCE_HOLONYM

public static final Synset.Relation SUBSTANCE_HOLONYM
A part of relation. Substance holonyms are substances that compose another object. For example, "water" is a substancec holonym of "ice".


PART_HOLONYM

public static final Synset.Relation PART_HOLONYM
A part of relation. Part holonyms are concepts that are components of another concept. For example "knob" is a part holonym of "hilt".


MEMBER_MERONYM

public static final Synset.Relation MEMBER_MERONYM
A part of relation. This is the reflexive relation for member holonyms.


SUBSTANCE_MERONYM

public static final Synset.Relation SUBSTANCE_MERONYM
A part of relation. This is the reflexive relation for substance holonyms.


PART_MERONYM

public static final Synset.Relation PART_MERONYM
A part of relation. This is the reflexive relation for part holonyms.


ATTRIBUTE

public static final Synset.Relation ATTRIBUTE
A relation signifying that the current Synset is a required attribute to some other Synset. For example, "accurate" is an attribute of "truth".


ENTAILMENT

public static final Synset.Relation ENTAILMENT
A relation for entailments. A given Synset has an entailment relation if it entails or implies another Synset. For example, "snore" entails "sleep".


CAUSE

public static final Synset.Relation CAUSE
A causal relation. A given Synset has a cause relation if it is a cause of another Synset.


ALSO_SEE

public static final Synset.Relation ALSO_SEE

VERB_GROUPS

public static final Synset.Relation VERB_GROUPS

SIMILAR_TO

public static final Synset.Relation SIMILAR_TO

DERIVATIONALLY_RELATED_FORMS

public static final Synset.Relation DERIVATIONALLY_RELATED_FORMS
Method Detail

values

public static Synset.Relation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Synset.Relation c : Synset.Relation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Synset.Relation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

reflexive

public Synset.Relation reflexive()
Returns the reflexive Synset.Relation.


toId

public String toId()
The label or identifier for this Synset.Relation


toString

public String toString()
Overrides:
toString in class Enum<Synset.Relation>

fromId

public static Synset.Relation fromId(String label)
Returns the Synset.Relation corresponding to one of the symbols used in the WordNet dictionary files.



Copyright © 2010-2011. All Rights Reserved.