public final class JenaSkosImporter extends Object implements SkosImporter
| Constructor and Description |
|---|
JenaSkosImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
Actioner actioner,
Vocabulary vocabulary)
Constructor
|
JenaSkosImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
Actioner actioner,
Vocabulary vocabulary,
boolean tolerant,
String baseURI,
String suffix,
String format,
String defaultLang)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ImportLog |
importFile(InputStream ios,
String logMessage)
Import an input stream.
|
ImportLog |
importFile(String filePath,
String logMessage)
Import a file by path.
|
JenaSkosImporter |
setBaseURI(String prefix)
Set the URI prefix for items created by the importer.
|
JenaSkosImporter |
setDefaultLang(String lang)
Set default language for literals without a lang suffix.
|
JenaSkosImporter |
setFormat(String format)
Set the RDF format.
|
JenaSkosImporter |
setTolerant(boolean tolerant)
Switch the importer mode to one that is tolerant
of individual item validation errors.
|
JenaSkosImporter |
setURISuffix(String suffix)
Set the URI suffix for items created by the importer.
|
public JenaSkosImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
Actioner actioner,
Vocabulary vocabulary,
boolean tolerant,
String baseURI,
String suffix,
String format,
String defaultLang)
framedGraph - The framed graphactioner - The actionervocabulary - The target vocabularytolerant - Whether or not to ignore single item validation errors.format - The RDF formatdefaultLang - The language to use for elements without specified languagepublic JenaSkosImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
Actioner actioner,
Vocabulary vocabulary)
framedGraph - The framed graphactioner - The actionervocabulary - The target vocabularypublic JenaSkosImporter setTolerant(boolean tolerant)
SkosImportersetTolerant in interface SkosImportertolerant - Allow individual items to errorpublic JenaSkosImporter setBaseURI(String prefix)
SkosImportersetBaseURI in interface SkosImporterprefix - a URI prefixpublic JenaSkosImporter setURISuffix(String suffix)
SkosImportersetURISuffix in interface SkosImportersuffix - a URI suffixpublic JenaSkosImporter setFormat(String format)
SkosImportersetFormat in interface SkosImporterformat - The RDF format string.public JenaSkosImporter setDefaultLang(String lang)
SkosImportersetDefaultLang in interface SkosImporterlang - A two- or three-letter language codepublic ImportLog importFile(String filePath, String logMessage) throws IOException, ValidationError
importFile in interface SkosImporterfilePath - The SKOS file pathlogMessage - A log messageIOExceptionValidationErrorpublic ImportLog importFile(InputStream ios, String logMessage) throws IOException, ValidationError
importFile in interface SkosImporterios - The SKOS file input streamlogMessage - A log messageIOExceptionValidationErrorCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.