KnowledgeGraph.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:artificial-guy 作者:
@SuppressWarnings("deprecation")
public KnowledgeGraph(String db_path) {

    this.db_path = new String(db_path);

    // delete data from previous runs
    try {
        FileUtils.deleteRecursively(new File(this.db_path));
    } catch (IOException e) {
        e.printStackTrace();
    }

    // create a neo4j database
    this.graphDb = new GraphDatabaseFactory().newEmbeddedDatabase(this.db_path);

    registerShutdownHook(graphDb);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号