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.
- Types of Keys in Relational Model (Candidate, Super, Primary, Alternate and Foreign)
- Types of Sources of Data in Data Mining
- Types of OLAP Systems in DBMS
- Types of Schedules in DBMS
- Types of Schedules based Recoverability in DBMS
- Neo4j Drop Index
- Types of Large Objects(LOBs)
- Different types of Procedures in MySQL
- Different types of MySQL Triggers (with examples)
- Neo4j Introduction
- Neo4j Installation
- Neo4j Create Index
- Neo4j Create Node
- Neo4j Delete Node
- Neo4j Create Relationship
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.