| Relation.java |
1 /*
2 * Relation.java
3 *
4 * Copyright (c) 1998-2004, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June 1991 (in the distribution as file licence.html,
9 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Marin Dimitrov, 16/May/2002
12 *
13 * $Id: Relation.java,v 1.8 2004/07/21 17:10:10 akshay Exp $
14 */
15
16 package gate.wordnet;
17
18
19
20 /** Represents WordNet relation.
21 */
22 public interface Relation {
23
24 /** ! Antonym (noun,verb,adjective,adverb) */
25 public static final int REL_ANTONYM = 10001;
26
27 /** Hypernym (noun,verb)*/
28 public static final int REL_HYPERNYM = 10002;
29
30 /** ~ Hyponym (noun,verb)*/
31 public static final int REL_HYPONYM = 10003;
32
33 /** #m Member holonym (noun)*/
34 public static final int REL_MEMBER_HOLONYM = 10004;
35
36 /** #s Substance holonym (noun)*/
37 public static final int REL_SUBSTANCE_HOLONYM = 10005;
38
39 /** #p Part holonym (noun)*/
40 public static final int REL_PART_HOLONYM = 10006;
41
42 /** %m Member meronym (noun)*/
43 public static final int REL_MEMBER_MERONYM = 10007;
44
45 /** %s Substance meronym (noun)*/
46 public static final int REL_SUBSTANCE_MERONYM = 10008;
47
48 /** %p Part meronym (noun)*/
49 public static final int REL_PART_MERONYM = 10009;
50
51 /** = Attribute (noun,adjective)*/
52 public static final int REL_ATTRIBUTE = 10010;
53
54 /** * Entailment (verb) */
55 public static final int REL_ENTAILMENT = 10011;
56
57 /** > Cause (verb)*/
58 public static final int REL_CAUSE = 10012;
59
60 /** ^ Also see (verb,adjective)*/
61 public static final int REL_SEE_ALSO = 10013;
62
63 /** $ Verb Group (verb)*/
64 public static final int REL_VERB_GROUP = 10014;
65
66 /** < Participle of verb (adjective)*/
67 public static final int REL_PARTICIPLE_OF_VERB = 10015;
68
69 /** & Similar to (adjective)*/
70 public static final int REL_SIMILAR_TO = 10016;
71
72 /** \ Pertainym - pertains to noun (adjective)*/
73 public static final int REL_PERTAINYM = 10017;
74
75 /** \ Derived from adjective (adverb)*/
76 public static final int REL_DERIVED_FROM_ADJECTIVE = 10018;
77
78 /** returns the type of the relation - one of REL_XXX*/
79 public int getType();
80
81 /** returns the inverse relation (Hyponym <-> Hypernym, etc)*/
82 public int getInverseType();
83
84 /** returns a label for the relation, e.g. "HYPERNYM" */
85 public String getLabel();
86
87 /** returns a symbol for the relation, e.g. "@" */
88 public String getSymbol();
89
90 /** checks if the relation is applicab;le to specific POS - see REL_XXX comments */
91 public boolean isApplicableTo(int pos);
92
93 }
94
95