neo4j的哪个Ruby REST API客户端? [英] Which Ruby REST API client for neo4j?

查看:67
本文介绍了neo4j的哪个Ruby REST API客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Ruby可以使用哪些REST API客户端(不是JRuby,因此不能选择本机绑定)?

I wonder what the REST API clients are available for using from Ruby (not JRuby, so native bindings are not an option)?

理想情况下,我希望该API与neo4j gem或ActiveRecord类似(验证,迁移,观察者等).

Ideally, I would want the API similar to the neo4j gem or ActiveRecord (validations, migrations, observers etc).

例如,当前可用的(REST)工具与我们在ActiveRecrod中所提供的工具甚至还不相近:

Currently available (REST) tooling doesn't even come close to what we have, for example, in ActiveRecrod:

  1. neograhy -仅纯REST API.与模型等无关.
  2. neology -仅仅是对neography的包装,而不是功能齐全的ActiveModel.
  3. architect4r -符合ActiveModel ,但仅提供一种查询方式数据(密码语言),也没有索引支持.
  1. neograhy - just plain REST API. Nothing to do with models etc.
  2. neology - is just a wrapper over neography and isn't a full featured ActiveModel.
  3. architect4r - conforms to ActiveModel, but provides only one way to query data (Cypher language), also no indexes support.

我更喜欢architect4r的代码(主要是因为它使用ActiveModel).

I like the code of architect4r a little bit more (primarily because it uses ActiveModel).

但是neology似乎是更加务实的选择,因为它已经在引擎盖下使用neography.

But neology seems to be much more pragmatic choice as it already is using neography under the hood.

选择非常小而艰难.

请问何时应使用一种而不是另一种?
同样,非常欢迎您提出任何可以帮助我确定宝石的建议.

Could you please tell when one should be used rather than the other?
Also any recommendations that would help me to decide on the gem are very welcome.

谢谢.

推荐答案

简短的答案是,对于RESTful neo4j,没有任何成熟的类似ActiveModel的宝石.

The short answer is that there is no any mature ActiveModel-like gems for RESTful neo4j.

最常见的情况是仅使用Neography.

The most common scenario is to just use Neography.

这篇关于neo4j的哪个Ruby REST API客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