it.unimo.dbgroup.momis.annotationOntology
Class OntologySynset

java.lang.Object
  extended byit.unimo.dbgroup.momis.annotationOntology.OntologyObject
      extended byit.unimo.dbgroup.momis.annotationOntology.OntologySynset
All Implemented Interfaces:
java.io.Serializable

public class OntologySynset
extends OntologyObject
implements java.io.Serializable

OntologySynset Class is a class that contains the information of the synsets used by MOMIS to retrieve the lexicon derived relationships.

See Also:
Serialized Form

Field Summary
private  java.lang.Object _extenderIdentifier
           
private  java.lang.String _gloss
           
private  java.lang.Object _synsetIdentifier
           
private  int _syntacticCategory
           
 
Fields inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyObject
 
Constructor Summary
OntologySynset()
           
 
Method Summary
 boolean equals(OntologySynset synset)
          cecks if two OntologySynset are equals
 java.util.Vector getAllHolonyms()
          Retrieves recursively all the holonyms of this synset
 java.util.Vector getAllHypernyms()
          Retrieves recursively all the hypernyms of this synset
 OntologyExtender getExtender()
          Retrieves the Extender for this lemma
 java.lang.Object getExtenderIdentifier()
          Getter for the _extenderIdentifier field
 java.lang.String getGloss()
          Getter for the _gloss field
 java.util.Vector getHypernyms()
          Retrieves all the hypermyms of this synset
 java.util.Vector getHyponyms()
          Retrieves all the hypermyms of this synset
 java.util.Vector getLemmas()
          Retrieves all OntologyLemma for this synset
 java.util.Vector getLemmasNames()
          Retrieves all OntologyLemma names for this synset
 OntologyLemmaSynset getLemmaSynset(int senseNumber)
          Retrieves a given OntologyLemmaSynset for this lemma
 java.util.Vector getLemmaSynsets()
          Retrieves all OntologyLemmaSynset for this synset
 java.util.Vector getRelationshipIterativelyThisIsSource(java.lang.String symbol)
          iterative function that retrieves all synset connected to this synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)
 java.util.Vector getRelationshipRecursivelyThisIsSource(OntologySynset synset, java.lang.String symbol)
          recursive function that retrieves all synset connected to the synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)
 java.util.Vector getRelationshipRecursivelyThisIsSource(java.lang.String symbol)
          recursive function that retrieves all synset connected to this synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)
 java.util.Vector getRelationshipThisIsSource()
          Retrieves all OntologyRelationship where this Synset is Source
 java.util.Vector getRelationshipThisIsSource(java.lang.String symbol)
          Retrieves all the relationships of a specific type.
 java.lang.Object getSynsetIdentifier()
          Getter for the _synsetIdentifier field
 int getSyntacticCategory()
          Getter for the _syntacticCategory field
 int hashCode()
           
 void setExtenderIdentifier(java.lang.Object v)
          Setter for the _extenderIdentifier field
 void setGloss(java.lang.String v)
          Setter for the _gloss field
 void setSynsetIdentifier(java.lang.Object v)
          Setter for the _synsetIdentifier field
 void setSyntacticCategory(int v)
          Setter for the _syntacticCategory field
 java.lang.String toString()
          Returns a string representation of this object
 java.util.Vector trovaCoordinati()
          method that retrieves all coordinati OntologySynset of this synset a coordinato is an hyponym of the same hypernym.
 java.util.Vector trovaGemelli(OntologyLemma lemma)
          method that retrieves the gemelli of a synset in function of an OntologyLemma: two synset are gemelli when they have al least tree lemmas equals and one of these is the lemma parameter of this method.
 java.util.Vector trovaParenti(OntologyLemma lemma)
          method that retrieves all the parenti (sorelle e gemelli) of this synset in relation with a particular OntologyLemma.
 java.util.Vector trovaSorelle(OntologyLemma lemma)
          method that retrieves the sorelle of a synset related to a particular OntologyLemma.
 
Methods inherited from class it.unimo.dbgroup.momis.annotationOntology.OntologyObject
getOntologyManager, setOntologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_synsetIdentifier

private java.lang.Object _synsetIdentifier

_gloss

private java.lang.String _gloss

_syntacticCategory

private int _syntacticCategory

_extenderIdentifier

private java.lang.Object _extenderIdentifier
Constructor Detail

OntologySynset

public OntologySynset()
Method Detail

equals

public boolean equals(OntologySynset synset)
cecks if two OntologySynset are equals

Returns:
boolean: true if are equals, false if not

getExtender

public OntologyExtender getExtender()
                             throws java.lang.Exception
Retrieves the Extender for this lemma

Throws:
java.lang.Exception

