org.LexGrid.LexBIG.Impl.exporters
Class OwlRdfExporterImpl

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.exporters.BaseExporter
      extended by org.LexGrid.LexBIG.Impl.exporters.OwlRdfExporterImpl
All Implemented Interfaces:
java.io.Serializable, Exporter, OWL_Exporter, Extendable, StatusReporter

public class OwlRdfExporterImpl
extends BaseExporter
implements OWL_Exporter

Exports content to OWL/RDF format.

See Also:
Serialized Form

Field Summary
static java.lang.String name
           
 
Fields inherited from class org.LexGrid.LexBIG.Impl.exporters.BaseExporter
ASYNC_OPTION, description_, FAIL_ON_ERROR_OPTION, name_, OVERWRITE_OPTION, provider_, version_
 
Constructor Summary
OwlRdfExporterImpl()
           
 
Method Summary
protected  OptionHolder declareAllowedOptions(OptionHolder holder)
           
protected  void doExport()
           
 void export(AbsoluteCodingSchemeVersionReference source, java.net.URI destination, boolean overwrite, boolean stopOnErrors, boolean async)
          Export content from the underlying LexGrid repository.
protected  void exportCodingSchemeData()
           
protected  LgLoggerIF getLogger()
           
 OptionHolder getOptions()
           
static void register()
           
 void setCng(CodedNodeGraph cng)
           
 void setCns(CodedNodeSet cns)
           
 
Methods inherited from class org.LexGrid.LexBIG.Impl.exporters.BaseExporter
baseExport, clearLog, export, exportPickListDefinition, exportValueSetDefinition, exportValueSetResolution, getDescription, getLog, getMessageDirector, getName, getPickListId, getProvider, getReferences, getResourceUri, getSource, getStatus, getValueSetDefinitionRevisionId, getValueSetDefinitionURI, getVersion, isExportValueSetResolution, setExportValueSetResolution, setPickListId, setResourceUri, setSource, setValueSetDefinitionRevisionId, setValueSetDefinitionURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Export.Exporter
clearLog, export, exportPickListDefinition, exportValueSetDefinition, getLog, getReferences, getStatus
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getName, getProvider, getVersion
 

Field Detail

name

public static final java.lang.String name
See Also:
Constant Field Values
Constructor Detail

OwlRdfExporterImpl

public OwlRdfExporterImpl()
Method Detail

setCns

public void setCns(CodedNodeSet cns)

setCng

public void setCng(CodedNodeGraph cng)

getLogger

protected LgLoggerIF getLogger()
Overrides:
getLogger in class BaseExporter

register

public static void register()
                     throws LBParameterException,
                            LBException
Throws:
LBParameterException
LBException

doExport

protected void doExport()
Specified by:
doExport in class BaseExporter

exportCodingSchemeData

protected void exportCodingSchemeData()

declareAllowedOptions

protected OptionHolder declareAllowedOptions(OptionHolder holder)
Specified by:
declareAllowedOptions in class BaseExporter

getOptions

public OptionHolder getOptions()
Specified by:
getOptions in interface Exporter
Overrides:
getOptions in class BaseExporter

export

public void export(AbsoluteCodingSchemeVersionReference source,
                   java.net.URI destination,
                   boolean overwrite,
                   boolean stopOnErrors,
                   boolean async)
            throws LBException
Description copied from interface: OWL_Exporter
Export content from the underlying LexGrid repository. An exception is raised if resources cannot be accessed or another load operation is already in progress.

Specified by:
export in interface OWL_Exporter
Parameters:
source - The absolute version identifier of the coding scheme to export.
destination - URI corresponding to the OWL file to write.
overwrite - True indicates to overwrite an existing file if present. False indicates to stop if the destination file already exists.
stopOnErrors - True means stop if any export error is detected. False means attempt to continue writing what can be exported if recoverable errors are encountered.
async - Flag controlling whether export occurs in the calling thread. If true, the export will occur in a separate asynchronous process. If false, this method blocks until the export operation completes or fails. Regardless of setting, the getStatus and getLog calls are used to fetch results.
Throws:
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.