public interface SkosImporter
Modifier and Type | Method and Description |
---|---|
ImportLog |
importFile(InputStream ios,
String logMessage)
Import an input stream with a given log message.
|
ImportLog |
importFile(String filePath,
String logMessage)
Import a file with a given log message.
|
SkosImporter |
setBaseURI(String prefix)
Set the URI prefix for items created by the importer.
|
SkosImporter |
setDefaultLang(String lang)
Set default language for literals without a lang suffix.
|
SkosImporter |
setFormat(String format)
Set the RDF format.
|
SkosImporter |
setTolerant(boolean tolerant)
Switch the importer mode to one that is tolerant
of individual item validation errors.
|
SkosImporter |
setURISuffix(String suffix)
Set the URI suffix for items created by the importer.
|
ImportLog importFile(String filePath, String logMessage) throws IOException, InputParseError, ValidationError
filePath
- The file pathlogMessage
- A log messageIOException
InputParseError
ValidationError
ImportLog importFile(InputStream ios, String logMessage) throws IOException, InputParseError, ValidationError
ios
- The input streamlogMessage
- A log messageIOException
InputParseError
ValidationError
SkosImporter setTolerant(boolean tolerant)
tolerant
- Allow individual items to errorSkosImporter setBaseURI(String prefix)
prefix
- a URI prefixSkosImporter setURISuffix(String suffix)
suffix
- a URI suffixSkosImporter setFormat(String format)
format
- The RDF format string.SkosImporter setDefaultLang(String lang)
lang
- A two- or three-letter language codeCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.