Class BabelPointer
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelPointer
- All Implemented Interfaces:
edu.mit.jwi.item.IPointer, SynsetRelationType, Serializable
public class BabelPointer
extends Object
implements edu.mit.jwi.item.IPointer, SynsetRelationType, Serializable
Default, hard-coded, implementation of
IPointer for BabelNet.
Models a semantic pointer in BabelNet. Includes an associative (i.e.
semantically unspecified) relation.- Author:
- navigli, vannella
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException thrown when a BabelPointer cannot be foundstatic enumGroup of relations (used to bring together relations belonging to the same group) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BabelPointerAlso See from WordNetstatic final BabelPointerAntonym from WordNetstatic final BabelPointerHolonyms from all resourcesstatic final BabelPointerHypernyms from all resourcesstatic final BabelPointerHyponyms from all resourcesstatic final BabelPointerMeronyms from all resourcesstatic final BabelPointerAttribute from WordNetstatic final BabelPointerCause from WordNetstatic final BabelPointerDerivationally related form from WordNetstatic final BabelPointerEntailment from WordNetstatic final BabelPointerGloss related form (disambiguated) from WordNetstatic final BabelPointerGloss related form (monosemous) from WordNetstatic final BabelPointerMember holonym from WordNetstatic final BabelPointerPart holonym from WordNetstatic final BabelPointerSubstance holonym from WordNetstatic final BabelPointerHypernym from WordNetstatic final BabelPointerInstance hypernym from WordNetstatic final BabelPointerHyponym from WordNetstatic final BabelPointerInstance hyponym from WordNetstatic final BabelPointerMember meronym from WordNetstatic final BabelPointerPart meronym from WordNetstatic final BabelPointerSubstance meronym from WordNetstatic final BabelPointerParticiple from WordNetstatic final BabelPointerPertainym from WordNetstatic final BabelPointerDomain of synset - REGION from WordNetstatic final BabelPointerMember of this domain from WordNetstatic final BabelPointerWikipedia relationsstatic final BabelPointerSimilar To from WordNetstatic final BabelPointerDomain of synset - TOPIC from WordNetstatic final BabelPointerMember of this domain - TOPIC from WordNetstatic final BabelPointerDomain of synset - USAGE from WordNetstatic final BabelPointerMember of this domain - USAGE from WordNetstatic final BabelPointerVerb Group from WordNetstatic final BabelPointerHypernym from Wikipedia Bitaxonomystatic final BabelPointerHyponym from Wikipedia Bitaxonomystatic final BabelPointerHypernym from Wikidatastatic final BabelPointerHyponym from Wikidatastatic final BabelPointerHyponym instance from Wikidatastatic final BabelPointerMeronym from Wikidata -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns a user-friendly name of this pointer type for identification purposes.static BabelPointergetPointerType(String symbol) Returns the pointer type (static final instance) that matches the specified pointer symbol.Returns the kind of relationThe short name in BabelNet data files that is used to indicate this pointer type.The symbol in BabelNet data files that is used to indicate this pointer type.inthashCode()booleanReturns true if the relation is obtained from an automatic resourcebooleanReturns true if the relation is of a holonymy kindbooleanReturns true if the relation is of a hypernymy kindbooleanReturns true if the relation is of a hyponymy kindbooleanReturns true if the relation is of a meronymy kindtoString()static BabelPointerReturns the pointer type (static final instance) that matches the specified pointer name.static Collection<BabelPointer> values()Emulates the Enum.values() function.
-
Field Details
-
SEMANTICALLY_RELATED
Wikipedia relations -
GLOSS_MONOSEMOUS
Gloss related form (monosemous) from WordNet -
GLOSS_DISAMBIGUATED
Gloss related form (disambiguated) from WordNet -
ALSO_SEE
Also See from WordNet -
ANTONYM
Antonym from WordNet -
ATTRIBUTE
Attribute from WordNet -
CAUSE
Cause from WordNet -
DERIVATIONALLY_RELATED
Derivationally related form from WordNet -
ENTAILMENT
Entailment from WordNet -
HYPERNYM
Hypernym from WordNet -
HYPERNYM_INSTANCE
Instance hypernym from WordNet -
HYPONYM
Hyponym from WordNet -
HYPONYM_INSTANCE
Instance hyponym from WordNet -
HOLONYM_MEMBER
Member holonym from WordNet -
HOLONYM_SUBSTANCE
Substance holonym from WordNet -
HOLONYM_PART
Part holonym from WordNet -
MERONYM_MEMBER
Member meronym from WordNet -
MERONYM_SUBSTANCE
Substance meronym from WordNet -
MERONYM_PART
Part meronym from WordNet -
PARTICIPLE
Participle from WordNet -
PERTAINYM
Pertainym from WordNet -
REGION
Domain of synset - REGION from WordNet -
REGION_MEMBER
Member of this domain from WordNet -
SIMILAR_TO
Similar To from WordNet -
TOPIC
Domain of synset - TOPIC from WordNet -
TOPIC_MEMBER
Member of this domain - TOPIC from WordNet -
USAGE
Domain of synset - USAGE from WordNet -
USAGE_MEMBER
Member of this domain - USAGE from WordNet -
VERB_GROUP
Verb Group from WordNet -
WIBI_HYPERNYM
Hypernym from Wikipedia Bitaxonomy -
WIKIDATA_HYPERNYM
Hypernym from Wikidata -
WIKIDATA_MERONYM
Meronym from Wikidata -
WIBI_HYPONYM
Hyponym from Wikipedia Bitaxonomy -
WIKIDATA_HYPONYM_INSTANCE
Hyponym instance from Wikidata -
WIKIDATA_HYPONYM
Hyponym from Wikidata -
ANY_HYPERNYM
Hypernyms from all resources -
ANY_MERONYM
Meronyms from all resources -
ANY_HOLONYM
Holonyms from all resources -
ANY_HYPONYM
Hyponyms from all resources
-
-
Method Details
-
getSymbol
The symbol in BabelNet data files that is used to indicate this pointer type. Will not be null, empty, or all whitespace. Specified by: getSymbol() in IPointer Returns: the symbol for this pointer- Specified by:
getSymbolin interfaceedu.mit.jwi.item.IPointer
-
getName
Returns a user-friendly name of this pointer type for identification purposes. Will not be null, empty, or all whitespace.- Specified by:
getNamein interfaceedu.mit.jwi.item.IPointer- Returns:
- the user-friendly name of this pointer
-
getShortName
The short name in BabelNet data files that is used to indicate this pointer type.- Returns:
- the short name of the relation
-
toString
-
equals
-
hashCode
-
values
Emulates the Enum.values() function. Returns an unmodifiable collection of all the pointers declared in this class, in the order they are declared.- Returns:
- the full collection of
BabelPointers
-
valueOf
Returns the pointer type (static final instance) that matches the specified pointer name.- Parameters:
name- the name string of the relation- Returns:
- the
BabelPointercorresponding to the given name - Throws:
BabelPointer.BabelPointerNotPresentException- if the name does not correspond to a known pointer.
-
isHypernym
public boolean isHypernym()Returns true if the relation is of a hypernymy kind- Returns:
- true if the relation is of a hypernymy kind
-
isHyponym
public boolean isHyponym()Returns true if the relation is of a hyponymy kind- Returns:
- true if the relation is of a hyponymy kind
-
isMeronym
public boolean isMeronym()Returns true if the relation is of a meronymy kind- Returns:
- true if the relation is of a meronymy kind
-
isHolonym
public boolean isHolonym()Returns true if the relation is of a holonymy kind- Returns:
- true if the relation is of a holonymy kind
-
getRelationGroup
Returns the kind of relation- Returns:
- the group the relation belongs to
-
isAutomatic
public boolean isAutomatic()Returns true if the relation is obtained from an automatic resource- Returns:
- true if the relation is automatic
-
getPointerType
Returns the pointer type (static final instance) that matches the specified pointer symbol.- Parameters:
symbol- the String representation of the semantic relation- Returns:
- the type of semantic relation
- Throws:
BabelPointer.BabelPointerNotPresentException- if the symbol does not correspond to a known pointer.
-