it.unimo.dbgroup.momis.annotationOntology
Interface OntologyManagerImplementation

All Known Implementing Classes:
WnManagerDbTorque, WnManagerFiles

public interface OntologyManagerImplementation

Interface to access the Ontology such as Wordnet through Jdbc or files


Method Summary
 OntologyExtender getExtender(java.lang.Object extenderIdentifier)
           
 OntologyLemma getLemma(java.lang.Object lemmaIdentifier)
           
 OntologyLemma getLemma(java.lang.String lemmaName, int syntacticCategory)
           
 java.util.Vector getLemmaIdsByName(java.lang.String lemmaName)
          retrives all lemma Identifiers of lemma with the given "lemma" name.
 OntologyLemmaSynset getLemmaSynset(java.lang.Object lemmaSynsetIdentifier)
           
 OntologyLemmaSynset getLemmaSynset(OntologyLemma ontologyLemma, int senseNumber)
           
 OntologyLemmaSynset getLemmaSynset(OntologySynset ontologySynset, int senseNumber)
           
 java.util.Vector getLemmaSynsetsIds(OntologyLemma ontologyLemma)
          Retrieves a Vector of Internal Identifiers of the LemmaSynsets related to the given ontologyLemma
 java.util.Vector getLemmaSynsetsIds(OntologySynset ontologySynset)
          Retrieves a Vector of Internal Identifiers of the LemmaSynsets related to the given ontologySynset
 java.util.Vector getMeanings(java.lang.String lemmaName)
          retrieves the OntologyMeaning of this lemma
 OntologyRelationship getRelationship(java.lang.Object relationshipIdentifier)
           
 OntologyRelationshipType getRelationshipType(java.lang.Object relationshipTypeIdentifier)
           
 OntologySynset getSynset(java.lang.Object synsetIdentifier)
           
 java.util.Vector getSynsetRelationshipWhereSourceIsIds(OntologySynset ontologySynset)
          Retrieves a Vector of Internal Identifiers of the OntologyRelationship where the given Synset is Source
 void init(java.util.Properties configuration)
          Initialize the manager
 boolean isOntologyImplementationEditable()
          returns true if the OntologyImplementation is editable
 

Method Detail

init

public void init(java.util.Properties configuration)
          throws java.lang.Exception
Initialize the manager

Throws:
java.lang.Exception

getLemma

public OntologyLemma getLemma(java.lang.String lemmaName,
                              int syntacticCategory)
                       throws java.lang.Exception
Parameters:
lemmaName - name of the lemma
syntacticCategory - number of the syntactic category
Throws:
java.lang.Exception

getLemma

public OntologyLemma getLemma(java.lang.Object lemmaIdentifier)
                       throws java.lang.Exception
Parameters:
lemmaIdentifier - internal identifier for the lemma
Throws:
java.lang.Exception

getLemmaIdsByName

public java.util.Vector getLemmaIdsByName(java.lang.String lemmaName)
                                   throws java.lang.Exception
retrives all lemma Identifiers of lemma with the given "lemma" name.

Parameters:
lemmaName - name of the lemma
Returns:
a Vector of internal OntologyLemmaIdentifier
Throws:
java.lang.Exception

getExtender

public OntologyExtender getExtender(java.lang.Object extenderIdentifier)
                             throws java.lang.Exception
Parameters:
extenderIdentifier - internal identifier for the extender
Throws:
java.lang.Exception

getLemmaSynset

public OntologyLemmaSynset getLemmaSynset(java.lang.Object lemmaSynsetIdentifier)
                                   throws java.lang.Exception
Parameters:
lemmaSynsetIdentifier - internal identifier for the lemmaSynset
Throws:
java.lang.Exception

getLemmaSynset

public OntologyLemmaSynset getLemmaSynset(OntologyLemma ontologyLemma,
                                          int senseNumber)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getLemmaSynsetsIds

public java.util.Vector getLemmaSynsetsIds(OntologyLemma ontologyLemma)
                                    throws java.lang.Exception
Retrieves a Vector of Internal Identifiers of the LemmaSynsets related to the given ontologyLemma

Throws:
java.lang.Exception

getLemmaSynset

public OntologyLemmaSynset getLemmaSynset(OntologySynset ontologySynset,
                                          int senseNumber)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getLemmaSynsetsIds

public java.util.Vector getLemmaSynsetsIds(OntologySynset ontologySynset)
                                    throws java.lang.Exception
Retrieves a Vector of Internal Identifiers of the LemmaSynsets related to the given ontologySynset

Throws:
java.lang.Exception

getSynset

public OntologySynset getSynset(java.lang.Object synsetIdentifier)
                         throws java.lang.Exception
Parameters:
synsetIdentifier - internal identifier for the synset
Throws:
java.lang.Exception

getSynsetRelationshipWhereSourceIsIds

public java.util.Vector getSynsetRelationshipWhereSourceIsIds(OntologySynset ontologySynset)
                                                       throws java.lang.Exception
Retrieves a Vector of Internal Identifiers of the OntologyRelationship where the given Synset is Source

Throws:
java.lang.Exception

getRelationship

public OntologyRelationship getRelationship(java.lang.Object relationshipIdentifier)
                                     throws java.lang.Exception
Parameters:
relationshipIdentifier - internal identifier for the relationship
Throws:
java.lang.Exception

getRelationshipType

public OntologyRelationshipType getRelationshipType(java.lang.Object relationshipTypeIdentifier)
                                             throws java.lang.Exception
Parameters:
relationshipTypeIdentifier - internal identifier for the relationshipType
Throws:
java.lang.Exception

getMeanings

public java.util.Vector getMeanings(java.lang.String lemmaName)
                             throws java.lang.Exception
retrieves the OntologyMeaning of this lemma

Throws:
java.lang.Exception

isOntologyImplementationEditable

public boolean isOntologyImplementationEditable()
returns true if the OntologyImplementation is editable



Universita' di Modena e Reggio Emilia