http://disa.fi.muni.cz/vlastislav-dohnal/teaching/nosql-databases-fall-2019/ ● ● ○ ○ ○ ■ ■ ○ ○ ■ ■ source: Sadalage & Fowler: NoSQL Distilled, 2012 ● ○ ○ ○ ○ … ● ○ ○ ● ● ○ ● ● ● ● ● ○ http://db-engines.com/en/system/Neo4j ● ● ○ ○ ■ ● ○ Type Description boolean true/false byte 8-bit integer short 16-bit integer int 32-bit integer long 64-bit integer float 32-bit IEEE 754 floating-point number double 64-bit IEEE 754 floating-point number char 16-bit unsigned integers representing Unicode characters String sequence of Unicode characters ● ○ ■ ■ ○ ■ ● ○ ○ ● ○ ○ ■ ○ ■ ○ ○ ● ○ $ ssh root@... -L 7474:localhost:7474 -L 7687:localhost:7687 # neo4j-community-3.1.4/bin/neo4j start ● ○ /var/tmp ○ tar xvzf neo4j-community-*.tar.gz ■ module add jdk ○ ./bin/neo4j start ● ○ ./bin/neo4j-shell ○ ■ ■ ● ○ ./bin/cypher-shell ● ○ ● ● curl -i -X POST http://localhost:7474/db/data/node -H "Content-Type: application/json; charset=UTF-8" --user "neo4j" -d '{ "name": "Jan" }' http://neo4j.com/docs/stable/rest-api.html ● ○ ● ● ● ○ ● ○ ○ ● ● ● http://neo4j.com/docs/stable/cypher-query-lang.html ● ● ● ● ○ ● ● ● ● Created 1 node, returned 0 rows Created 1 node, set 1 property, returned 1 row Created 1 relationship, returned 1 row Created 1 node, set 1 property, returned 1 row P [Node[4]{name:"Andres"},:WORKS_AT[2] {},Node[5]{},:WORKS_AT[3] {},Node[6]{name:"Michael"}] 1 row Nodes created: 3 Relationships created: 2 Properties set: 2 To create just a relation ship, use MATCH and WHERE n Node[0]{name:"Andres",surname:"Taylor"} 1 row Properties set: 1 Cannot delete node<3>, because it still has relationships. Nodes deleted: 1 Relationships deleted: 1 ● ○ ○ ○ neo4j-community-3.1.4/bin/cypher-shell -u neo4j -p test