官术网_书友最值得收藏!

The Neo4j interface

Neo4j comes with a browser-based web interface with the ability to manage your database, run queries in Cypher or REST, as well as visualization support for graphs. You can view the status of your database with a node and the relationship count and disk usage stats under dashboard. The data browser helps you to run queries and visualize the results in the form of a graph. You can use the console option to run queries on the database. Cypher and REST are supported in the console of the web interface. Gremlin support was deprecated in the recent version but you can always use it as a powerful external tool. Overall, the web interface provides developers with an easy-to-use system with a frontend for monitoring and querying.

Running Cypher queries

The default page when you open Neo4j is http://localhost:7474/browser/, and it is an interactive shell in the browser to execute your queries in a single or multiline format. You can also view the results locally in the timeline format along with tables or visualizations depending upon the query. Queries can be saved using the star button in the pane and the current content in the editor will be saved. Drag and drop of scripts for stored queries or data import is also possible in this interface.

Running Cypher queries

For administrative purposes, you can redirect to the webadmin interface at http://localhost:7474/webadmin/, which houses several features and functions that can be used to manage and monitor your database system.

Running Cypher queries

The Neo4j webadmin interface

Visualization of results

The most fascinating way of interacting with graphs is visualization. When you run Cypher queries, the result set is generally made up of nodes and relationships that are viewed in the data browser. Clicking on a node or a relationship in the visualizations will show a popup that contains the properties of that entity.

Visualization of results

Visualization of results

You can also customize the content and colors, based on the label or type of relationship. A label is a named graph construct that is used to group nodes or relationships into sets; all nodes labeled with the same label belong to the same set. A type refers to different types of relationships that are present in the graph. (This is different from __type__, which is a property in Spring Data Neo4j used to map objects to nodes/relationships.) The elegance and design of Neo4j comes from the fact that every interaction that we have with it is a demonstration. It not only has a fluid and interactive UI but also a high-end administrative functionality.

主站蜘蛛池模板: 建湖县| 子洲县| 施甸县| 习水县| 沙洋县| 嵊泗县| 山东| 百色市| 鄂伦春自治旗| 上高县| 和林格尔县| 皋兰县| 西畴县| 五莲县| 嫩江县| 鄂伦春自治旗| 米泉市| 武冈市| 永吉县| 津南区| 舟山市| 黄梅县| 敦煌市| 霍林郭勒市| 玉田县| 德庆县| 修水县| 通道| 辽阳市| 河池市| 隆回县| 西峡县| 浦县| 道真| 襄樊市| 千阳县| 永吉县| 永济市| 盐城市| 阿瓦提县| 阜康市|