|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Declared here are the methods defined for accessing the underlying database structure for H-DOSE. See DBWRapperImpl for more informations.
| Method Summary | |
int |
countAnnotations()
counts the total numer of inserted annotations |
int |
countAnnotations(java.lang.String topicURI)
counts the total number of annotations given the topic they refer to |
java.lang.String |
dbStatus()
last database error |
java.lang.Integer |
deleteAuthor(java.lang.Integer idauthor)
delete a topic from the database, given the key |
java.lang.Integer |
deleteAuthor(java.lang.String author)
delete a topic from the database, given the topicURI |
int |
deleteSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
Delete an annotation block |
java.lang.Integer |
deleteSynset(java.lang.Integer i)
Elimina un Synset, dato topicUri e linguaggio nella tabella sysnset |
java.lang.Integer |
deleteSynset(java.lang.String topicURI,
java.lang.String lang)
Elimina un Synset, dato topicUri e linguaggio nella tabella sysnset |
java.lang.Integer |
deleteSynset(Synset S)
elimina un synset, data la chiave |
java.lang.Integer |
deleteTopic(java.lang.Integer idtopic)
delete a topic from the database, given the key |
java.lang.Integer |
deleteTopic(java.lang.String topic)
delete a topic from the database, given the topicURI |
java.lang.Integer |
deleteType(java.lang.Integer idtype)
delete a topic from the database, given the key |
java.lang.Integer |
deleteType(java.lang.String anntype)
delete a topic from the database, given the topicURI |
int |
deleteXSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
Deleete an (expanded) annotation block |
Spectrum |
getSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
restituisce il blocco di annotazioni riferite ad un frammento (autore e tipo sono facoltativi) |
TopicCoverage |
getTopicsCoverage()
Per poter implementare le politiche di autogestione della copertura concettuale delle annotazioni occorre introdurre un metodo getTopicsCoverage |
Spectrum |
getXSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
restituisce il blocco di annotazioni raffinate riferite ad un frammento (autore e tipo sono facoltativi) |
java.lang.Integer |
insertAuthor(java.lang.String author)
inserts an annotation author into the database |
int |
insertSpectrum(Spectrum spectrum)
Insert an annotaions' block gotten from a spectrum |
java.lang.Integer |
insertSynset(java.lang.String topicURI,
java.lang.String lang)
Inserisce una riga nella tabella sysnset |
java.lang.Integer |
insertTopic(java.lang.String topic)
inserts a topic into the database |
java.lang.Integer |
insertType(java.lang.String anntype)
inserts an annotation type into the database |
int |
insertXSpectrum(Spectrum spectrum)
Inserts a block of refined annotations |
java.lang.Integer |
loadSynset(Synset S)
loads a new synset, or add some mwords to an existing synset. |
java.util.Vector |
searchXByTopic(java.util.Vector topicURIs,
int level)
restituisce gli spettri in cui compaiono valori non nulli per i topic specificati |
java.lang.Integer |
selectAuthor(java.lang.String author)
return the key of a given annotation author |
java.lang.Integer |
selectSynset(java.lang.String topicURI,
java.lang.String lang)
Cerca una riga nella tabella sysnset |
java.lang.Integer |
selectTopic(java.lang.String topic)
return the key of a given topic |
java.lang.Integer |
selectType(java.lang.String type)
return the key of a given annotation type |
int |
updateSpectrum(Spectrum spectrum)
updates the given Spectrum |
java.lang.Integer |
updateSynset(Synset S,
boolean addMode)
uptates the synset values |
| Method Detail |
public int insertSpectrum(Spectrum spectrum)
throws java.lang.Exception
spectrum - The Spectrum that will be inserted into the DB
java.lang.Exception - For database errors
public int insertXSpectrum(Spectrum spectrum)
throws java.lang.Exception
spectrum - The Spectrum that will be inserted into the DB
java.lang.Exception - For database errors
public Spectrum getSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
uri - uri del frammentoxPath - xpath del frammentoauthor - autoretype - e tipo
public Spectrum getXSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
uri - uri del frammentoxPath - xpath del frammentoauthor - autoretype - e tipo
public int updateSpectrum(Spectrum spectrum)
throws java.lang.Exception
spectrum - Spectrum to update
java.lang.Exception - in case of DB errors
public int deleteSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
uri - uri for the annotationsxPath - xpath for the annotationsauthor - author of the annotation (or an empty String)type - type of the Annotation (or an Empty String)
public int deleteXSpectrum(java.lang.String uri,
java.lang.String xPath,
java.lang.String author,
java.lang.String type)
uri - uri for the annotationsxPath - xpath for the annotationsauthor - author of the annotation (or an empty String)type - type of the Annotation (or an Empty String)
public java.lang.String dbStatus()
public java.util.Vector searchXByTopic(java.util.Vector topicURIs,
int level)
level - il numero minimo di match per ogni topic restituitotopicURIs - vettore di topic su cui fare la ricerca
public java.lang.Integer selectAuthor(java.lang.String author)
throws java.lang.Exception
author - the elelement to retrieve
java.lang.Exception - in error case
public java.lang.Integer selectType(java.lang.String type)
throws java.lang.Exception
type - the element type to retrieve
java.lang.Exception - in error case
public java.lang.Integer selectTopic(java.lang.String topic)
throws java.lang.Exception
topic - tpoic to insert
java.lang.Exception - in error case
public java.lang.Integer insertAuthor(java.lang.String author)
throws java.lang.Exception
author - the author to insert
java.lang.Exception - in error case
public java.lang.Integer insertType(java.lang.String anntype)
throws java.lang.Exception
anntype - the annotation type to insert
java.lang.Exception - in error case
public java.lang.Integer insertTopic(java.lang.String topic)
throws java.lang.Exception
topic - tpoic to insert
java.lang.Exception - in error case
public java.lang.Integer deleteAuthor(java.lang.Integer idauthor)
throws java.lang.Exception
idauthor - the id of the element to delete
java.lang.Exception - in error
public java.lang.Integer deleteAuthor(java.lang.String author)
throws java.lang.Exception
author - the element to delete
java.lang.Exception - in error
public java.lang.Integer deleteType(java.lang.Integer idtype)
throws java.lang.Exception
idtype - the element to delete
java.lang.Exception - in error
public java.lang.Integer deleteType(java.lang.String anntype)
throws java.lang.Exception
anntype - the element to delete
java.lang.Exception - in error
public java.lang.Integer deleteTopic(java.lang.Integer idtopic)
throws java.lang.Exception
idtopic - key of the elemet do delete
java.lang.Exception - in error
public java.lang.Integer deleteTopic(java.lang.String topic)
throws java.lang.Exception
topic - elemet to delete
java.lang.Exception - in error
public TopicCoverage getTopicsCoverage()
throws java.lang.Exception
java.lang.Exception - In caso di errore spara una eccezione
public java.lang.Integer deleteSynset(java.lang.Integer i)
throws java.lang.Exception
i - chiave da eliminare
java.lang.Exception - eccezione in caso di errore
public java.lang.Integer deleteSynset(java.lang.String topicURI,
java.lang.String lang)
throws java.lang.Exception
topicURI - l'uri a cui si riferisce il synsetlang - lingua del synset
java.lang.Exception - si` spara un'eccezione
public java.lang.Integer deleteSynset(Synset S)
throws java.lang.Exception
S - da eliminare (ATTENZIONE: non elimina solo quello che
si trova nelle occour ....)
java.lang.Exception - In caso di problemi al DB spara un'eccezione
public java.lang.Integer insertSynset(java.lang.String topicURI,
java.lang.String lang)
throws java.lang.Exception
topicURI - l'uri a cui si riferisce il synsetlang - lingua del synset
java.lang.Exception - in caso di errori...
public java.lang.Integer selectSynset(java.lang.String topicURI,
java.lang.String lang)
throws java.lang.Exception
topicURI - l'uri a cui si riferisce il synsetlang - lingua del synset
java.lang.Exception - for db errors
public java.lang.Integer loadSynset(Synset S)
throws java.lang.Exception
S - Synset to insert/extend
java.lang.Exception - for db problems/mword already present
public java.lang.Integer updateSynset(Synset S,
boolean addMode)
throws java.lang.Exception
addMode - false for substitution of frequency, true for addingS - Synset to insert/update
java.lang.Exception - for database errors
public int countAnnotations()
throws java.lang.Exception
java.lang.Exception - in case of database error
public int countAnnotations(java.lang.String topicURI)
throws java.lang.Exception
topicURI - the topic to check
java.lang.Exception - in case of seroius DB problems
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||