This is the multi-page printable view of this section. .
HugeGraph Client
1 - HugeGraph-Java-Client
1 Overview Of Hugegraph
HugeGraph-Client sends HTTP request to HugeGraph-Server to get and parse the execution result of Server. We support HugeGraph-Client for Java/Go/Python language. You can use Client-API to write code to operate HugeGraph, such as adding, deleting, modifying, and querying schema and graph data, or executing gremlin statements.
HugeGraph client SDK tool based on Go language (version >=1.2.0)
2 What You Need
- Java 11 (also supports Java 8)
- Maven 3.5+
3 How To Use
The basic steps to use HugeGraph-Client are as follows:
- Build a new Maven project by IDEA or Eclipse
- Add HugeGraph-Client dependency in a pom file;
- Create an object to invoke the interface of HugeGraph-Client
See the complete example in the following section for the detail.
4 Complete Example
4.1 Build New Maven Project
Using IDEA or Eclipse to create the project:
4.2 Add Hugegraph-Client Dependency In POM
Note: The versions of all graph components remain consistent
4.3 Example
4.3.1 SingleExample
4.3.2 BatchExample
4.4 Run The Example
Before running Example, you need to start the Server. For the startup process, seeHugeGraph-Server Quick Start.
4.5 More Information About Client-API
2 - HugeGraph Python Client Quick Start
The hugegraph-python-client is a Python client/SDK for HugeGraph Database.
It is used to define graph structures, perform CRUD operations on graph data, manage schemas, and execute Gremlin queries. Both the hugegraph-llm and hugegraph-ml modules depend on this foundational library.
Installation
Install the released package (Stable)
To install the hugegraph-python-client, you can use uv/pip or source code building:
Install from Source (Latest Code)
To install from the source, clone the repository and install the required dependencies:
Usage
Defining Graph Structures
You can use the hugegraph-python-client to define graph structures. Below is an example of how to define a graph:
Schema Management
The hugegraph-python-client provides comprehensive schema management capabilities.
Define Property Keys
Define Vertex Labels
Define Edge Labels
Define Index Labels
CRUD Operations
The client allows you to perform CRUD operations on the graph data. Below are examples of how to create, read, update, and delete vertices and edges:
Create Vertices and Edges
Read Vertices and Edges
Update Vertices and Edges
Delete Vertices and Edges
Execute Gremlin Queries
The client also supports executing Gremlin queries:
Other info is under 🚧 (Welcome to add more docs for it, users could refer java-client-doc for similar usage)
Contributing
- Welcome to contribute to
hugegraph-python-client. Please see the Guidelines for more information. - Code format: Please run
./style/code_format_and_analysis.shto format your code before submitting a PR.
Thank you to all the people who already contributed to hugegraph-python-client!
Contact Us
- GitHub Issues: Feedback on usage issues and functional requirements (quick response)
3 - HugeGraph Go Client Quick Start
A HugeGraph Client SDK tool based on the Go language.
Software Architecture
(Software architecture description)
Installation Tutorial
Implemented APIs
| API | Description |
|---|---|
| schema | Get schema information |
| version | Get version information |