You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dgraph, known for its performance and scalability, can take a revolutionary step forward by exposing an endpoint that accepts pure Abstract Syntax Trees (AST). This goes beyond the conventional Dgraph Query Language (DQL), opening the door to compatibility with an assortment of query languages such as Cypher, SPARQL, and potentially even SQL. Here’s why this is a game-changing proposal:
Unparalleled Flexibility: By accepting pure ASTs, Dgraph will allow users to write queries in languages they are already familiar with. This opens up an unparalleled level of flexibility, where developers can choose the best-suited query language for their specific use cases and datasets.
Community-driven Extensions: Exposing an AST endpoint will likely galvanize the community to create parsers for various query languages. As an open canvas, this can lead to rapid innovations and extensions, with enthusiasts contributing parsers for languages such as Cypher, and potentially, with concerted efforts, even SQL.
Enhanced Data Integration: Many existing systems and datasets employ specific query languages. By supporting a variety of query languages through the AST endpoint, Dgraph can integrate more seamlessly with existing systems, thus enhancing data interoperability and streamlining data exchange.
Customization and Optimization: Accepting ASTs allows users to perform highly customized and optimized queries tailored to their specific needs. This goes beyond the constraints of any single query language, empowering users to achieve performance gains through optimization at the AST level.
Education and Skill Transferability: For individuals and organizations already well-versed in SQL, Cypher, or other query languages, the ability to use these languages with Dgraph means that they can leverage their existing knowledge and expertise. This eases the learning curve and accelerates the onboarding process.
Competitive Edge: Offering an AST endpoint that accepts multiple query languages would provide Dgraph with a significant competitive advantage over other graph databases. This unique feature can be a key differentiator, attracting both individual developers and enterprise clients.
Use case
Related to #8887
Dgraph, known for its performance and scalability, can take a revolutionary step forward by exposing an endpoint that accepts pure Abstract Syntax Trees (AST). This goes beyond the conventional Dgraph Query Language (DQL), opening the door to compatibility with an assortment of query languages such as Cypher, SPARQL, and potentially even SQL. Here’s why this is a game-changing proposal:
Unparalleled Flexibility: By accepting pure ASTs, Dgraph will allow users to write queries in languages they are already familiar with. This opens up an unparalleled level of flexibility, where developers can choose the best-suited query language for their specific use cases and datasets.
Community-driven Extensions: Exposing an AST endpoint will likely galvanize the community to create parsers for various query languages. As an open canvas, this can lead to rapid innovations and extensions, with enthusiasts contributing parsers for languages such as Cypher, and potentially, with concerted efforts, even SQL.
Enhanced Data Integration: Many existing systems and datasets employ specific query languages. By supporting a variety of query languages through the AST endpoint, Dgraph can integrate more seamlessly with existing systems, thus enhancing data interoperability and streamlining data exchange.
Customization and Optimization: Accepting ASTs allows users to perform highly customized and optimized queries tailored to their specific needs. This goes beyond the constraints of any single query language, empowering users to achieve performance gains through optimization at the AST level.
Education and Skill Transferability: For individuals and organizations already well-versed in SQL, Cypher, or other query languages, the ability to use these languages with Dgraph means that they can leverage their existing knowledge and expertise. This eases the learning curve and accelerates the onboarding process.
Competitive Edge: Offering an AST endpoint that accepts multiple query languages would provide Dgraph with a significant competitive advantage over other graph databases. This unique feature can be a key differentiator, attracting both individual developers and enterprise clients.
Links to Discuss, RFC or previous Issues and PRs
No response
Links to examples and research
No response
Current state
No response
Solution proposal
No response
Additional Information
Here is an example of DQL AST
The text was updated successfully, but these errors were encountered: