| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vivoweb.harvester.translate.GlozeTranslator
public class GlozeTranslator
Gloze Tranlator This class translates XML into its own natural RDF ontology using the gloze library. Translation into the VIVO ontology is completed using the RDF Translator. TODO Stephen: Identify additional parameters required for translation TODO Stephen: Identify methods to invoke in the gloze library
| Field Summary | |
|---|---|
| protected  java.io.File | incomingSchemaThe incoming schema to help gloze translate the xml file | 
| protected  java.io.File | incomingXMLFilethe file to be translated FIXME Stephen: remove this and use the incoming stream | 
| protected  RecordHandler | inStorerecord handler for incoming records | 
| protected  RecordHandler | outStorerecord handler for storing records | 
| protected  java.net.URI | uriBasethe uri base for relative nodes in the xml file | 
| Constructor Summary | |
|---|---|
| GlozeTranslator()Default Constructor | |
| GlozeTranslator(ArgList argumentList) | |
| GlozeTranslator(java.lang.String... args)Constructor | |
| Method Summary | |
|---|---|
|  void | execute() | 
| protected static ArgParser | getParser()Get the ArgParser for this task | 
| static void | main(java.lang.String... args)Main Method | 
|  void | setIncomingSchema(java.io.File schema)Setter for schema | 
|  void | setIncomingXMLFile(java.io.File xmlFile)Setter for xmlFile | 
|  void | setURIBase(java.lang.String base)Setter for uriBase | 
|  void | translateFile()The main translation method for the gloze translation class setups up the necessary conditions for using the gloze library then executes its translation class | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.io.File incomingXMLFile
protected java.io.File incomingSchema
protected java.net.URI uriBase
protected RecordHandler inStore
protected RecordHandler outStore
| Constructor Detail | 
|---|
public GlozeTranslator()
public GlozeTranslator(java.lang.String... args)
                throws java.io.IOException
args - commandline arguments
java.io.IOException - error parsing options
public GlozeTranslator(ArgList argumentList)
                throws java.io.IOException
argumentList - java.io.IOException - error connecting to record handlers| Method Detail | 
|---|
public void setIncomingXMLFile(java.io.File xmlFile)
xmlFile - the file to translatepublic void setIncomingSchema(java.io.File schema)
schema - the schema that gloze can use, but doesn't need to translate the xmlpublic void setURIBase(java.lang.String base)
base - the base uri to apply to all relative entitiespublic void translateFile()
public void execute()
protected static ArgParser getParser()
public static void main(java.lang.String... args)
args - list of arguments required to execute glozetranslate| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||