getLemmaSynset

public OntologyLemmaSynset getLemmaSynset(int senseNumber)
                                   throws java.lang.Exception
Retrieves a given OntologyLemmaSynset for this lemma

Throws:
java.lang.Exception

getLemmaSynsets

public java.util.Vector getLemmaSynsets()
                                 throws java.lang.Exception
Retrieves all OntologyLemmaSynset for this synset

Throws:
java.lang.Exception

getLemmas

public java.util.Vector getLemmas()
                           throws java.lang.Exception
Retrieves all OntologyLemma for this synset

Throws:
java.lang.Exception

getLemmasNames

public java.util.Vector getLemmasNames()
Retrieves all OntologyLemma names for this synset


getRelationshipThisIsSource

public java.util.Vector getRelationshipThisIsSource()
                                             throws java.lang.Exception
Retrieves all OntologyRelationship where this Synset is Source

Throws:
java.lang.Exception

getRelationshipThisIsSource

public java.util.Vector getRelationshipThisIsSource(java.lang.String symbol)
Retrieves all the relationships of a specific type. This type is given by the parameter symbol.

Returns:
Vector: a vector of OntologyRelationship

getHypernyms

public java.util.Vector getHypernyms()
Retrieves all the hypermyms of this synset

Returns:
Vector: a vector of OntologySynset

getAllHypernyms

public java.util.Vector getAllHypernyms()
Retrieves recursively all the hypernyms of this synset

Returns:
Vector: a vector of OntologySynset

getAllHolonyms

public java.util.Vector getAllHolonyms()
Retrieves recursively all the holonyms of this synset

Returns:
Vector: a vector of OntologySynset

getHyponyms

public java.util.Vector getHyponyms()
Retrieves all the hypermyms of this synset

Returns:
Vector: a vector of OntologySynset

getRelationshipIterativelyThisIsSource

public java.util.Vector getRelationshipIterativelyThisIsSource(java.lang.String symbol)
iterative function that retrieves all synset connected to this synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)

Returns:
Vector: a vector of OntologySynset

getRelationshipRecursivelyThisIsSource

public java.util.Vector getRelationshipRecursivelyThisIsSource(OntologySynset synset,
                                                               java.lang.String symbol)
recursive function that retrieves all synset connected to the synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)

Returns:
Vector: a vector of OntologySynset

getRelationshipRecursivelyThisIsSource

public java.util.Vector getRelationshipRecursivelyThisIsSource(java.lang.String symbol)
recursive function that retrieves all synset connected to this synset via the selected relationship type (es: all hypernyms, olso the not dirtect ones)

Returns:
Vector: a vector of OntologySynset

trovaGemelli

public java.util.Vector trovaGemelli(OntologyLemma lemma)
method that retrieves the gemelli of a synset in function of an OntologyLemma: two synset are gemelli when they have al least tree lemmas equals and one of these is the lemma parameter of this method.

Returns:
Vector: a vector of all the OntologySynset gemelli

trovaSorelle

public java.util.Vector trovaSorelle(OntologyLemma lemma)
method that retrieves the sorelle of a synset related to a particular OntologyLemma. A sorella of this synset has the same lemma and the same hypernym.

Returns:
Vector: a vector that contains the sorelle of this synset

trovaParenti

public java.util.Vector trovaParenti(OntologyLemma lemma)
method that retrieves all the parenti (sorelle e gemelli) of this synset in relation with a particular OntologyLemma.

Returns:
Vector: a vector of OntologySynset parenti

trovaCoordinati

public java.util.Vector trovaCoordinati()
method that retrieves all coordinati OntologySynset of this synset a coordinato is an hyponym of the same hypernym.

Returns:
Vector: a vector of OntologySynset

getSynsetIdentifier

public java.lang.Object getSynsetIdentifier()
Getter for the _synsetIdentifier field


setSynsetIdentifier

public void setSynsetIdentifier(java.lang.Object v)
Setter for the _synsetIdentifier field


getGloss

public java.lang.String getGloss()
Getter for the _gloss field


setGloss

public void setGloss(java.lang.String v)
Setter for the _gloss field


getSyntacticCategory

public int getSyntacticCategory()
Getter for the _syntacticCategory field


setSyntacticCategory

public void setSyntacticCategory(int v)
Setter for the _syntacticCategory field


getExtenderIdentifier

public java.lang.Object getExtenderIdentifier()
Getter for the _extenderIdentifier field


setExtenderIdentifier

public void setExtenderIdentifier(java.lang.Object v)
Setter for the _extenderIdentifier field


toString

public java.lang.String toString()
Returns a string representation of this object


hashCode

public int hashCode()


Universita' di Modena e Reggio Emilia