The first step in using the Knowledge Graph feature is to configure the Graph Database.
Knowledge Graph uses Graph Database as the storage engine. Graph Database can establish association with massive data. Compared with other relational databases, Graph Database has more convenient operation, more intuitive data, flexible storage mode and rich application scenarios. It can better query and process complex data relationships.
Support the connection of two Graph Database types: Neo4j and YuKon with Agens Graph
1. Neo4j configuration
Neo4j is one of the most commonly used Graph Databases. Currently, its installation and deployment can be collected on the Internet. Note that Neo4j has a version corresponding to JDK (Neo4j version 4 needs to correspond to jdk11, and version 3 needs to correspond to jdk1.8). After successful installation, enable cmd in the bin directory. The command is neo4j.bat console. Connection succeeded is shown in the following figure. You can connect on the desktop.
2. YuKon with AgensGraph configuration
YuKon database expansion map storage capacity, release YuKon with AgensGraph products (including windows version), installation package download address: http://yukon.supermap.io
After downloading the installation package, decompress it and run Install _ x64.bat. In addition, if the spatial object needs to be stored in the database, the create extension postgis needs to be executed. Install the postgis plugin. See README in the installation package for Instructions for use.
Properties:
- There can be multiple sub-libraries under one database;
- Spatial Data and graph data are no longer two separate libraries, which can realize the integrated management of graph and Spatial Data, and have performance advantages in Build Entities and Relationships.
3. Desktop Connect Graph Database
Function entrance
- Start Tab-> Browse Group-> Map
- Toolbox-> Knowledge Graph-> Connect Graph Database
Operating instructions
- Click the Start tab-> Browse group-> Graph button to pop up the Connect Graph Database dialog box;
- Select the Graph Database type, such as Neo4j, and the default Graph Database address is bolt://127.0.0.1: 7687, and the user name is neo4j;
- Enter the Graph Database password to Connect to a graph database.
- When
- connecting to the YuKon database, the default Graph Database address is 127.0.0.1: 5432/postgres, the user name is Computer Name, and the password is Computer Password (empty if no password).
- To use a YuKon with AgensGraph, you must have a subdatabase. To create a new Graph Database and a graph subdatabase, refer to the Create Graph Database.