Neo4j学习笔记

Neo4j是干什么的
Neo4j is a graph database.
Neo4j的特点
Neo4j的使用
    1-install
    2-example
        The Grelin language(Based on the Groovy language)
        g:   the graph object
        g.V :  The vertex
        g.E :  The edges
        filter()/map()/next()
        addVertex()/addEdge()
        out: outE.inV
        in :inE.outV
        class
 
      
Deeping

Install
①Download
②Start the neo4j server: bin/neo4j start
③check if installed succesfully : curl http://localhost:7474/db/data
 

Example:
①Retrieve all the Vertexs : g.V
②Retrieve all the Edges   : g.E
③Add a new vertex : g.addVertex({name:'xxx'})
④Add a new Edge   : g.addEdge(node_1, node_2, relation_type)
⑤To find some specific nodes whose name is xxx : g.V.filter{it.name="xxx"}
 
 
 

How the basic store refer to the graph structure, and how the query dealed?


来自为知笔记(Wiz)


posted on 2013-04-17 22:00 DjvuLee 阅读(347) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

<2013年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

统计

常用链接

留言簿

随笔分类(13)

随笔档案(19)

文章分类(2)

文章档案(1)

搜索

最新评论

评论排行榜