Questions tagged [neo4j]

Neo4j is an open-source, transactional graph database well suited to connected data. You can use it for recommendation engines, fraud detection, graph-based search, network ops/security, and many other user cases. The database is accessed via official drivers in Java, JavaScript, .Python and .NET, ...

-1
votes
0answers
2 views

Import xml files in to the neo4j?

Visualizing XML files as a Graph Using Neo4j Create nodes and relationships from XML data files Does Neo4j get import the XML files to create nodes and relationships? if yes, how can i achieve it? ...
1
vote
1answer
10 views

How to convert timestamp into date in neo4j

Can someone please tell me that how to convert timestamp into date in neo4j. Suppose I have a long field to store millis. Now i want to convert it into date through cypher. NOTE- it would be great ...
0
votes
1answer
11 views

“neo4j” I have one dataset but i don't know how to import

I have one dataset but i don't know how to import it in neo4j it isn't a .csv file data is come to like this: anybody can help thank you so much
1
vote
0answers
12 views

Spring Data Neo4j - findById method throws an invalid query exception after upgrading to Spring Boot 2

I have been working on a micro-service created using Spring Boot with Neo4j as the database. The two relevant entities within it Product and AccessoryRelation are thus: @NodeEntity @QueryEntity ...
0
votes
0answers
8 views

command failed: Failed to run a backup using the available strategies. neo4j-admin backup command

neo4j-admin backup --from=IP:PortNum --backup-dir=/home/ubuntu/neo4jdevdump --name=neodbdump --fallback-to-full=true --check-consistency=true --pagecache=4G I am running above command to take backup ...
0
votes
1answer
15 views

Neo4j/Cypher: Extracting the last item of a StringArray (This what neo4j called it)

