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)
SkosImporter
setTolerant
in interface SkosImporter
tolerant
- Allow individual items to errorpublic JenaSkosImporter setBaseURI(String prefix)
SkosImporter
setBaseURI
in interface SkosImporter
prefix
- a URI prefixpublic JenaSkosImporter setURISuffix(String suffix)
SkosImporter
setURISuffix
in interface SkosImporter
suffix
- a URI suffixpublic JenaSkosImporter setFormat(String format)
SkosImporter
setFormat
in interface SkosImporter
format
- The RDF format string.public JenaSkosImporter setDefaultLang(String lang)
SkosImporter
setDefaultLang
in interface SkosImporter
lang
- A two- or three-letter language codepublic ImportLog importFile(String filePath, String logMessage) throws IOException, ValidationError
importFile
in interface SkosImporter
filePath
- The SKOS file pathlogMessage
- A log messageIOException
ValidationError
public ImportLog importFile(InputStream ios, String logMessage) throws IOException, ValidationError
importFile
in interface SkosImporter
ios
- The SKOS file input streamlogMessage
- A log messageIOException
ValidationError
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.