随笔分类 -  neo4j

1 2 下一页

摘要:# logging into neo4jimport py2neopy2neo_graph= py2neo.Graph("*******", user="*****", password="****")def query_neo4j(query): results_generator = py2ne 阅读全文

posted @ 2019-09-04 15:44 happygril3 阅读(115) 评论(0) 推荐(0)

该文被密码保护。

posted @ 2019-06-04 18:17 happygril3 阅读(4) 评论(0) 推荐(0)

摘要:1.关闭Neo4j服务器进程 2.删除graph.db数据库文件 /data/databases/ rm -rf graph.db 3.重新启动Neo4j服务器 4.数据导入import 5.window界面输入neo4j语言 10-100-22-94:/data/soft/neo4j-commun 阅读全文

posted @ 2019-05-31 18:12 happygril3 阅读(465) 评论(0) 推荐(0)

摘要:py2neo_graph= py2neo.Graph("http://****", user="****", password="*****") #3.5.3def query_neo4j(query): results_generator = py2neo_graph.run(query) res 阅读全文

posted @ 2019-05-24 11:17 happygril3 阅读(687) 评论(0) 推荐(0)

摘要:create(qiao:Person{name:"qiao"}),(wang:Person{name:"wang"}),(zhao:Person{name:"zhao"}),(liang:Person{name:"liang"}),(desk:Desk{num:123456}),(qiao)-[:h 阅读全文

posted @ 2019-02-26 17:51 happygril3 阅读(129) 评论(0) 推荐(0)

摘要:1.跳转到目录:cd /data/soft/neo4j-community-not/ 2.修改配置文件:nano ./conf/neo4j.conf: 3. 登录:bin/cypher-shell -u neo4j -p neo4j0fcredithc 阅读全文

posted @ 2019-02-19 17:12 happygril3 阅读(1272) 评论(0) 推荐(0)

摘要:https://www.jb51.net/os/win10/370409.html 阅读全文

posted @ 2019-02-15 15:10 happygril3 阅读(171) 评论(0) 推荐(0)

摘要:(1)返回一条路径中的所有节点match p=(a)-->(b)-->(c)where a.name="Alice" and c.name="Eskil"return nodes(p)(2)返回一条路径中的所有关系match p=(a)-[r1]->(b)-[r2]->(c)where a.name 阅读全文

posted @ 2019-01-20 21:51 happygril3 阅读(322) 评论(0) 推荐(0)

摘要://返回一个单值 (1)size //返回列表中元素的个数 return size(["Alice","Bob"])as col 2 //返回模式表达式子图的个数 match(a)where a.name="Alice" return size((a)-->()-->()) as fof 3(2)l 阅读全文

posted @ 2019-01-20 21:26 happygril3 阅读(264) 评论(0) 推荐(0)

摘要://返回一个布尔值 create(alice:Person{name:"Alice",age:38,eyes:"brown"}),(charlie:Person{name:"Charlie",age:53,eyes:"green"}),(bob:Person{name:"Bob",age:25,ey 阅读全文

posted @ 2019-01-20 20:42 happygril3 阅读(99) 评论(0) 推荐(0)

摘要:union:列名称应该相同,列的数据类型应该相通 不返回重复的值 create(:Creditcard{number:111111,name:"aaaaaa"}),(:Creditcard{number:222222,name:"bbbbbb"}) create(:Debitcard{number: 阅读全文

posted @ 2019-01-15 14:22 happygril3 阅读(164) 评论(0) 推荐(0)

摘要:unwind;可以将一个列表展开为一个行的序列1.列表 unwind[1,2,3]as x return x2.创建唯一列表with[1,2,3,3]as coll unwind coll as x with distinct x return collect(x)as set3.从列表参数创建节点 阅读全文

posted @ 2019-01-14 17:42 happygril3 阅读(407) 评论(0) 推荐(0)

摘要:可以在结果传递到后面之前对结果进行操作 通常是order by 和limit create(anders:Person{Name:"Anders"}),(ceasar:Person{Name:"Ceasar"}),(bossman:Person{Name:"Bossman"}),(emit:Pers 阅读全文

posted @ 2019-01-14 17:28 happygril3 阅读(86) 评论(0) 推荐(0)

摘要:1.节点不存在 create(anders:Person{Name:"Anders"}),(ceasar:Person{Name:"Ceasar"}),(bossman:Person{Name:"Bossman"}),(emit:Person{Name:"Emit"}),(david:Person{ 阅读全文

posted @ 2019-01-14 17:07 happygril3 阅读(109) 评论(0) 推荐(0)

摘要::params {name:"Keanu Reeves",role:"Neo"} merge(person:Person{name:$name,role:$role})return person.name,person.role 阅读全文

posted @ 2019-01-14 15:19 happygril3 阅读(67) 评论(0) 推荐(0)

摘要:create(olive:Person{chau:"Bill White",name:"Olive Stone",bornin:"New York"}),(charlie:Person{chau:"John Brown",name:"Charlie Sheen",bornin:"New York"} 阅读全文

posted @ 2019-01-14 14:50 happygril3 阅读(163) 评论(0) 推荐(0)

摘要:(1)CREATE可以创建相同节点,merge若节点已存在,则不会重新添加。 CREATE (gp1:GoogleProfile1 {Id: 201401, Name:"Apple"}) CREATE (gp1:GoogleProfile1 {Id: 201401, Name:"Apple"}) M 阅读全文

posted @ 2019-01-14 14:20 happygril3 阅读(234) 评论(0) 推荐(0)

摘要:Neo4j底层默认是不支持类似于time,datetime等时间格式存储的,因此日期可以通过系统的timestamp()函数来获取当前的时间 2019-01-10 return apoc.date.parse("2019-01-10","s","yyyy-MM-dd") 秒 1547078400(1 阅读全文

posted @ 2019-01-10 11:18 happygril3 阅读(694) 评论(0) 推荐(0)

摘要:(二)WHERE //where不单独使用,与match,optional match,start,with搭配 where 与match,optional match 一起用,表示约束 where 与start,with一起用,表示过滤create(andres:Swedish{name:"And 阅读全文

posted @ 2019-01-06 11:35 happygril3 阅读(119) 评论(0) 推荐(0)

摘要:(二)WHERE //where不单独使用,与match,optional match,start,with搭配 where 与match,optional match 一起用,表示约束 where 与start,with一起用,表示过滤create(andres:Swedish{name:"And 阅读全文

posted @ 2019-01-06 10:33 happygril3 阅读(387) 评论(0) 推荐(0)

1 2 下一页

导航