Wie lade ich eine CSV-Datei mit Cypher in Java?

Ich bin neu bei cypher. Ich möchte eine CSV mit Cypher in Java laden. Ich googelte und fand das folgende Stück

LOAD CSV WITH HEADERS FROM "http://neo4j.com/docs/2.3.1/csv/import/movies.csv" AS csvLine
MERGE (country:Country { name: csvLine.country })
.....

Wie wird diese Lade-CSV-Abfrage in Java-Code verwendet? Ich habe so etwas versucht.

import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.Map.Entry;

import javax.naming.spi.DirStateFactory.Result;

import org.neo4j.cypher.javacompat.ExecutionEngine;
import org.neo4j.cypher.javacompat.ExecutionResult;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
import org.neo4j.kernel.impl.util.FileUtils;
public class test_new {


private static final String DB_PATH = "C:...../default.graphdb";
public static void main( final String[] args ) throws IOException
{
    GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );



    Transaction tx1 = db.beginTx();
    try{

        ExecutionEngine engine = new ExecutionEngine(db);
      ExecutionResult result = engine.execute("LOAD CSV WITH HEADERS FROM "C:/..../Mock_data.csv" AS csvLine ");

        tx1.success();
    } finally {
        tx1.close();

    }
    db.shutdown();
}

}

Aber ich bin mir bei dieser Zeile nicht sicher.

 ExecutionResult result = engine.execute("LOAD CSV WITH HEADERS FROM "C:/..../Mock_data.csv" AS csvLine ");

It löst einen Syntaxfehler aus.

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
Syntax error, insert ")" to complete MethodInvocation
Syntax error, insert ";" to complete LocalVariableDeclarationStatement

Ich kenne die Syntaxkonstruktion selbst nicht. Wie lade ich den CSV-Pfad?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage