Questions tagged [cypher]

Cypher is Neo4j’s query language.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

How to return the top 3 relationships for each node using a relationship property as a metric using cypher in neo4j?

The basic structure of my data is: (a:Crosspost {name:'test'})-[t:TAGGED {upvotes:3}]->(b:Tag {name:'testtag'}) and every Crosspost is TAGGED with multiple Tags. If the user thinks the Tag is ...
1
vote
1answer
71 views

Neo4j import performance

I have a Neo4j 3.5.3 installation on my Ubuntu laptop (which is Intel i5, 4 GB RAM, SSD disk) and I'm trying to import a moderate-sized dataset from CSV files into the graph. Here is the full Cypher ...
0
votes
1answer
212 views

cypher query to find Employee nodes who have all the Skills

I'm trying to write a cypher query to find the first name of 'Employee' nodes who 'Has' all the Skills (have relationship with all the nodes with the 'Skill' label). This is my data model: I managed ...
1
vote
0answers
154 views

How to represent recursive relationships in a graph database?

I am designing a database schema diagram for a Neo4j database. This is what I have so far: This is the cypher code: CREATE (`0` :Person {FirstName:'string',LastName:'string',DOB:'long'}) , (`1` ...
1
vote
1answer
895 views

How do I escape backslashes and forward slashes in Neo4J Cypher?

When I run, MATCH (p:person {id:'1'}), (a:Address {street:"11\34, Wall street"})RETURN p, a; Invalid input 'S': expected '\', ''', '"', 'b', 'f', 'n', 'r', 't', '_', '%', UTF16 or UTF32 How do I ...
-1
votes
1answer
2k views

Neo4j cypher query error :Invalid input 'Q': expected 't/T'

Getting Error (Invalid input 'Q': expected 't/T') while executing matching cypher query in Neo4j. MATCH (company:COMPANY {name:'`X'SQUIRE COMMUNICATIONS PRIVATE LIMITED'}), (cin:...