org.LexGrid.LexBIG.Extensions.Load
Interface OWL_Loader

All Superinterfaces:
Extendable, Loader, java.io.Serializable

public interface OWL_Loader
extends Loader

Validates and/or loads content provided in OWL XML format.


Method Summary
 void load(java.net.URI source, java.net.URI manifest, int memorySetting, boolean stopOnErrors, boolean async)
          Load content from a candidate resource.
 void loadNCI(java.net.URI source, java.net.URI manifest, boolean memorySafe, boolean stopOnErrors, boolean async)
          Deprecated. use load() instead
 void loadNCIThes(java.net.URI source, java.net.URI manifest, boolean memorySafe, boolean stopOnErrors, boolean async)
          Deprecated. use load() instead
 void validate(java.net.URI source, java.net.URI manifest, int validationLevel)
          Validate content for a candidate resource without performing a load.
 void validateNCI(java.net.URI source, java.net.URI manifest, int validationLevel)
          Deprecated. use validate() instead
 void validateNCIThes(java.net.URI source, java.net.URI manifest, int validationLevel)
          Deprecated. use validate() instead
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Load.Loader
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getStatus, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getName, getProvider, getVersion
 

Method Detail

load

void load(java.net.URI source,
          java.net.URI manifest,
          int memorySetting,
          boolean stopOnErrors,
          boolean async)
          throws LBException
Load content from a candidate resource. This will also result in implicit generation of standard indices required by the LexBIG runtime.

An exception is raised if resources cannot be accessed or another load operation is already in progress.

Parameters:
source - URI corresponding to the OWL file.
manifest - URI corresponding to the XML document containing load coding scheme manifest list; null if not applicable. Must be a valid xml file for schema http://LexGrid.org/schema/LexBIG/2007/01/CodingSchemeManifestList.xsd
memorySetting - If specified, indicates the profile used to tune memory/performance tradeoffs. Options are: 1 = Faster/more memory (holds OWL in memory) 2 = Slower/less memory (cache OWL to database)
stopOnErrors - True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered.
async - Flag controlling whether load occurs in the calling thread. If true, the load will occur in a separate asynchronous process. If false, this method blocks until the load operation completes or fails. Regardless of setting, the getStatus and getLog calls are used to fetch results.
Throws:
LBException

loadNCI

void loadNCI(java.net.URI source,
             java.net.URI manifest,
             boolean memorySafe,
             boolean stopOnErrors,
             boolean async)
             throws LBException
Deprecated. use load() instead

Throws:
LBException

loadNCIThes

void loadNCIThes(java.net.URI source,
                 java.net.URI manifest,
                 boolean memorySafe,
                 boolean stopOnErrors,
                 boolean async)
                 throws LBException
Deprecated. use load() instead

Throws:
LBException

validate

void validate(java.net.URI source,
              java.net.URI manifest,
              int validationLevel)
              throws LBException
Validate content for a candidate resource without performing a load.

Returns without exception if validation succeeds.

Parameters:
source - URI corresponding to the OWL file.
manifest - URI corresponding to the XML document containing load coding scheme manifest list; null if not applicable. Must be a valid xml file for schema http://LexGrid.org/schema/LexBIG/2007/01/CodingSchemeManifestList.xsd
validationLevel - Supported levels of validation include: 0 = Verify XML is well formed. 1 = Verify XML is valid.
Throws:
LBException

validateNCI

void validateNCI(java.net.URI source,
                 java.net.URI manifest,
                 int validationLevel)
                 throws LBException
Deprecated. use validate() instead

Throws:
LBException

validateNCIThes

void validateNCIThes(java.net.URI source,
                     java.net.URI manifest,
                     int validationLevel)
                     throws LBException
Deprecated. use validate() instead

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.