com.marklogic.flux.impl.importdata.ImportRdfFilesCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flux-api Show documentation
Show all versions of flux-api Show documentation
Flux API for data movement with MarkLogic
/*
* Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
*/
package com.marklogic.flux.impl.importdata;
import com.marklogic.flux.api.CompressionType;
import com.marklogic.flux.api.RdfFilesImporter;
import com.marklogic.flux.impl.AbstractCommand;
import com.marklogic.flux.impl.OptionsUtil;
import com.marklogic.spark.Options;
import picocli.CommandLine;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Supplier;
@CommandLine.Command(
name = "import-rdf-files",
description = "Read RDF data from local, HDFS, and S3 files and write the data as managed triples documents in MarkLogic."
)
public class ImportRdfFilesCommand extends AbstractImportFilesCommand implements RdfFilesImporter {
@CommandLine.Mixin
private ReadRdfFilesParams readParams = new ReadRdfFilesParams();
@CommandLine.Mixin
private WriteTriplesDocumentsParams writeParams = new WriteTriplesDocumentsParams();
@Override
protected String getReadFormat() {
return AbstractCommand.MARKLOGIC_CONNECTOR;
}
@Override
protected ReadFilesParams getReadParams() {
return readParams;
}
@Override
protected Supplier