简体   繁体   English

Gremlin-从Node.js查询Titan db的最佳方法

[英]Gremlin - best approach for querying Titan db from Node.js

I am using Titan graph db with Cassandra and Elasticsearch, Node.js and building RESTful web services. 我将Cassandra和Elasticsearch,Node.js与Titan图形数据库一起使用,并构建RESTful Web服务。

I am confused whether to connect to Gremlin server using HTTP or Web Sockets. 我很困惑是否使用HTTP或Web套接字连接到Gremlin服务器。

Please share your learnings and let me know if there are any good reads or video tutorials on this. 请分享您的学习经验,并让我知道是否有任何好的阅读或视频教程。

Note: Titan is no longer maintained, you should switch to JanusGraph , which was forked from Titan and is maintained by an active community of users and developers. 注意:不再维护Titan,您应该切换到JanusGraph ,它是从Titan派生的,并由活跃的用户和开发者社区维护。

You can use https://github.com/jbmusso/gremlin-javascript which can be found in the "Language drivers" section of the Apache TinkerPop site . 您可以使用https://github.com/jbmusso/gremlin-javascript ,它可以在Apache TinkerPop网站的“语言驱动程序”部分中找到

You can find sample code in https://github.com/jbmusso/gremlin-javascript/tree/master/gremlin-client 您可以在https://github.com/jbmusso/gremlin-javascript/tree/master/gremlin-client中找到示例代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM