Neo4j

Posted sea520

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Neo4j相关的知识,希望对你有一定的参考价值。

技术图片

Discover how graph databases can help you manage and query highly connected data — with O’Reilly’s definitive book on Graph Databases.

 

 

1. Install Neo4j
 
2. Open Neo4j Browser

技术图片

Start Up the Neo4j Browser

Visit: http://localhost:7474/

Once you create a new password for the ‘neo4j‘ user upon visiting the Neo4j Browser the first time, you‘ll have full access to the Neo4j database.

The Neo4j Browser is a tool for developers to explore their Neo4j database, execute Cypher queries and see results in tabular or graph form. You can even use the Browser to:

3. Explore Sample Datasets

Neo4j Sample Datasets

 
技术图片

Explore two sample datasets built into the Neo4j Browser using the following commands:
:play movie graph
:play northwind graph
Both datasets are easily accessible using the blue "Write Code" button under the "Jump into Code" section of the guides.

Neo4j is used by developers building applications for a wide range of use cases and industries. Graph databases are a great fit for any use case where a relationship-first approach is helpful, including content recommendations, network/IT analysis, fraud detection, Internet of Things(IoT) and more.  

Additional datasets

We‘re working on datasets for a variety of other uses cases. Are you looking for something in particular or have a suggestion? Reach out to devrel@neo4j.com.

4. Download Drivers

You‘ve already seen the Neo4j Browser - which is your developer interface to the Neo4j graph database. Now it‘s time to write code in your favorite programming language so you can start building your application.

Get the official drivers for javascript, Java, .NET, and Python

Additionally, the community has built a wide variety of other drivers in languages like php, Ruby, Go, Haskell and more.

5. Create Your Data Model

Creating Your First Data Model

Start with a small data model and then build out from there - Neo4j is naturally adaptive, so you can add new node labels, relationships and properties on the fly.

Example Data Models

The developer community has provided example data models and queries for a variety of use cases outlined in Neo4j GraphGists.

Data Import

Do you have some existing data you‘d like to import? You can import your data from CSV files using the Cypher‘s LOAD CSV command. Learn more about import in the Neo4j Developer Manual: Load CSV and Importing CSV Data into Neo4j.

Of course, Neo4j believes in polyglot persistence as well - so we‘re happy if Neo4j is just one part of your overall architecture and storing your connected data, while your columnar, tabular and document data is stored elsewhere. Learn more about the various types of data integrations possible with Neo4j.

6. Get Help and Training

以上是关于Neo4j的主要内容,如果未能解决你的问题,请参考以下文章

通过 java 代码生成 db 后 Neo4j 2.2.1 服务器不启动

无法从JSP连接Neo4j

使用neo4j JS驱动程序进行套接字挂起

Neo4j类似的软件都有哪些?

从 MySQL 导出到 Neo4j

在 Neo4j 中看不到任何图表