Lets say I have a node with a property, Event, that is assigned a StringArray. I am trying to extract '6013' and '6005' that were assigned from a collection when the node was created ( see below for ...
1
vote
1answer
21 views

Creating Neo4j/Cypher relationships dynamically with variable MATCH label

I need to create relationships between existing nodes and have tried following the youtube on creating dynamic nodes and relationships: https://www.youtube.com/watch?v=KsAb8QHClNg a couple of times ...
0
votes
0answers
10 views

Neo4i How to Bin Results from PageRank Streaming Procedure Based on Node Property

I have nodes in neo4j that represent published academic papers, and I want to analyze the citations between papers with the streaming PageRank algorithm. The nodes have the relationship CITES ...
0
votes
2answers
34 views

Neo 4j - How to count the number of times two relationships appear in the same nodes

Suppose I have 3 nodes A, B and C, and two relationships r1 and r2, how can I count the number of times that the two relationships occur on the same nodes? For example: A-[r1]-B A-[r2]-B A-[r1]-C B-[...
0
votes
1answer
12 views

Neo4j Javascript Driver - date conversion is incorrect by 1 month

With the Neo4j Javascript driver, a stored datetime value of 2018-10-22T13:17:02.305000000Z is returning the 64 bit representation as: DateTime { year: Integer { low: 2018, high: 0 }, month: ...
0
votes
2answers
28 views

How to filter by pattern in a variable length Cypher query

I have a very simple graph with 5 nodes (named n1 - n5), 1 node type (:Node) and 2 relationship types (:r1, :r2). The nodes and relationships are arranged as follows (apologies for the ascii art): (...
0
votes
0answers
28 views

Neo4J LOAD CSV Memory issue

I've read many blogs/SO questions about the problem with eager queries in neo4j for LOAD CSV - but I'm still getting a hung db with eventual memory issues. Here is my query USING PERIODIC COMMIT ...
0
votes
1answer
17 views

How could I use a WHERE in an EXISTS() in Cypher

I am trying to find all path in a graph between two nodes, with the condition that any node in this path must be connected to another node with a label TIMESWITCH and valid endDate and startDate. The ...
0
votes
0answers
9 views

Neo4j GraphClient Ignore JSON

I'm trying to do a batch unwind in C# using the graphclient but it keeps adding the properties using the JsonProperty value when I don't want it to. Is it possible to disable the Json so it adds into ...
0
votes
0answers
17 views

Cannot install RNeo4j Package [duplicate]

I am currently using R version 3.5.1 . I tried to install 'RNeo4j' but I got a message saying that : package 'RNeo4j' is not available (for R version 3.5.1)
0
votes
1answer
18 views

Loading different kinds of nodes in neo4j using LOAD CSV

I am trying to use LOAD CSV and am having some challenges ... I want to create different kinds of nodes based on the content of a particular column in my csv (TYPE) Example: ID,NAME,VALUE,LABEL,TYPE,...
0
votes
1answer
45 views

What's the best way to find out if there is a path between 2 nodes in Neo4j?

I have a Neo4j project with 100k nodes and 5m relations. My problem: An algorithm like "shortest path" takes 2-4ms to find the shortest path. MATCH p = shortestPath((p1:Person{nickname:"sievers_amara"...
0
votes
2answers
17 views

Creating path of nodes

If I should have an array, and I want to MERGE all the element in the array into a path of nodes so that when given the relationship name, the nodes will be created if they do not already exist and ...
0
votes
0answers
18 views

Neode (js library for neo4j: how does one use the models to do multiple writes within one transaction?

I'm shopping for the best way to write node.js code that modifies a neo4j graph, and at the moment I'm looking at the neode OGM library. I'd like to use it, but it's not clear from the readme how I ...
1
vote
0answers
15 views

How to Use Neo4j Load CSV on Azure?

I've followed this tutorial to deploy Neo4j on Azure: https://neo4j.com/blog/deploy-neo4j-microsoft-azure-part-2/ Does anyone know how to use Load CSV? Or something similar. I have 2 Mi Nodes that I ...
0
votes
0answers
30 views

LoadError: Could not open library 'libcurl'

windows 10 OS Build: 17134.346 java version "1.8.0_191"ruby ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32] jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 25....
0
votes
1answer
42 views

Django with multiple databses Mongodb and Neo4j

I am using Mongo as my primary database and Neo4j to store some relations.Hope Neo4j can reduce the query time for complicated searches in my application.I am confused regarding how to maintain ...
1
vote
0answers
30 views

Unable to detect the flaw in angular2+ code for dropdown

I am using angular2+ template. And i want to create a drop-down. It was not available in the template (creative-tim template angular2). Kindly let me know what is the error in my code that i am not ...
1
vote
1answer
20 views

Angular Template integrated with Neovis.js takes 20 minutes to compile

Can some one help me . I am using Neo4j application to build and integrate it to an angular and nodejs app. I am using Core UI - angular template. It complies within 3 minutes. (Or any other template)....
0
votes
1answer
15 views

iterating over subpaths vs path elements

The question applies to any neo4j path, but for clarity, let's borrow the bus route data from Answer 2 to this post Neo4J | Cypher Aggregation on list of relationships We can run this query MATCH p=...
0
votes
2answers
31 views

Neo4j needs more memory, but “Java cannot reserve enough space for object heap” (Windows 10)

Neo4j (Community version 3.4.8) complains that "there is not enough memory to perform the current task", and advises changing a line in the config file, to increase "dbms.memory.heap.max_size" If I ...
0
votes
0answers
28 views

Flask and neomodel: ModelDefinitionMismatch

I am getting a neomodel.exceptions.ModelDefinitionMismatch while trying to build a simple Flask app connected to the bold port of Neo4J. import json from flask import Flask, jsonify, request from ...
0
votes
1answer
24 views

parameterized query problem when use org.springframework.data.neo4j.repository

@Query("match p=(self:Person {id:{id}})-[*1..{distance}]-(N) return collect(N)") PersonConn findNeighbor2(@Param("id") String id,@Param("distance") String distance); my first parameter id works well ,...
0
votes
0answers
17 views

How to create a composite caption with node id using Neo4j Grass style file?

I would like to display a custom caption on Neo4j nodes, this custom caption would be the id of the node <id> concatenated to a string. Here is an extract from my GRASS file : node.Company { ...
0
votes
1answer
28 views

Cypher/Neo4j: Convert any to string (due to application of REVERSE)

I would like to reduce a list into a string to adhere to a specific output format which requires a pipe ( '|' ) between the elements. I do it as follows: WITH ["three", "two", "one"] AS a RETURN ...
-1
votes
0answers
41 views

why neo4j use cypher rather than gremlin

As far as I know, neo4j use gremlin (tinkerpop) for querying before they develop cypher. And now they use cypher totally. Any advantages cypher has but gremlin does not? I know the tinkerpop ...
-1
votes
1answer
11 views

Neo4j - charting data

What is the best way to visualize neo4j data in a chart? I am looking for something simple just bar, line a pie charts. Not necessarily using the api but that would be ok too. Thank you
0
votes
0answers
15 views

Neo4j troubleshooting steps?

We have written a C# service to load data with indexes on the neo4j server. The load is pushed at a good speed at first but later slows down and the browser frequently dies. Can someone help me with ...
0
votes
1answer
40 views

Variable of required type was not provided

I am attempting to create a relationship in my Neo4j database with a GraphQL mutation. I have a number of other mutations already working except this one causing problems. It looks like this: ...
0
votes
1answer
19 views

Adding a new node to database, how to automatically update rule-based links

Please excuse the simplicity of the question perhaps - I am a newbie! I have a few thousand nodes and a few tens of relationships, but the relationship are largely based on a series of rules and ...
0
votes
0answers
22 views

Spring boot Neo4j - Dynamic Projection

I would like to implement a dynamic projection for Neo4j repository of my spring application. The dynamic projection that I want to implement is like user input the field that they want in the ...
0
votes
1answer
23 views

Neo4J - Conditionally setting value in merge

In Neo4J I am creating nodes using "merge" for example - MERGE (p: Person {id: 'testId1234' }) RETURN p Now if understand this correctly a Node P will be created if one doesn't exist with id '...
1
vote
1answer
20 views

How to check the amount of times a neo4J index was used?

So I received a dated schema that used to work well at the beginning but it's experiencing some scaling issues. Among of them, the space used by the indexes is catching my attention so I would like ...
0
votes
1answer
28 views

Neo4j/Cypher: Passing properties through WITH

I am posting a new question because this is a separate but related issue to this question: Neo4j: Link Different Nodes to the one node The below query is returning the correct number of nodes. ...
0
votes
1answer
28 views

Relation not in use Neo4j?

I tried to delete a node with its relations but I get this error Relationship[332147,used=false,source=-1,target=-1,type=-1,sCount=1,sNext=-1,tCount=1,tNext=-1,prop=-1,secondaryUnitId=-1, sFirst, ...
1
vote
1answer
28 views

java process won't stop after neo4j query

I'm connecting to a remote neo4j db using ConfigrationSource and SessionFactory from neo4j OGM like this: private final static ConfigurationSource props = new ClasspathConfigurationSource("neo4j-...
1
vote
1answer
26 views

neo4j union - post processing results

I need a query that checks if a node exists, a specific attribute on that node exists and post-process the result using case or something. Ex: CALL apoc.cypher.run("OPTIONAL MATCH (n:Location{...
0
votes
1answer
16 views

Neo4j - property as variable to return

I'm using python driver for neo4j (neo4j.v1) and I'm trying to write a generic function that gets node's unique id and a property and returns the value of the property of this node with the unique id. ...
0
votes
1answer
19 views

Retrive DateTime from Neo4j using Lumen and NeoEloquent OGM

Context I'm creating an api rest that it interfaces to a graph db already filled by nodes and edge that describes events and exhibit's positions inside several museum that are charactirized by zones. ...
0
votes
1answer
25 views

neo4j Remote guide error: TypeError: NetworkError when attempting to fetch resource

Just installed the new version (community edition 3.4.9) and I have this configuration at neo4j.conf: browser.remote_content_hostname_whitelist=* browser.post_connect_cmd=play http://127.0.0.1:80/...
0
votes
1answer
20 views

neo4j - returning the first row, without grouping

I am trying to do the following with neo4j. We have nodes that have a set of attributes. One of these attributes is a date. I am looking to have these attributes returned, but only picking up the ...
0
votes
2answers
48 views

Efficiently assigning UUIDs to connected components in Neo4j

I have partitioned my graph into ~400,000 connected components using the algo.unionFind function from the Neo4j Graph Algorithms library. Each node n within the same connected component has the same ...
1
vote
1answer
21 views

Problem with 'Overriding the StructuredNode constructor'

I'm getting this error when trying to override the StructuredNode constructor, while it is almost exact same code from the doc. Traceback (most recent call last): File "/Users/xiao/PycharmProjects/...
0
votes
2answers
80 views

Cypher query for pair of nodes that are related to at least 2 other nodes?

I have a problem where I need to find a count of nodes where a pair of same node type are both connected to. so (a1)--(b) (a2)--(b) (a1)--(c) (a2)--(c) The result I want to have is: a1, a2, 2 [the ...
0
votes
1answer
38 views

neo4j - Improving a Cypher query

I have a performance critical application which has to match multiple nodes to another node based on regex matching. My current query is as follows: MATCH (person: Person {name: 'Mark'}) WITH person ...