【工作日记2】ezoo-server gnn模块使用说明


Defendency:

  • vscode
  • vscode extensions: c++, cmake, python etc.
  • clang
  • pyezoo-0.9.0-py3-none-any.whl
  • cython

1. Build ezoo-server, gnn

  1. use vscode to open the ezoodb project
  2. pip install pyezoo-0.9.0-py3-none-any.whl
  3. typemakein terminal ( /ezoodb project folder)
  4. build ezoo-server and ezoo-gnn by using clang.

在这里插入图片描述
在这里插入图片描述

2. install ezoognn

  1. go to src/gnn type sh build.sh, it will generate ezoognnxxxxx.whl.
  2. pip install src/gnn/ezoo-gnn-whl/ezoognn-0.0.1-cp38-cp38-macosx_10_16_x86_64.whl ( to install ezoognn)

3. prepare dataset

  1. download your dataset in the following format
    在这里插入图片描述

4. connect to ezoo-server

  1. go to build/bin type ./ezoo-server --config "resources/conf/ezoodb.conf" if success you should be able to get the following response:
    在这里插入图片描述

5. import the data that you downloaded/created into the ezoodb

  1. type curl -X POST -H "Content-Type: application/json" 127.0.0.1:9898/api/graph/create/filepath -d '{"db_name":"cora","schema_path":"/Users/xx/workbench/ezoodb/.tmp/cora/schema.txt", "import_conf_path":"/Users/xx/workbench/ezoodb/.tmp/cora/import_conf.txt"}' if success you should be able to get the following response:

在这里插入图片描述


Solutions to some errors:

  1. delete the /ezoodb/build folder and build ezoo-gnn, gnn again.
  2. brew install libevent
  3. change the port to 127.0.0.1
  4. delete /tmp/ezoodb/data

Other ways to acess gnn and import data

  • ezoo studio : 39.105.184.202/studio
  • inmendb_bench_test_v2 : need to modify icons, schema file.
  • py_temp.py[need to start ezoo server]
    • start the graph
    • query
      ![在这里插入图片描述](https://img-blog.csdnimg.cn/883dd6c55bb64b8e8596b5d01aebc5b0.png在这里插入图片描述
      在这里插入图片描述

注意: 在跑gnnexample的时侯, 需要推出ezoo-server防止crash

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值