|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnesstar.example.MadieraExample
public class MadieraExample
| Constructor Summary | |
|---|---|
MadieraExample()
Constructor NOTE: no real need to create an instance. |
|
| Method Summary | |
|---|---|
List |
addListItem(List list,
Term term)
This adds a term to a list. |
void |
addSynonym(Term t,
String syn)
This adds a synonym to an Array of synonyms |
static void |
addToObjsToSave(Object obj,
Set objsToSave)
Add an object and its parts to the set of object to save |
static void |
addToSave(List parts,
Set objsToSave)
Add a list of objects to the list of objects to be saved in the RDF file |
void |
convertTableClass()
This converts the contents of table dbo_elsst_class into Term and Concept objects. |
void |
convertTableScope()
This populates the Term.comment or Term.translationNote fields from the dbo_elsst_scope table, depending on the value of the 'smark' field |
void |
convertTableThes()
This manages the relationships between Terms based on the information in the dbo_elsst_thes table |
String |
getLanguageCode(int lang)
this maps the language code from int to char |
static String |
getRDF(NetDB db,
Collection roots)
These three methods turn the collection of objects into the RDF description |
void |
initDB()
This sets up the connection to the database using the jdbc:odbc driver |
void |
initNesstar()
This initialises the Nesstar Client Protocol |
static void |
main(String[] args)
main entry point required parameters: - ODBC source name (for connecting to the MS Access database) - target server ip address - target server port - target server name - target server username - target server password - xml output file |
Concept |
newConcept(String id)
This creates a new Concept object, using the id |
void |
outputRDF()
|
void |
parseDB()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MadieraExample()
| Method Detail |
|---|
public static void main(String[] args)
public void parseDB()
throws Exception
Exception
public void convertTableClass()
throws Exception
Exceptionpublic String getLanguageCode(int lang)
public Concept newConcept(String id)
throws Exception
Exception
public void convertTableScope()
throws Exception
Exception
public void convertTableThes()
throws Exception
Exception
public List addListItem(List list,
Term term)
throws Exception
Exception
public void addSynonym(Term t,
String syn)
throws Exception
Exception
public void outputRDF()
throws Exception
Exception
public static String getRDF(NetDB db,
Collection roots)
throws Exception
root - the root of the object graph
Exception
public static void addToObjsToSave(Object obj,
Set objsToSave)
throws Exception
Exception
public static void addToSave(List parts,
Set objsToSave)
throws Exception
parts - - the list of objects to saveobjsToSave - - the total set of objects to save
Exception
public void initNesstar()
throws Exception
Exception
public void initDB()
throws Exception
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||