在SailGraph中删除

在SailGraph中删除,graph,neo4j,tinkerpop,Graph,Neo4j,Tinkerpop,我正在尝试删除图表中的顶点。这可以在本地工作,但不能在服务器上工作。在服务器上,基础neo4j数据库不一致 graph = GraphFactory.createGraph(config.get("type").getAsString(), name, dbpath); sail = new GraphSail<KeyIndexableGraph>(graph); sailGraph = new SailGraph(sail);

我正在尝试删除图表中的顶点。这可以在本地工作,但不能在服务器上工作。在服务器上,基础neo4j数据库不一致

    graph = GraphFactory.createGraph(config.get("type").getAsString(),
            name, dbpath);
    sail = new GraphSail<KeyIndexableGraph>(graph);
    sailGraph = new SailGraph(sail);
    reasoner = new ForwardChainingRDFSInferencer(
            new GraphSail<KeyIndexableGraph>(graph));
要删除我使用的

         Vertex vertex = sailGraph.getVertex(uri);
         vertex.remove();
在本地,它在服务器上工作,经过移除步骤,但顶点仍然存在。没有例外或任何事情。我已将数据库目录的权限设置为允许写入,但仍然不允许写入。有什么想法吗


谢谢

注意到从不同线程调用remove是不起作用的。本地与“服务器”是什么意思。您能演示一下如何设置dbpath吗?在beetween的某个地方不需要一个
Neo4jGraph
         Vertex vertex = sailGraph.getVertex(uri);
         vertex.remove();