|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--vub.starlab.ontoserver.database.DatabaseAPI
| Constructor Summary | |
DatabaseAPI()
|
|
DatabaseAPI(java.lang.String DriverName,
java.lang.String URL)
|
|
| Method Summary | |
int |
addConcept(java.lang.String description,
java.lang.String sourceName,
java.lang.String key)
Method adds a new concept to the ontology |
void |
addContextInOntology(java.lang.String ContextLabel,
int ConceptId,
java.lang.String OntoName)
This method adds a new context in an existing ontology. |
void |
addContextInOntology(java.lang.String ContextLabel,
java.lang.String ConceptDescription,
java.lang.String SourceName,
java.lang.String Key,
java.lang.String OntoName)
|
void |
addLexonInContext(java.lang.String TermLabel1,
java.lang.String TermLabel2,
java.lang.String Role,
java.lang.String Context,
java.lang.String OntoName)
This method adds a (term - relation - term) triple in an existing context in an existing ontology. |
void |
addOntology(java.lang.String OntologyName,
java.lang.String ContributorUserName,
java.lang.String OwnerUserName,
java.lang.String Status,
java.lang.String Documentation)
This method adds a new ontology. |
void |
addTermInContext(java.lang.String TermLabel,
int ConceptId,
java.lang.String Context,
java.lang.String OntoName)
This method adds a term in an existing context in an existing ontology. |
void |
addTermInContext(java.lang.String TermLabel,
java.lang.String ConceptDescription,
java.lang.String ConceptSourceName,
java.lang.String Key,
java.lang.String Context,
java.lang.String OntoName)
|
void |
addUserAccount(java.lang.String UserName,
java.lang.String Name,
java.lang.String Email,
java.lang.String PassWord,
boolean Administrator,
java.lang.String Affiliation)
This method adds a new user |
void |
addVersion(java.lang.String OntoName,
java.lang.String CreatedDate,
java.lang.String Documentation,
java.lang.String CreatorUserName,
java.lang.String VersionLabel)
This method adds a new version. |
void |
closeConnection()
This method is called when all database operations are finished, and a connection to the database is not longer required. |
void |
establishConnection()
|
void |
establishConnection(java.lang.String DriverName,
java.lang.String URL)
This method should be called before calling any other method of this interface. |
IContext |
getContextDetail(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
This method returns the details associated with a context. |
OntologyObjectCollection |
getContexts(java.lang.String ontologyName)
This method retrieves all contexts for a stored ontology present the ontology server. |
OntologyObjectCollection |
getLexons(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
This method retrieves all lexons for a context within a stored ontology As parameters, the ontology name and the context name for which you want to retrieve the lexons are required. |
OntologyObjectCollection |
getOntologies()
This method retrieves all ontologies currently stored in the ontology server. |
IOntology |
getOntologyDetail(java.lang.String ontoName)
This method returns the details associated with an ontology. |
ITerm |
getTermDetail(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm,
java.lang.String term)
This method returns the details associated with a term. |
OntologyObjectCollection |
getTerms(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
This method retrieves all terms for a context withing a stored ontology present the ontology server. |
IUser |
getUserDetail(java.lang.String userName)
This method returns the details associated with a user. |
OntologyObjectCollection |
getUsers()
This method retrieves all users currently registered in the ontology server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseAPI()
public DatabaseAPI(java.lang.String DriverName,
java.lang.String URL)
| Method Detail |
public void establishConnection(java.lang.String DriverName,
java.lang.String URL)
IDatabaseAPIestablishConnection in interface IDatabaseAPIvub.starlab.ontoserver.database.IDatabaseAPIDriverName - the name of the driver, for example, when using the jdbc-odbc bridge,
this DriverName would be "sun.jdbc.odbc.JdbcOdbcDriver"URL - a java conventional string consisting of jdbc:<subprotocol >:<subname>,
mostly this URL is suplied by the driver, for example, when using the jdbc-odbc bridge,
this URL would be "jdbc:odbc:name_of_datasource"IDatabaseAPI.closeConnection()public void closeConnection()
IDatabaseAPIcloseConnection in interface IDatabaseAPIvub.starlab.ontoserver.database.IDatabaseAPIIDatabaseAPI.establishConnection(String, String)
public void addUserAccount(java.lang.String UserName,
java.lang.String Name,
java.lang.String Email,
java.lang.String PassWord,
boolean Administrator,
java.lang.String Affiliation)
throws UserAccountAlreadyExistsException
IDatabaseInsertionAPIaddUserAccount in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPIUserName - the username for the new userName - the name for the new userEmail - the email adres for the new userPassWord - the password for the new userAdministrator - denoting if the user does or does not have administrator accessAffiliation - the affiliation for the new userUserAccountAlreadyExistsException - exception is thrown when the user already exists
public void addContextInOntology(java.lang.String ContextLabel,
java.lang.String ConceptDescription,
java.lang.String SourceName,
java.lang.String Key,
java.lang.String OntoName)
throws ContextAlreadyExistsException
public void addContextInOntology(java.lang.String ContextLabel,
int ConceptId,
java.lang.String OntoName)
throws ContextAlreadyExistsException
IDatabaseInsertionAPIaddContextInOntology in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPIContextLabel - the name for the new contextConceptId - the id of the concept which is associated with the term specifying the ontologyOntoName - the name for the ontologyContextAlreadyExistsException - exception is thrown when the context was already present in the ontology
public int addConcept(java.lang.String description,
java.lang.String sourceName,
java.lang.String key)
IDatabaseInsertionAPIaddConcept in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPIdescription - the description for the conceptsourceName - the name of the source where the concept originates fromkey - an identification of the key which was used for the description, which should
give a hint on how the description parameter should be interpreted
public void addTermInContext(java.lang.String TermLabel,
int ConceptId,
java.lang.String Context,
java.lang.String OntoName)
throws ContextNotFoundException
IDatabaseInsertionAPIaddTermInContext in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPITermLabel - the name of the term you want to addConceptId - the id of the concept which is associated with the term you want to addContext - the name for the context in which you want to add the termOntoName - the name for the ontology -
public void addTermInContext(java.lang.String TermLabel,
java.lang.String ConceptDescription,
java.lang.String ConceptSourceName,
java.lang.String Key,
java.lang.String Context,
java.lang.String OntoName)
throws ContextNotFoundException
public void addLexonInContext(java.lang.String TermLabel1,
java.lang.String TermLabel2,
java.lang.String Role,
java.lang.String Context,
java.lang.String OntoName)
throws ContextNotFoundException
IDatabaseInsertionAPIaddLexonInContext in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPITermLabel1 - the label of the first term in the lexon tripleTermLabel2 - the label of the second term in the lexon tripleRole - the rolename for the lexon tripleContext - the name of the context in which you want to add the tripleOntoName - the name of the ontologyContextNotFoundException - exception thrown when the context in which you want to insert is not found
public void addOntology(java.lang.String OntologyName,
java.lang.String ContributorUserName,
java.lang.String OwnerUserName,
java.lang.String Status,
java.lang.String Documentation)
throws OntologyAlreadyExistsException
IDatabaseInsertionAPIaddOntology in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPIOntologyName - the name for the new ontologyContributorUserName - the username of the person who contributed the ontologyOwnerUserName - the username of the owner of this ontologyStatus - the status of the new ontologyDocumentation - some documentation for the new ontologyOntologyAlreadyExistsException - exception thrown when the ontology already exists
public void addVersion(java.lang.String OntoName,
java.lang.String CreatedDate,
java.lang.String Documentation,
java.lang.String CreatorUserName,
java.lang.String VersionLabel)
throws VersionAlreadyExistsException
IDatabaseInsertionAPIaddVersion in interface IDatabaseInsertionAPIvub.starlab.ontoserver.database.IDatabaseInsertionAPIOntoName - the name of the ontology for which you want to add a versionCreatedDate - the date from this versionDocumentation - documentation which may be suppliedCreatorUserName - the username of the user creating this new versionVersionLabel - the label for the versionVersionAlreadyExistsException - cannot occur yet, as there is no version management in the
current versionpublic void establishConnection()
public OntologyObjectCollection getOntologies()
IDatabaseRetrievalAPIgetOntologies in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIOntologyObjectCollection,
OntologyObjectIterator,
OntologyCollectionIterator,
IOntology
public IOntology getOntologyDetail(java.lang.String ontoName)
throws OntologyNotFoundException
IDatabaseRetrievalAPIgetOntologyDetail in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIontoName - the name of the ontology for which you want the detailsOntologyNotFoundException - exception thrown when the ontology is not foundIOntology,
OntologyNotFoundExceptionpublic OntologyObjectCollection getUsers()
IDatabaseRetrievalAPIgetUsers in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIOntologyObjectCollection,
OntologyObjectIterator,
UserCollectionIterator,
IUser
public IUser getUserDetail(java.lang.String userName)
throws UserNotFoundException
IDatabaseRetrievalAPIgetUserDetail in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIuserName - the username for which you want the detailsUserNotFoundException - exception thrown when the user is not foundIUser,
UserNotFoundExceptionpublic OntologyObjectCollection getContexts(java.lang.String ontologyName)
IDatabaseRetrievalAPIgetContexts in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIontologyName - the name of the ontology for which you want the contextsOntologyObjectCollection,
OntologyObjectIterator,
ContextCollectionIterator,
IContext
public IContext getContextDetail(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
throws ContextNotFoundException
IDatabaseRetrievalAPIgetContextDetail in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIuserName - the username for which you want the detailsContextNotFoundException - exception thrown when the context is not foundIContext,
ContextNotFoundException
public OntologyObjectCollection getLexons(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
throws ContextNotFoundException
IDatabaseRetrievalAPIgetLexons in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIontologyName - the name of the ontologycontextIdentifyingTerm - the name of the contextOntologyObjectCollection,
OntologyObjectIterator,
LexonCollectionIterator,
ILexon
public OntologyObjectCollection getTerms(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm)
throws ContextNotFoundException
IDatabaseRetrievalAPIgetTerms in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIontologyName - the name of the ontology for which you want the contextscontextIdentifyingTerm - the name of the term specifying the contextOntologyObjectCollection,
OntologyObjectIterator,
TermCollectionIterator,
ITerm
public ITerm getTermDetail(java.lang.String ontologyName,
java.lang.String contextIdentifyingTerm,
java.lang.String term)
throws ContextNotFoundException,
TermNotFoundException
IDatabaseRetrievalAPIgetTermDetail in interface IDatabaseRetrievalAPIvub.starlab.ontoserver.database.IDatabaseRetrievalAPIontologyName - the name of the ontology for which you want the contextscontextIdentifyingTerm - the name of the term specifying the contextterm - the term for which you want to retrieve the detailsContextNotFoundException - exception thrown when the context is not foundContextNotFoundException - exception thrown when the term is not foundITerm,
ContextNotFoundException,
TermNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||