public class BabelSynsetID extends SynsetID
BabelSynset ID.
To obtain the corresponding synset, call toSynset().
Usage example:
ResourceID rID = new BabelSynsetID("bn:03083790n");| Modifier and Type | Field and Description |
|---|---|
static int |
BABELNET_ID_LENGTH
The BabelNet ID length
|
static String |
BABELNET_ID_PREFIX
The BabelNet ID prefix
|
static int |
WORDATLAS_ID_LENGTH
The WordAtlas ID length "wa:tqlms5n"
|
static String |
WORDATLAS_ID_PREFIX
The WordAtlas ID prefix
|
id, language, pos, source| Constructor and Description |
|---|
BabelSynsetID(String id)
Constructs the object with a given ID
|
| Modifier and Type | Method and Description |
|---|---|
List<BabelSynsetRelation> |
getOutgoingEdges()
Returns the edges which connect the current synset
|
List<BabelSynsetRelation> |
getOutgoingEdges(BabelPointer... relationTypes)
|
List<BabelSynsetRelation> |
getOutgoingEdges(Collection<it.uniroma1.lcl.jlt.util.Language> searchLanguages)
Deprecated.
|
List<BabelSynsetRelation> |
getRelatedIDs()
Deprecated.
Use
getOutgoingEdges() instead |
List<BabelSynsetRelation> |
getRelatedIDs(Collection<it.uniroma1.lcl.jlt.util.Language> searchLanguages)
Deprecated.
Use
getOutgoingEdges(Collection) instead |
protected boolean |
isValid()
Returns true if the synset ID is valid
|
BabelSynset |
toBabelSynset()
Deprecated.
Use
toSynset() instead |
BabelSynset |
toBabelSynset(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Deprecated.
Use
ResourceID.toSynsets(Collection) instead |
BabelSynset |
toSynset()
From a lightweight BabelSynsetID, creates the corresponding
BabelSynset |
getSimpleOffsetequals, getID, getLanguage, getPOS, getSource, hashCode, toString, toSynsets, toSynsetspublic static final String BABELNET_ID_PREFIX
public static final String WORDATLAS_ID_PREFIX
public static final int BABELNET_ID_LENGTH
public static final int WORDATLAS_ID_LENGTH
public BabelSynsetID(String id) throws InvalidSynsetIDException
id - the ID of the BabelSynsetInvalidSynsetIDException - thrown if the ID is invalidprotected boolean isValid()
SynsetIDpublic BabelSynset toSynset()
BabelSynsetBabelSynset corresponding to this ID@Deprecated public BabelSynset toBabelSynset()
toSynset() insteadBabelSynset corresponding to this ID@Deprecated public BabelSynset toBabelSynset(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
ResourceID.toSynsets(Collection) insteadBabelSynsettargetLanguages - the languages in which the data are to be retrieved.BabelSynset corresponding to this ID@Deprecated public List<BabelSynsetRelation> getRelatedIDs()
getOutgoingEdges() insteadBabelSynsetBabelSynsetRelations outgoing from this synset@Deprecated public List<BabelSynsetRelation> getRelatedIDs(Collection<it.uniroma1.lcl.jlt.util.Language> searchLanguages)
getOutgoingEdges(Collection) insteadsearchLanguages - the languages in which the relations are to be retrieved.BabelSynsetRelations outgoing from this synsetpublic List<BabelSynsetRelation> getOutgoingEdges()
BabelSynsetRelations outgoing from this synset@Deprecated public List<BabelSynsetRelation> getOutgoingEdges(Collection<it.uniroma1.lcl.jlt.util.Language> searchLanguages)
getOutgoingEdges(Collection)searchLanguages - the languages in which the relations are to be retrieved.BabelSynsetRelations outgoing from this synsetpublic List<BabelSynsetRelation> getOutgoingEdges(BabelPointer... relationTypes)
relationTypes - the types of the relation connecting this synset to other synsetsSynsetRelations tagged with the SynsetRelationTypes given as inputCopyright © 2016–2022. All rights reserved.