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 |
ID_LENGTH
The BabelNet ID length
|
static String |
ID_PREFIX
The BabelNet 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(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 |
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 ID_PREFIX
public static final int ID_LENGTH
public BabelSynsetID(String id) throws InvalidSynsetIDException
id
- the ID of the BabelSynset
InvalidSynsetIDException
- thrown if the ID is invalidpublic 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 synsetCopyright © 2016–2018. All rights reserved.