Neo4j getting started (iv): Cypher Query OptimizationFirst of all, it's still the same, clear all the content in the current database, clean up and start learning a new chapter.
Match (n)-[r]-(n1)
Delete r, n, n1
Match (n)
Delete n
Next, use the characters and contacts in the second blog:
CREATE (bradley: MALE: TEACHER {name: 'bradley ', surname: 'green', age: 24, country: 'us '})
CREATE (matthew:
Neo4j using the Cypher languageCypher language is the use of database operation language (DML) when learning neo4j, including the deletion and modification of graph dataThe concept of neo4j database simple and violent comprehension:There is no concept of table in neo4j, ther
Tags: Technical system modification nbsp Usage src Basic Date returnAny database based on additions and deletions to the four functions, and neo4j use of the cypher language. Cypher is a very good language for working with graph databases, and here are some basic features to learn about his basic usage. Let's do a demonstration with our intelligent Motion Picture
database, we'll take neo4j as an example of how to use a graphical database. NEO4J is the open source graphics database provided by Neo technology. It organizes the data according to the node/relationship model described above and has the following set of features:
Support for the transaction. NEO4J enforces that every change to the data needs to be don
Graphdatabase
Diagram database of notes neo4j diagram database What is diagram database why use diagram database neo4j download install cypher Query Language neo4j All kinds of API transaction NEO4J data modeling large-scale data import
disk-based persistent storage supports massive data, such as billions of node/relationship/attribute level data high availability distributed cluster height optimization, rapid graph query (Cypher Graph Query Language) can be embedded (just a few small jar files), support rest API
installation of neo4jOfficial website: http://www.neo4j.org/Neo4j deployment mode Standalone mode: A stand-alone server, wh
Document directory
1.1Neo4j Server Installation
1.2Neo4j Server configuration parameters
2.1 install the Spatail plug-in of Neo4j Server
2.2 Neo4j Server spatial operations
1.1Neo4j Server Installation
1.2Neo4j Server configuration parameters
2.1 install the Spatail plug-in of Neo4j Server
2.2 Neo4j Server sp
reality the is a named relationship in Cypher, so we ' re saying "join person to Group viabelongs_to." To illustrate this, consider this image, comparing the SQL model and Neo4j/cypher. *@authorPei Donghui *@since2014-8-6 Morning 11:40:10*/ Public voidfindemailbyusername (String name) {Graphdatabaseservice Graphdb=NewGraphdatabasefactory (). Newembedded
Shortest PathAll shortest paths (equal length)
Creating nodes and relationshipscreate (n1{num:1}),(n2{num:2}),...//这里n是变量名 create (n1)-[:rel]->(n2) //rel表示某种关系
deleting nodes and relationshipsdelete nIf the node is deleted, only the node is deleted and the relationship is not deleted, so ensure that the relationship has been deleted and the node is deleted
Show all nodes and relationshipsstart n=node(*),r=relationship(*) return n,r
Check Match Index
Configuration
the main form of organizing the digital data of the vector structure map in the geographic information system.
2. Introduction to Neo4j
Neo4j is currently a mainstream graph database. Compared with traditional relational databases, it can quickly query and search based on social networks; it also provides the cypher language to facilitate operations and queries
, update, view, NEO4J provides the web-based execution interface, provides the class SQL language execution, these languages include Cypher,gremlin and so on.Such as:3) You can add, update nodes and relationships based on the Web UI interface provided by NEO4J, as follows:4) You can import data using additional tools (ETL). You can also import data from a relatio
Before delving into the graph database, first understand the basic concepts of the attribute map. A property graph is a Vertex that consists of a vertex (edge), a label (lable), a relationship type, and a property. Vertices are also called nodes, and edges are also called relationships (relationship); In graphs, nodes and relationships are the most important entities, all nodes are independent, and nodes are labeled, so nodes with the same label belong to a group, a set, and relationships are gr
A quick Rest example
Let's start with some basic knowledge. If you do not have a service api,neo4j you cannot support other languages. This interface provides a set of restful Web services based on the JSON message format and a comprehensive discovery mechanism. The quickest and easiest way to use this interface in use is by using curl:
$ Curl http://localhost:7474/db/data/{"extensions": {}, "node": "Http://localhost:7474/db/data/node", "Node_index":
A quick example of rest
First look at some basic knowledge. You cannot support other languages without a service api,neo4j. This interface provides a set of restful Web services based on JSON message format and a comprehensive discovery mechanism. The quickest and easiest way to use this interface in use is by using curl:
$ curl http://localhost:7474/db/data/
{
"extensions": {
},
"node": "http://localhost:7474/db/data/ Node ",
" Node_inde
Use the Neo4j database tutorial in Python, pythonneo4j
A quick REST example
First, let's look at some basic knowledge. Without service APIs, Neo4j cannot support other languages. This interface provides a set of RESTful Web Services Based on the JSON Message format and a comprehensive discovery mechanism. The fastest and easiest way to use this interface is by using cURL:
$ curl http://localhost:7474/db/dat
radians
RAND ()
sign (expression) takes a symbol
String
RETURN Str (1), str ("Hello")Add quotation marks to both ends
Replace (original, search, replace)
SUBSTRING (original, start [, length])
Left (original, length) returns a substring
SPLIT (original, Splitpattern)
REVERSE (original)
TOSTRING (expression) Note the difference from STR
Schema
Index
CREATE INDEX on:P erson (name)
DROP INDEX on:P
1. Installation
On neo4j official website, download community version, click Install can. It's simple, nothing to say. 2. Getting Started
Since it is an introduction, start from the simple, step by step familiar with neo4j. 2.1 Graphical operator Interface
After running the neo4j, open the Web page in the browser: http://localhost:7474, you can enter the
)-[KNOWS, 3]-> (5)Differences between Neo4j and relational databases
In fact, through the above explanation, I believe everyone has a certain understanding of the difference between neo4j and RDBMS (Relational Database Management System). Now I will repeat it with the following table:
Neo4j
RDBMS
Allow simple and diverse ma
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.