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

查看:19
本文介绍了哪个用于 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,但仅提供一种查询方式数据(Cypher 语言),也不支持索引.莉>
  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 的 gem.

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天全站免登陆