The Neo4j works by Cypher language and the Cypher language provides first class support for number of data types. All the number data types fall in different categories which will be described below with the subsection of those categories.
Data types in Neo4j:
There are: Property types, Structural types, and Composite types. These are explained as following below.
- Property Types:
The Neo4j property types can be returned by cypher queries, can be used as a parameters, also can be stored as properties and can be constructed with Cypher literals.
Property types is made of:
- Number, an abstract type, which has the subtypes of Integer and Float
- The spatial type Point
- Temporal types: Date, Time, LocalTime, DateTime, LocalDateTime and Duration
The adjective numeric is used to describe Cypher functions or the expressions. It indicates that the any types of number (Integer or float) applies. Homogeneous lists of all simple types can be stored as properties, but lists in general (Composite types) cannot be stored. The cypher language also provides the pass-through supports for byte arrays that can be stored property values but it does not have literal representation.
Sorting of Special character:
The Neo4j string that contains special character which don’t belong to (BMP stands for Basic Multilingual Plane) can have inconsistent ordering.
Note: BMP is a subset(common character of common languages) of all characters defined in Unicode. Those are don’t belongs to BMP they belongs to Supplementary Multilingual Plane or the Supplementary Ideographic Plane.
- Structural Types:
It can be returned by cypher queries, can’t used as a parameters, also can’t stored as properties and can’t constructed with Cypher literals.
Structural types is made of:
This contains nodes, Relationships and paths. The nodes are made of id, labels and maps, each nodes are denoted in circles and all the nodes can be connected that create maps and belongs to labels. Relationships are made of Id, Type, Map and Id of the start and end nodes. The last one Paths are made of an alternating sequence of nodes and relationships.
Note: All the Nodes, relationships, and paths are returned as a result of pattern matching. Remember that the labels are not values they are form of pattern syntax.
- Composite Types:
The Neo4j Composite types can be returned by cypher queries, can be used as a parameters, also can’t stored as properties and can be constructed with Cypher literals.
Composite types are made are List and maps .
All the lists are heterogeneous, ordered collections of values, each of which has any kind property, structural or composite type.
The maps are heterogeneous, unordered collections of (key, value) pairs, where the key is a String and the value has any property, structural or composite type.
- Neo4j Installation
- Neo4j Introduction
- Difference between Neo4j and IBM DB2
- Neo4j Create Node
- Difference between Neo4j and CouchDB
- Neo4j Create Index
- Difference between Neo4j and MS SQL Server
- Difference between Neo4j and MySQL
- Difference between Neo4j and PostgreSQL
- Difference between Neo4j and MongoDB
- Difference between Neo4j and SQLite
- Difference between Neo4j and Cassandra
- Difference between Neo4j and MariaDB
- Difference between Neo4j and Redis
- Difference between Neo4j and Couchbase
- Neo4j Create Constraint
- Difference between Teradata and Neo4j
- Neo4j Drop Index
- Neo4j Create Relationship
- Neo4j Delete Node
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.