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 |
getSimpleOffset
equals, getID, getLanguage, getPOS, getSource, hashCode, toString, toSynsets, toSynsets
public 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 BabelSynset
InvalidSynsetIDException
- thrown if the ID is invalidprotected boolean isValid()
SynsetID
public BabelSynset toSynset()
BabelSynset
BabelSynset
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)
insteadBabelSynset
targetLanguages
- the languages in which the data are to be retrieved.BabelSynset
corresponding to this ID@Deprecated public List<BabelSynsetRelation> getRelatedIDs()
getOutgoingEdges()
insteadBabelSynset
BabelSynsetRelation
s 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.BabelSynsetRelation
s outgoing from this synsetpublic List<BabelSynsetRelation> getOutgoingEdges()
BabelSynsetRelation
s 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.BabelSynsetRelation
s outgoing from this synsetpublic List<BabelSynsetRelation> getOutgoingEdges(BabelPointer... relationTypes)
relationTypes
- the types of the relation connecting this synset to other synsetsSynsetRelation
s tagged with the SynsetRelationType
s given as inputCopyright © 2016–2021. All rights reserved.