Update (November 2026): Clarified that GQL standardizes property-graph queries, distinguished it from RDF/SPARQL, and updated the portability note to reflect current Neo4j conformance documentation.
TL;DR Graph databases have emerged as a crucial technology for managing and analyzing data that is highly interconnected. Unlike traditional relational databases that store data in tables, graph databases use a graph structure to represent and store data, making them exceptionally powerful for applications that involve complex relationships and connections.
Please access the ready Graph DB playground
What is a Graph Database?
A graph database uses a graph structure to represent data. This structure comprises three main components:
- Nodes: These represent entities such as people, places, or objects. Each node can contain properties (key-value pairs) that store information about the entity.
- Edges: These represent the relationships between nodes. Each edge can also have properties that provide information about the relationship.
- Properties: Additional pieces of information associated with nodes and edges, similar to columns in a relational database table.
This graph-based structure allows for intuitive and efficient querying of complex relationships, making graph databases ideal for scenarios where data is interconnected.
Types of Graph Databases
Property Graphs
- Nodes and Edges: Nodes and edges in property graphs can have multiple properties.
- Flexibility: Property graphs can model a wide range of entities and relationships.
Examples: Neo4j, Amazon Neptune, and Microsoft Azure Cosmos DB.
RDF (Resource Description Framework) Graphs
- Triple-Based Structure: RDF graphs use a subject-predicate-object structure to represent data.
- Semantic Web: Often used in semantic web and linked data applications.
Examples: Neo4j, Apache Jena, Virtuoso, and Stardog.
RDF graphs and property graphs have different data models and standards. GQL, the standard discussed here, is for property graphs; RDF data is commonly queried with SPARQL.
Use Cases of Graph Databases
- Social Networks: Representing and querying connections between users.
- Recommendation Engines: Analyzing user preferences and interactions to provide personalized recommendations.
- Fraud Detection: Identifying suspicious patterns and relationships in financial transactions.
- Knowledge Graphs: Integrating and managing complex knowledge domains.
Popular Graph Database Solutions
- Neo4j: A leading property graph database known for its performance and scalability. It uses Cypher as its query language.
- Amazon Neptune: A managed graph database service supporting both property and RDF graphs.
- Microsoft Azure Cosmos DB: A multi-model database that supports property graphs using the Gremlin query language.
- Apache Jena: An open-source framework for building RDF applications.
- Virtuoso: A multi-model data server that supports RDF graphs.
- Stardog: A knowledge graph platform supporting both RDF and property graph models.
These products support different graph models and query languages. Listing a product here does not imply that it implements GQL; check the vendor’s current documentation for support details.
Example: Graph DB playground
This example demonstrates a comprehensive workflow for working with a graph database. It includes defining a schema, inserting data, querying data, performing advanced queries, and running graph algorithms.
The Journey to GQL
GQL was published as the international standard ISO/IEC 39075:2024. It is a standard language for defining, querying, and modifying property graphs.
GQL (Graph Query Language) provides a declarative syntax for graph data. It shares concepts with existing graph query languages such as Cypher, but a common standard does not mean every database implements the same features or that queries are universally interchangeable.
- Declarative Syntax: GQL uses a declarative approach, making it easier for users to express complex queries.
- Property-graph focus: The ISO standard defines language features for property graphs; it is not an RDF query language.
- Interoperability: GQL provides a common standard, but practical portability depends on each database’s implementation and supported features.
The standard provides a shared foundation for property-graph queries. Adoption and feature coverage vary by product.
As checked on November 22, 2026, Neo4j documents that Cypher supports most mandatory GQL features, while also listing unsupported mandatory features and optional-feature coverage. Check the current, version-specific conformance information before assuming a query is portable. The following basic query is valid in both languages:
MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)
WHERE a.name = 'Tom Hanks'
RETURN m.title Conclusion
Graph databases have emerged as a crucial technology for managing and analyzing data that is highly interconnected. Unlike traditional relational databases that store data in tables, graph databases use a graph structure to represent and store data, making them exceptionally powerful for applications that involve complex relationships and connections.