public class OWL2LoaderImpl extends BaseLoader implements OWL2_Loader
BaseLoader.DoConversion
ASYNC_OPTION, FAIL_ON_ERROR_OPTION, inUse, LOADER_POST_PROCESSOR_OPTION, LOADER_PREFERENCE_FILE_OPTION, MANIFEST_FILE_OPTION, SUPPLEMENT_OPTION
description, name
Constructor and Description |
---|
OWL2LoaderImpl() |
Modifier and Type | Method and Description |
---|---|
protected ExtensionDescription |
buildExtensionDescription()
Builds the extension description.
|
protected OptionHolder |
declareAllowedOptions(OptionHolder holder) |
protected URNVersionPair[] |
doLoad() |
void |
finalize() |
OntologyFormat |
getOntologyFormat()
Return the ontology format the loader can handle
|
void |
load(java.net.URI source,
java.net.URI codingSchemeManifestURI,
int memorySafe,
boolean stopOnErrors,
boolean async)
Load content from a candidate resource.
|
void |
setLoaderPreferences(LoaderPreferences prefs)
Sets the Loader's LoaderPreferences.
|
void |
validate(java.net.URI uri,
java.net.URI manifest,
int validationLevel)
Validate content for a candidate resource without performing a load.
|
addBooleanOptionValue, baseLoad, buildRootNode, clearLog, constructVersionPairsFromCodingSchemes, createCachingMessageDirectorIF, createDefaultInserter, createDefaultInserter, doesOptionExist, doIndex, doPostProcessing, doRegister, doTransitiveAndIndex, doTransitiveTable, getAbsoluteCodingSchemeVersionReferenceFromOptionString, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getDescription, getLoaderPreferences, getLog, getLogger, getManifestUtil, getMessageDirector, getName, getOptions, getPostProcessor, getProvider, getResourceUri, getStatus, getStringFromURI, getVersion, isDoApplyPostLoadManifest, isDoComputeTransitiveClosure, isDoIndexing, isDoRegister, isDoRemoveOnFailure, isInUse, load, lock, persistCodingSchemeToDatabase, persistCodingSchemeToDatabase, register, register, setCachingMessageDirectorIF, setCodingSchemeManifest, setCodingSchemeManifestURI, setCodingSchemeReferences, setDoApplyPostLoadManifest, setDoComputeTransitiveClosure, setDoIndexing, setDoRegister, setDoRemoveOnFailure, setInUse, setLoaderPreferences, setManifestUtil, setOptions, setResourceUri, setStatus, unlock, urnVersionPairToAbsoluteCodingSchemeVersionReference
getExtensionDescription
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences
getDescription, getName, getProvider, getVersion
protected ExtensionDescription buildExtensionDescription()
AbstractExtendable
buildExtensionDescription
in class AbstractExtendable
public void validate(java.net.URI uri, java.net.URI manifest, int validationLevel) throws LBParameterException
OWL2_Loader
Returns without exception if validation succeeds.
validate
in interface OWL2_Loader
uri
- 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.xsdvalidationLevel
- Supported levels of validation include: 0 = Verify XML is well
formed. 1 = Verify XML is valid.LBParameterException
public void load(java.net.URI source, java.net.URI codingSchemeManifestURI, int memorySafe, boolean stopOnErrors, boolean async) throws LBException
OWL2_Loader
An exception is raised if resources cannot be accessed or another load operation is already in progress.
load
in interface OWL2_Loader
source
- URI corresponding to the OWL file.codingSchemeManifestURI
- 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.xsdstopOnErrors
- 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.LBException
protected OptionHolder declareAllowedOptions(OptionHolder holder)
declareAllowedOptions
in class BaseLoader
protected URNVersionPair[] doLoad() throws CodingSchemeAlreadyLoadedException
doLoad
in class BaseLoader
CodingSchemeAlreadyLoadedException
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setLoaderPreferences(LoaderPreferences prefs) throws LBParameterException
BaseLoader
setLoaderPreferences
in interface Loader
setLoaderPreferences
in class BaseLoader
prefs
- The LoaderPreference object to be loaded. It is recommended
that all subclasses override and check if the
LoaderPreferences object is valid for the particular loader.LBParameterException
public OntologyFormat getOntologyFormat()
Loader
getOntologyFormat
in interface Loader
getOntologyFormat
in class BaseLoader