public Integer call()

in src/main/java/software/amazon/neptune/csv2rdf/Csv2Rdf.java [103:131]


	public Integer call() {

		try {
			System.out.println(Csv2Rdf.class.getAnnotationsByType(Command.class)[0].header()[0]);
			validateParameters();
			echoParameters();

			System.out.println("Initializing the converter...");
			PropertyGraph2RdfConverter converter = new PropertyGraph2RdfConverter(configFile);

			System.out.println("Running CSV to RDF conversion...");
			converter.convert(inputDirectory, outputDirectory);

			System.out.println("Your RDF files have been written to: " + outputDirectory.getPath());

			System.out.println("All done.");
			return 0;
		} catch (Csv2RdfException e) {
			log.error("CSV to RDF conversion failed.", e);
			System.err.println("CSV to RDF conversion failed.");
			System.err.println(e.getMessage());
			return -1;
		} catch (Exception e) {
			log.error("CSV to RDF conversion failed.", e);
			System.err.println("CSV to RDF conversion failed.");
			System.err.println("Please see log file for details: " + LOG_FILE);
			return -2;
		}
	}