Class ResourceID
java.lang.Object
it.uniroma1.lcl.kb.ResourceID
- Direct Known Subclasses:
FrameNetID, GeoNamesID, MSTermID, OmegaWikiID, ResourceWithLemmaID, SynsetID, VerbNetID, WikidataID, WiktionaryID
A basic resource identifier.
- Author:
- navigli, vannella
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringId of aResourceIDprotected it.uniroma1.lcl.jlt.util.LanguageLanguage of the resource ID, if availableprotected it.uniroma1.lcl.jlt.util.POSPOS of the resource ID, if availableprotected SenseSourceSource of the resource ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResourceID(String id, SenseSource source) Builds the ResourceID -
Method Summary
Modifier and TypeMethodDescriptionbooleangetID()Returns theResourceIDIDit.uniroma1.lcl.jlt.util.LanguageGets the language associated with the given ID (default is null)it.uniroma1.lcl.jlt.util.POSgetPOS()The part of speech tag associated with the given ID (default is null).Gets the source associated with the given IDinthashCode()toString()Converts the ID to a collection ofBabelSynsetstoSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages) Converts the ID to a collection ofBabelSynsets
-
Field Details
-
id
Id of aResourceID -
pos
protected it.uniroma1.lcl.jlt.util.POS posPOS of the resource ID, if available -
source
Source of the resource ID -
language
protected it.uniroma1.lcl.jlt.util.Language languageLanguage of the resource ID, if available
-
-
Constructor Details
-
ResourceID
Builds the ResourceID- Parameters:
id- id of the resourcesource- source of the resource
-
-
Method Details
-
getID
-
getPOS
public it.uniroma1.lcl.jlt.util.POS getPOS()The part of speech tag associated with the given ID (default is null).- Returns:
- the POS tag of the resource
-
getSource
Gets the source associated with the given ID- Returns:
- the associated source
-
getLanguage
public it.uniroma1.lcl.jlt.util.Language getLanguage()Gets the language associated with the given ID (default is null)- Returns:
- the associated language
-
hashCode
-
toString
-
equals
-
toSynsets
Converts the ID to a collection ofBabelSynsets- Returns:
- the corresponding synsets (in most cases, it will be just a single synset)
-
toSynsets
Converts the ID to a collection ofBabelSynsets- Parameters:
targetLanguages- the languages to populate the synsets with- Returns:
- the corresponding synsets (in most cases, it will be just a single synset)
-