Package org.openrefine.importers
Class RdfTripleImporter
- java.lang.Object
-
- org.openrefine.importers.ImportingParserBase
-
- org.openrefine.importers.ReaderImporter
-
- org.openrefine.importers.RdfTripleImporter
-
- All Implemented Interfaces:
ImportingParser
- Direct Known Subclasses:
RdfJsonldTripleImporter
,RdfXmlTripleImporter
public class RdfTripleImporter extends ReaderImporter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RdfTripleImporter.Mode
-
Constructor Summary
Constructors Constructor Description RdfTripleImporter()
RdfTripleImporter(RdfTripleImporter.Mode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid
parseOneFile(Runner runner, ProjectMetadata metadata, ImportingJob job, String fileSource, String archiveFileName, Supplier<Reader> readerSupplier, long limit, com.fasterxml.jackson.databind.node.ObjectNode options)
Parses one file, read from aReader
object, into a Grid.-
Methods inherited from class org.openrefine.importers.ReaderImporter
createParserUIInitializationData
-
Methods inherited from class org.openrefine.importers.ImportingParserBase
parse, parseOneFile
-
-
-
-
Constructor Detail
-
RdfTripleImporter
public RdfTripleImporter()
-
RdfTripleImporter
public RdfTripleImporter(RdfTripleImporter.Mode mode)
-
-
Method Detail
-
parseOneFile
public Grid parseOneFile(Runner runner, ProjectMetadata metadata, ImportingJob job, String fileSource, String archiveFileName, Supplier<Reader> readerSupplier, long limit, com.fasterxml.jackson.databind.node.ObjectNode options) throws Exception
Description copied from class:ReaderImporter
Parses one file, read from aReader
object, into a Grid.- Specified by:
parseOneFile
in classReaderImporter
- Parameters:
runner
- the runner to use (the returned Grid will be generated by it)metadata
- the project metadata associated with the project to parse (which can be modified by the importer)job
- the importing job where this import is being donefileSource
- the path or source of the file (could be "clipboard" or a URL as well)archiveFileName
- the path or source of the archive the file was extracted fromreaderSupplier
- the reader object where to read the data fromlimit
- the maximum number of rows to readoptions
- any options passed to the importer as a JSON payload- Returns:
- a parsed Grid
- Throws:
Exception
-
-