Skip to content

hugegraph图操作方式问题及建议 #79

Open

Description

@mengquanrun

Expected behavior 期望表现

{type something here...}
查询与操作更加方便

Actual behavior 实际表现

{type something here...}

目前hugegraph操作图的方式只有studio,java-client和gremlin-console三种,虽然我觉得studio看起来很炫,但
1、studio方式无法应对大数据量的情况,浏览器中性能会很差
2、gremlin-console方式又需要更改配置为socket,这又会影响loader,studio等利器的使用
3、java-client需要在eclipse上maven工程,难以在服务器上直接操作,直接命令行上mvn的话,感觉有些难用。。。

三种方式下,面对大数据量,运行在没有图形化界面的服务器上等情况都有些捉襟见肘~

目前我找到一个gremlinpython的包,可以支持使用python脚本连接gremlin数据库来操作图,请问我们可以支持这个包么?这样的话hugegraph可以应用在大数据量,并用简单的python脚本进行操作,可以像studio操作图一样方便简单~

Activity

  1. suesunss commented on Oct 8, 2018

    @suesunss

    也可以通过RESTFul api

  2. zhoney commented on Oct 8, 2018

    @zhoney
    Contributor

    gremlinpython暂时还不支持。

    在无图形化界面可以使用RESTful API或者hugegraph-tools

  3. mengquanrun commented on Oct 8, 2018

    @mengquanrun
    Author

    好的,我学习下,非常感谢~

  4. mengquanrun commented on Oct 9, 2018

    @mengquanrun
    Author

    请问对与tools和restful api是否有更详细的教程或者guide呢?比如一些简短的例子之类的?
    另外可以请教一下您知道这个封装的过程或者需要懂哪些知识呢?我想学习下,能实现成功的话可以贡献下~

  5. zhoney commented on Oct 11, 2018

    @zhoney
    Contributor

    @mengquanrun

    RESTful API的介绍:
    https://hugegraph.github.io/hugegraph-doc/clients/hugegraph-api.html

    hugegraph-tools介绍:
    https://hugegraph.github.io/hugegraph-doc/quickstart/hugegraph-tools.html

    这是目前比较全的资料,可以参考一下。

    Python封装RESTful API,可以利用urllib2、requests等库包一下RESTful API,包装的模式可以参考我们的Java版本client:
    https://github.com/hugegraph/hugegraph-client

  6. self-assigned this
    on Oct 15, 2018
  7. mengquanrun commented on Oct 27, 2018

    @mengquanrun
    Author

    @zhoney 请问我如果想要完全学会tools工具的所有用法,我是应该看tools项目的源码才可以达到目的是嘛~按照quickstart里的介绍,我会出现很多的错误
    另外如果可以的话。。是否可以给我一个用tools工具的gremlin-execute执行g.V()语句的范例?非常感谢~

  8. HevOHel commented on Oct 21, 2021

    @HevOHel

    @mengquanrun

    RESTful API的介绍: https://hugegraph.github.io/hugegraph-doc/clients/hugegraph-api.html

    hugegraph-tools介绍: https://hugegraph.github.io/hugegraph-doc/quickstart/hugegraph-tools.html

    这是目前比较全的资料,可以参考一下。

    Python封装RESTful API,可以利用urllib2、requests等库包一下RESTful API,包装的模式可以参考我们的Java版本client: https://github.com/hugegraph/hugegraph-client

    请问能说一下具体调用的方式吗我用java中的方式没有成功获得响应返回415.
    今天刚开始学习这个工具,但是python调用不太顺利
    response=requests.post('http://localhost:8080/graphs/hugegraph/schema/propertykeys',json_data,headers={"Content-Encoding":"gzip"})
    or response=requests.post('http://localhost:8080/graphs/hugegraph/schema/propertykeys',json_data)

  9. shangrilaxie commented on Mar 9, 2023

    @shangrilaxie

    我们开发了一个封装了RESTful API的Python包,支持Python2/3。欢迎联系与使用。不知道怎么样可以贡献出来。

  10. shangrilaxie commented on Mar 9, 2023

    @shangrilaxie

    1.0.0版本的cypher api GET正常,但是 POST是产生500错误

  11. simon824 commented on Mar 13, 2023

    @simon824
    Member

    我们开发了一个封装了RESTful API的Python包,支持Python2/3。欢迎联系与使用。不知道怎么样可以贡献出来。

    @shangrilaxie Great feature, welcome to contribute! The contribution process can refer to:
    https://hugegraph.apache.org/docs/contribution-guidelines/contribute/
    If you need any help, you can contact me by WeChat: shirnig

  12. jihuicheng commented on Mar 27, 2023

    @jihuicheng

    我们开发了一个封装了RESTful API的Python包,支持Python2/3。欢迎联系与使用。不知道怎么样可以贡献出来。

    怎么使用呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions