public class BabelPointer extends Object implements edu.mit.jwi.item.IPointer, SynsetRelationType, Serializable
IPointer
for BabelNet
.
Models a semantic pointer in BabelNet
. Includes an associative (i.e.
semantically unspecified) relation.IPointer
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
BabelPointer.BabelPointerNotPresentException
Exception thrown when a BabelPointer cannot be found
|
static class |
BabelPointer.RelationGroup
Group of relations (used to bring together relations belonging to the same group)
|
Modifier and Type | Field and Description |
---|---|
static BabelPointer |
ALSO_SEE
Also See from WordNet
|
static BabelPointer |
ANTONYM
Antonym from WordNet
|
static BabelPointer |
ANY_HOLONYM
Holonyms from all resources
|
static BabelPointer |
ANY_HYPERNYM
Hypernyms from all resources
|
static BabelPointer |
ANY_HYPONYM
Hyponyms from all resources
|
static BabelPointer |
ANY_MERONYM
Meronyms from all resources
|
static BabelPointer |
ATTRIBUTE
Attribute from WordNet
|
static BabelPointer |
CAUSE
Cause from WordNet
|
static BabelPointer |
DERIVATIONALLY_RELATED
Derivationally related form from WordNet
|
static BabelPointer |
ENTAILMENT
Entailment from WordNet
|
static BabelPointer |
GLOSS_DISAMBIGUATED
Gloss related form (disambiguated) from WordNet
|
static BabelPointer |
GLOSS_MONOSEMOUS
Gloss related form (monosemous) from WordNet
|
static BabelPointer |
HOLONYM_MEMBER
Member holonym from WordNet
|
static BabelPointer |
HOLONYM_PART
Part holonym from WordNet
|
static BabelPointer |
HOLONYM_SUBSTANCE
Substance holonym from WordNet
|
static BabelPointer |
HYPERNYM
Hypernym from WordNet
|
static BabelPointer |
HYPERNYM_INSTANCE
Instance hypernym from WordNet
|
static BabelPointer |
HYPONYM
Hyponym from WordNet
|
static BabelPointer |
HYPONYM_INSTANCE
Instance hyponym from WordNet
|
static BabelPointer |
MERONYM_MEMBER
Member meronym from WordNet
|
static BabelPointer |
MERONYM_PART
Part meronym from WordNet
|
static BabelPointer |
MERONYM_SUBSTANCE
Substance meronym from WordNet
|
static BabelPointer |
PARTICIPLE
Participle from WordNet
|
static BabelPointer |
PERTAINYM
Pertainym from WordNet
|
static BabelPointer |
REGION
Domain of synset - REGION from WordNet
|
static BabelPointer |
REGION_MEMBER
Member of this domain from WordNet
|
static BabelPointer |
SEMANTICALLY_RELATED
Wikipedia relations
|
static BabelPointer |
SIMILAR_TO
Similar To from WordNet
|
static BabelPointer |
TOPIC
Domain of synset - TOPIC from WordNet
|
static BabelPointer |
TOPIC_MEMBER
Member of this domain - TOPIC from WordNet
|
static BabelPointer |
USAGE
Domain of synset - USAGE from WordNet
|
static BabelPointer |
USAGE_MEMBER
Member of this domain - USAGE from WordNet
|
static BabelPointer |
VERB_GROUP
Verb Group from WordNet
|
static BabelPointer |
WIBI_HYPERNYM
Hypernym from Wikipedia Bitaxonomy
|
static BabelPointer |
WIBI_HYPONYM
Hyponym from Wikipedia Bitaxonomy
|
static BabelPointer |
WIKIDATA_HYPERNYM
Hypernym from Wikidata
|
static BabelPointer |
WIKIDATA_HYPONYM
Hyponym from Wikidata
|
static BabelPointer |
WIKIDATA_HYPONYM_INSTANCE
Hyponym instance from Wikidata
|
static BabelPointer |
WIKIDATA_MERONYM
Meronym from Wikidata
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns a user-friendly name of this pointer type for identification purposes.
|
static BabelPointer |
getPointerType(String symbol)
Returns the pointer type (static final instance) that matches the
specified pointer symbol.
|
BabelPointer.RelationGroup |
getRelationGroup()
Returns the kind of relation
|
String |
getShortName()
The short name in BabelNet data files that is used to indicate this pointer type.
|
String |
getSymbol()
The symbol in BabelNet data files that is used to indicate this pointer type.
|
int |
hashCode() |
boolean |
isAutomatic()
Returns true if the relation is obtained from an automatic resource
|
boolean |
isHolonym()
Returns true if the relation is of a holonymy kind
|
boolean |
isHypernym()
Returns true if the relation is of a hypernymy kind
|
boolean |
isHyponym()
Returns true if the relation is of a hyponymy kind
|
boolean |
isMeronym()
Returns true if the relation is of a meronymy kind
|
String |
toString() |
static BabelPointer |
valueOf(String name)
Returns the pointer type (static final instance) that matches the
specified pointer name.
|
static Collection<BabelPointer> |
values()
Emulates the Enum.values() function.
|
public static final BabelPointer SEMANTICALLY_RELATED
public static final BabelPointer GLOSS_MONOSEMOUS
public static final BabelPointer GLOSS_DISAMBIGUATED
public static final BabelPointer ALSO_SEE
public static final BabelPointer ANTONYM
public static final BabelPointer ATTRIBUTE
public static final BabelPointer CAUSE
public static final BabelPointer DERIVATIONALLY_RELATED
public static final BabelPointer ENTAILMENT
public static final BabelPointer HYPERNYM
public static final BabelPointer HYPERNYM_INSTANCE
public static final BabelPointer HYPONYM
public static final BabelPointer HYPONYM_INSTANCE
public static final BabelPointer HOLONYM_MEMBER
public static final BabelPointer HOLONYM_SUBSTANCE
public static final BabelPointer HOLONYM_PART
public static final BabelPointer MERONYM_MEMBER
public static final BabelPointer MERONYM_SUBSTANCE
public static final BabelPointer MERONYM_PART
public static final BabelPointer PARTICIPLE
public static final BabelPointer PERTAINYM
public static final BabelPointer REGION
public static final BabelPointer REGION_MEMBER
public static final BabelPointer SIMILAR_TO
public static final BabelPointer TOPIC
public static final BabelPointer TOPIC_MEMBER
public static final BabelPointer USAGE
public static final BabelPointer USAGE_MEMBER
public static final BabelPointer VERB_GROUP
public static final BabelPointer WIBI_HYPERNYM
public static final BabelPointer WIKIDATA_HYPERNYM
public static final BabelPointer WIKIDATA_MERONYM
public static final BabelPointer WIBI_HYPONYM
public static final BabelPointer WIKIDATA_HYPONYM_INSTANCE
public static final BabelPointer WIKIDATA_HYPONYM
public static final BabelPointer ANY_HYPERNYM
public static final BabelPointer ANY_MERONYM
public static final BabelPointer ANY_HOLONYM
public static final BabelPointer ANY_HYPONYM
public String getSymbol()
getSymbol
in interface edu.mit.jwi.item.IPointer
public String getName()
getName
in interface edu.mit.jwi.item.IPointer
public String getShortName()
public static Collection<BabelPointer> values()
BabelPointer
spublic static BabelPointer valueOf(String name) throws BabelPointer.BabelPointerNotPresentException
name
- the name string of the relationBabelPointer
corresponding to the given nameBabelPointer.BabelPointerNotPresentException
- if the name does not correspond to a known pointer.public boolean isHypernym()
public boolean isHyponym()
public boolean isMeronym()
public boolean isHolonym()
public BabelPointer.RelationGroup getRelationGroup()
public boolean isAutomatic()
public static BabelPointer getPointerType(String symbol)
symbol
- the String representation of the semantic relationBabelPointer.BabelPointerNotPresentException
- if the symbol does not correspond to a known pointer.Copyright © 2016–2018. All rights reserved.