Graph Query Languages
HugeGraph supports two mainstream graph query languages: Gremlin (imperative traversal language) and Cypher (declarative pattern matching language).
- Gremlin: The core graph traversal language of Apache TinkerPop, offering rich traversal primitives and fine control over complex topological paths.
- Cypher: The declarative query language standardized by openCypher, featuring intuitive SQL-like patterns (
MATCH ... WHERE ... RETURN) for Neo4j parity.
Language Guides & References
Gremlin traversal fundamentals, CRUD query examples, and TinkerPop feature support.
Declarative Cypher language support, read/write statement examples, execution mechanics, and constraints.
Coverage matrix for Cypher clauses and functions, known behavior differences, and workarounds for unsupported features.
Core differences between Neo4j and HugeGraph in graph modeling, ID strategies, multiple labels, and query translation.
The classic TitanDB “Graph of the Gods” sample graph dataset (12 vertices) used across query examples.
Related Tools & Entry Points
Ways to interact with and execute graph queries across HugeGraph components:
- CLI Shell: Use Gremlin Console to debug queries offline or connect directly to Server over WebSocket.
- Web Visualization: Use HugeGraph-Hubble to run Gremlin / Cypher queries with visual graph exploration and Text2GQL.
- HTTP REST APIs: Submit queries programmatically via HTTP using the Gremlin REST API and Cypher REST API.
- Version Migration: Upgrading from an older version? Review the Gremlin & TinkerPop Migration Guide for syntax removals and behavioral changes.