Questions tagged [cypher]

Cypher is Neo4j’s query language.

Cypher is a declarative, SQL-like graph query language. It supports all CRUD actions. Nodes, edges and paths are first class objects in read operations. A distinctive feature is the use of ASCII art so query syntax mirrors the subgraph sought.

7 questions
2
votes
0 answers

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` :Address ) , (`2` :`Phone Number`…
2
votes
1 answer

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 handle \ and / special characters
Thirumal
  • 2,548
  • 3
  • 16
  • 24
1
vote
0 answers

Finding distance between 2 geospatial location in aws neptune with opencypher query language

I am working with amazon neptune and using openCypher query language and doing some stuff using notebook. I have latitude and longitude of 2 points and I want to calculate the distance between these 2 points. For the purpose I am using Haversine…
Vishal Jamdade
  • 113
  • 1
  • 3
1
vote
1 answer

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 script I use: MATCH (x :Shop ) DETACH DELETE x…
filiprem
  • 6,747
  • 1
  • 19
  • 32
0
votes
0 answers

How to create multiple databases in Neo4j 5.24.2?

I have tried opening a cypher shell to create a new Neo4j database and failed as follows: neo4j@neo4j> :use system neo4j@system> CREATE DATABASE demo; Unsupported administration command: CREATE DATABASE demo I attempted to find some solutions in…
Captain_Lee
0
votes
1 answer

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 to get all the employee nodes that have at least…
user123215
-1
votes
1 answer

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:CORPORATE_IDENTIFICATION_NUMBER…
Thirumal
  • 2,548
  • 3
  • 16
  • 24