Questions tagged [neo4jrb]

neo4j is a ruby/rails is a server extension library for managing JVM scripting languages

neo4j is a ruby/rails is a server extension library for managing JVM scripting languages

17 questions
2
votes
1 answer

Neo4j eager load ActiveRel

I'm tryin to get specific keywords that MAY be related ONLY to specific users and the return the relationships. Keyword.where(text: ['key1', 'key2']) .tagged_users(:u, :rel) .where(uid: [100, 101]) .pluck(:rel).each_with_object({}) do |rel,…
Igor
  • 1,253
  • 1
  • 25
  • 34
2
votes
2 answers

Cypher Query where 2 different labels do not contain a relationship to a 3rd label/node

I have 3 labels, A, B, and Z. A & B both have a relationship to Z. I want to find all the A nodes that do not have share any of nodes Z in common with B Currently, doing a normal query where the relationship DOES exist, works. MATCH…
ndyr
  • 503
  • 4
  • 20
1
vote
0 answers

Neo4jrb Query on relationship properties with QueryProxy and AssociationProxy

I'm wondering if it is possible to query a property of a relationship during an association chain. The following example can help you to understand: class AccountRel include ActiveGraph::Relationship from_class :Person to_class …
Sbunzini
  • 542
  • 2
  • 8
1
vote
0 answers

Neo4jrb Inheritance and scope problem on calling relationships

I'm using Neo4jrb with Rails and I'm trying to exploit as much as possible the QueryProxy chaining methods to build complex query but I'm stuck when considering nodes with multiple labels due to inheritance. The following raw example can give you…
Sbunzini
  • 542
  • 2
  • 8
1
vote
1 answer

export neo4j data to svg file similar to neo4j browser graph - using neo4j gem

Is there a way to export the neo4j data to svg output like the one that appears on the neo4j browser so we can use it inside our application. This question is with respect to neo4j gem in rails and anyother suggestions are also welcome
Gaudam Thiyagarajan
  • 1,022
  • 9
  • 24
1
vote
1 answer

neo4jrb DeprecatedSchemaDefinitionError

I've a problem with Neo4jrb 8.1.1, Rails 5.1.1, Neo4j 3.2.0 CE I have a City model with an Int id, the DB is read only with data imported from csv files. What should I declare to get rid of the error? So far, I thought that declaring id_property…
user4569126
  • 33
  • 1
  • 8
1
vote
1 answer

Returning 2 Relationship details between 2 nodes in one query

I have been using neo4jrb and have gotten by with using ActiveNode to do most of my object/relationship returns, but currently there are some queries I want to do with out having to do 2 ActiveNode calls and looping through both to get what I need. …
ndyr
  • 503
  • 4
  • 20
0
votes
1 answer

How to specify my connection to neo4j as a leader role in K8s

I deployed a 3-core (by default) Neo4j in K8s via this helm chart. I'm quite a newbie to neo4j. I'm using neo4jrb in a Ruby on Rails project. When I tried to connect the neo4j service to write data. I often (not always) met this…
Hegwin
  • 385
  • 5
  • 15
0
votes
1 answer

Querying Serialized Properties isn't working

I want querying for a serialized field or property in neo4jrb, but isn't working. i have a serialized property of type array, something like that: Class Thing include Neo4j::ActiveNode property :coordinates, default: [0,0] serialize…
0
votes
1 answer

How to solve a Most-Common-Path-like probIem - with Cypher, on a Neo4j graph database

We are using neo4j to store academic and professional evolution of many persons (User) in order to process and provide the information it contains for our clients. For example, they may ask for the most frequent professional evolution for people…
pierre
  • 1
  • 1
0
votes
1 answer

Rails with Neo4jrb still uses sqlite3 for testing

I have set up my rails app to use Neo4j using Neo4jRB which fine both in production and development. In testing however I get the error ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:for each test, so it seems as though it…
Simon Thordal
  • 893
  • 10
  • 28
0
votes
1 answer

Query to support node to node search in neo4jrb

I have this cypher query of match p= (START:Task {name: 'Start'})-[*]->(finish:Task {name: 'C'}) return p and would like to make the related active model query using neo4jrb.
nigelr
  • 391
  • 4
  • 7
0
votes
1 answer

Why my neo4j query insanely slow? How do i improve?

Hi I am using neo4j for my production DB with 1800+ for this project node... This is a screenshot from graphenedb on heroku.. Can anybody explain to me how do i improve my query so it didnt taking so long?
0
votes
1 answer

Using the Neo4jrb gem, is it possible to use one transaction across multiple blocks

Using the neo4jrb/neo4j gem (8.x), I know it is possible to run multiple queries inside a single transaction like so person = Person.find_by(id: person_id) Neo4j::ActiveBase.run_transaction do |tx| person.update(name: 'New name') …
John
  • 9,249
  • 5
  • 44
  • 76
0
votes
2 answers

Rails Neo4j Find all nodes related to some node

Say there are 2 models: class A include Neo4j::ActiveNode property :name, type: String has_many :in, :bs, type: :HAS_B end class B include Neo4j::ActiveNode property :name, type: String end And following nodes and relations: a1 <-…
vish4071
  • 5,135
  • 4
  • 35
  • 65
1
2