Questions tagged [neo4j.rb]

Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database. It uses the neo4j-core and active_attr gems.

Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database.

https://github.com/neo4jrb/neo4j

175 questions
0
votes
2 answers

Server not available on localhost with response code 403 & RuntimeError in Ruby on Rails

After changing proxy settings in open_uri.rb and server_manage.rb I finally managed to install neo4j behind a proxy server. The neo4j server is running on port 7000 ( It opens in the browser) but when i enter : $rails generate scaffold post title…
dulla
  • 136
  • 1
  • 1
  • 11
0
votes
0 answers

Ruby on Rails neo4j error connecting to database

I am learning to use neo4j with rails using the neo4jrb project: https://github.com/neo4jrb/neo4j/wiki/Neo4j-v3-Setup#usage-from-rails As given in instructions i did rails new testdb_app -m http://neo4jrb.io/neo4j/neo4j.rb -O Since i already have…
Vikash Balasubramanian
  • 2,921
  • 3
  • 33
  • 74
0
votes
1 answer

Neo4jrb - NameError: uninitialized constant Neo4j::ActiveNode::Query::QueryProxy::ANSI

I am fetching and author Albert Camus. For this author I want to retrieve all work of arts he created (which books he wrote). But I am getting the error "NameError". Here are the details: Loading development environment (Rails…
LDB
  • 692
  • 6
  • 18
0
votes
1 answer

Neo4j - pagination with kaminari - stack level too deep

I have many authors (as nodes) authoring multiple Work of Arts (wokas), also as nodes. I want to fetch the authors on page 100, 5 authors per page. For the first author from those five selected I want to know the first work of art authored. Here is…
LDB
  • 692
  • 6
  • 18
0
votes
1 answer

IN query based on node id - Neo4j

how,can i get the node details of the below id in optimized manner val = [2,4,5,6,34,32,34,54,54,31] I tried as, WITH [2,4,5,6, ..] AS coll UNWIND coll AS x match p=(s.... return p I cant able to get it
Dheena
  • 117
  • 9
0
votes
1 answer

java.lang.IllegalStateException: Database locked

I have a problem with my neo4j database. I have a ruby on rails app with neo4jrb gem running with torquebox. I would like to read and write in my database with a torquebox job. But i have this error : java.lang.IllegalStateException: Database…
Airclo
  • 31
  • 3
0
votes
1 answer

neo4jrb how to reset transaction timeout of an open transaction

Currently using neo4j-community-2.1.7 I understand that the facility has been included in this version. Have been unable to find any reference to it in the ruby docs. Would appreciate it very much if I may have some direction on how to reset the…
Ross
  • 539
  • 1
  • 4
  • 14
0
votes
1 answer

Neo4jRB: updating node data?

Looking at ActiveNode's persistence.rb, it seems like there's no update() or equivalent. How does one update the data of a particular node?
David Chouinard
  • 6,466
  • 8
  • 43
  • 61
0
votes
1 answer

Neo4j - How to set DEV ENV to point to an AWS database

I created a new app in Rails using: rails new myapp -m http://neo4jrb.io/neo4j/neo4j.rb -O I did not executed the command: rake neo4j:install[community-2.2.0,development] since my database is already created, populated and hosted by an AWS…
LDB
  • 692
  • 6
  • 18
0
votes
1 answer

Neo4jRB: Searching through all associations?

Consider this simple setup: class Person include Neo4j::ActiveNode property :name, type: String has_many :out, :follows, model_class: Person, rel_class: Friendship has_many :in, :followed_by, model_class: Person, rel_class:…
David Chouinard
  • 6,466
  • 8
  • 43
  • 61
0
votes
1 answer

Neo4j.rb default integer value

i've a problem with finding all the nodes that are invalids. here's the class : class MyNode include Neo4j::ActiveNode property :name property :is_valid, type: Integer, default: 0 end When my nodes are created the property is not set…
armedwing
  • 113
  • 1
  • 10
0
votes
2 answers

How can I create unique relationships based on a model in neo4j.rb?

I have tried to use has_many :in, :ratings, unique: true, rel_class: Rating But that unique: true is ignored because I have a model class for the relationship. How can I make sure that if my Users rate Articles, their rating gets updated instead of…
Joe Eifert
  • 1,306
  • 14
  • 29
0
votes
1 answer

return certain fields first in elastic search

I have a Rails application with term => definitions stored in nodes on Neo4j that I want my users to search using elastic search. Through usage we've found they far more commonly want to find the term name first before they want to search the…
0
votes
2 answers

Neo4j.rb slow queries

I have Neo4j v2.1.6 (default configuration) and Neo4j.rb v4.1.0. All queries are slow around 50ms. I have only 5 nodes in db. For example: User.find_by(person_id: 826268332) CYPHER 47ms MATCH (n:`User`) WHERE (n.person_id = {n_person_id}) RETURN n…
user1657173
  • 231
  • 1
  • 2
  • 9
0
votes
1 answer

Neo4j gem - Delete duplicate relationships

I accidentally created duplicate relationships... now I need to delete them. We got some crazy stuff going on in a cypher answer here how do I delete duplicate relationships between two nodes with cypher? At first my mind wandered to finding the…
Clam
  • 935
  • 1
  • 12
  • 24
1 2 3
11
12