├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── app ├── __init__.py ├── core │ ├── __init__.py │ ├── ast_visitor │ │ ├── __init__.py │ │ └── ast_visitor.py │ ├── clauses │ │ ├── __init__.py │ │ ├── clause.py │ │ ├── match_clause.py │ │ ├── return_clause.py │ │ ├── where_clause.py │ │ └── with_clause.py │ ├── generalizer │ │ ├── __init__.py │ │ ├── query_generalizer.py │ │ └── question_generalizer.py │ ├── generator │ │ ├── __init__.py │ │ ├── corpus_generator.py │ │ ├── data_generator.py │ │ ├── query_generator.py │ │ ├── question_generator.py │ │ └── schema_generator.py │ ├── llm │ │ └── llm_client.py │ ├── prompt │ │ ├── corpus.py │ │ ├── data.py │ │ └── schema.py │ ├── schema │ │ ├── __init__.py │ │ ├── edge.py │ │ ├── node.py │ │ ├── schema_graph.py │ │ └── schema_parser.py │ ├── translator │ │ ├── __init__.py │ │ ├── query_translator.py │ │ └── question_translator.py │ └── validator │ │ ├── db_client.py │ │ └── validator.py └── impl │ ├── __init__.py │ ├── iso_gql │ ├── __init__.py │ ├── ast_visitor │ │ ├── __init__.py │ │ └── iso_gql_ast_visitor.py │ ├── grammar │ │ ├── GQL.g4 │ │ ├── GQL.interp │ │ ├── GQL.tokens │ │ ├── GQLLexer.interp │ │ ├── GQLLexer.py │ │ ├── GQLLexer.tokens │ │ ├── GQLListener.py │ │ ├── GQLParser.py │ │ ├── GQLVisitor.py │ │ ├── __init__.py │ │ ├── build.sh │ │ └── requirements.txt │ ├── schema │ │ └── __init__.py │ └── translator │ │ ├── __init__.py │ │ └── iso_gql_query_translator.py │ └── tugraph_cypher │ ├── __init__.py │ ├── ast_visitor │ ├── __init__.py │ ├── tugraph_cypher_ast_visitor.py │ └── tugraph_cypher_query_visitor.py │ ├── db_client │ ├── __init__.py │ └── tugraph_db_client.py │ ├── generalizer │ ├── __init__.py │ ├── base │ │ ├── Config.py │ │ ├── CypherBase.py │ │ ├── Expr.py │ │ ├── Parse.py │ │ ├── Pattern.py │ │ ├── Schema.py │ │ ├── TransVisitor.py │ │ ├── __init__.py │ │ ├── config.json │ │ ├── db_instance │ │ │ └── movie │ │ │ │ ├── raw_data │ │ │ │ ├── edge_acted_in.csv │ │ │ │ ├── edge_directed.csv │ │ │ │ ├── edge_has_genre.csv │ │ │ │ ├── edge_has_keyword.csv │ │ │ │ ├── edge_is_friend.csv │ │ │ │ ├── edge_produce.csv │ │ │ │ ├── edge_rate.csv │ │ │ │ ├── edge_write.csv │ │ │ │ ├── vertex_genre.csv │ │ │ │ ├── vertex_keyword.csv │ │ │ │ ├── vertex_movie.csv │ │ │ │ ├── vertex_person.csv │ │ │ │ └── vertex_user.csv │ │ │ │ └── schema.json │ │ └── template │ │ │ ├── ignored_property.txt │ │ │ ├── schema_dict.txt │ │ │ └── syn_dict.txt │ └── graph_query_generalizer.py │ ├── grammar │ ├── Lcypher.g4 │ ├── Lcypher.interp │ ├── Lcypher.json │ ├── Lcypher.tokens │ ├── LcypherLexer.interp │ ├── LcypherLexer.py │ ├── LcypherLexer.tokens │ ├── LcypherListener.py │ ├── LcypherParser.py │ ├── LcypherVisitor.py │ ├── Lcypher_generator.g4 │ ├── __init__.py │ ├── build.sh │ └── requirements.txt │ ├── schema │ ├── __init__.py │ └── schema_parser.py │ ├── translator │ ├── __init__.py │ └── tugraph_cypher_query_translator.py │ └── utils │ ├── Cypher2Dot.py │ ├── CypherStream.py │ ├── GrammarCheck.py │ └── __init__.py ├── chatbot_demo ├── README.md ├── demo.py ├── demo.sh └── lgraph.json ├── doc └── en-us │ └── development │ └── generator │ ├── data_generator.md │ └── schema_generator.md ├── examples ├── cypher2gql.py ├── english_to_chinese.py ├── generalize_corpus_cypher.py ├── generalize_corpus_gql.py ├── generate_corpus.py ├── generate_data.py ├── generate_schema.py ├── generated_schemas │ └── example_schema.json └── print_ast.py ├── images ├── Architecture.drawio.svg ├── Corpus.drawio.svg ├── Data.drawio.svg ├── Schema.drawio.svg ├── demo.gif ├── overview.jpg ├── query_generalizer.png └── query_translator.png └── pyproject.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/README.md -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/ast_visitor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/ast_visitor/ast_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/ast_visitor/ast_visitor.py -------------------------------------------------------------------------------- /app/core/clauses/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/clauses/clause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/clauses/clause.py -------------------------------------------------------------------------------- /app/core/clauses/match_clause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/clauses/match_clause.py -------------------------------------------------------------------------------- /app/core/clauses/return_clause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/clauses/return_clause.py -------------------------------------------------------------------------------- /app/core/clauses/where_clause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/clauses/where_clause.py -------------------------------------------------------------------------------- /app/core/clauses/with_clause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/clauses/with_clause.py -------------------------------------------------------------------------------- /app/core/generalizer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/generalizer/query_generalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/generalizer/query_generalizer.py -------------------------------------------------------------------------------- /app/core/generalizer/question_generalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/generalizer/question_generalizer.py -------------------------------------------------------------------------------- /app/core/generator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/generator/corpus_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/generator/corpus_generator.py -------------------------------------------------------------------------------- /app/core/generator/data_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/generator/data_generator.py -------------------------------------------------------------------------------- /app/core/generator/query_generator.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/generator/question_generator.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/generator/schema_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/generator/schema_generator.py -------------------------------------------------------------------------------- /app/core/llm/llm_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/llm/llm_client.py -------------------------------------------------------------------------------- /app/core/prompt/corpus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/prompt/corpus.py -------------------------------------------------------------------------------- /app/core/prompt/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/prompt/data.py -------------------------------------------------------------------------------- /app/core/prompt/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/prompt/schema.py -------------------------------------------------------------------------------- /app/core/schema/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/schema/edge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/schema/edge.py -------------------------------------------------------------------------------- /app/core/schema/node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/schema/node.py -------------------------------------------------------------------------------- /app/core/schema/schema_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/schema/schema_graph.py -------------------------------------------------------------------------------- /app/core/schema/schema_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/schema/schema_parser.py -------------------------------------------------------------------------------- /app/core/translator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/translator/query_translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/translator/query_translator.py -------------------------------------------------------------------------------- /app/core/translator/question_translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/translator/question_translator.py -------------------------------------------------------------------------------- /app/core/validator/db_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/validator/db_client.py -------------------------------------------------------------------------------- /app/core/validator/validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/core/validator/validator.py -------------------------------------------------------------------------------- /app/impl/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/ast_visitor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/ast_visitor/iso_gql_ast_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/ast_visitor/iso_gql_ast_visitor.py -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQL.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQL.g4 -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQL.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQL.interp -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQL.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQL.tokens -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLLexer.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLLexer.interp -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLLexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLLexer.py -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLLexer.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLLexer.tokens -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLListener.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLListener.py -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLParser.py -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/GQLVisitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/GQLVisitor.py -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/build.sh: -------------------------------------------------------------------------------- 1 | pip install -r requirements.txt 2 | antlr4 -Dlanguage=Python3 -visitor ./GQL.g4 3 | -------------------------------------------------------------------------------- /app/impl/iso_gql/grammar/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/grammar/requirements.txt -------------------------------------------------------------------------------- /app/impl/iso_gql/schema/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/translator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/iso_gql/translator/iso_gql_query_translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/iso_gql/translator/iso_gql_query_translator.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/ast_visitor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/ast_visitor/tugraph_cypher_ast_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/ast_visitor/tugraph_cypher_ast_visitor.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/ast_visitor/tugraph_cypher_query_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/ast_visitor/tugraph_cypher_query_visitor.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/db_client/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/db_client/tugraph_db_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/db_client/tugraph_db_client.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/Config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/Config.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/CypherBase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/CypherBase.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/Expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/Expr.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/Parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/Parse.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/Pattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/Pattern.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/Schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/Schema.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/TransVisitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/TransVisitor.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/config.json -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_acted_in.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_acted_in.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_directed.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_directed.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_has_genre.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_has_genre.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_has_keyword.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_has_keyword.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_is_friend.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_is_friend.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_produce.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_produce.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_rate.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_rate.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_write.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/edge_write.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_genre.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_genre.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_keyword.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_keyword.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_movie.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_movie.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_person.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_person.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_user.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/raw_data/vertex_user.csv -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/db_instance/movie/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/db_instance/movie/schema.json -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/template/ignored_property.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/template/schema_dict.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/template/schema_dict.txt -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/base/template/syn_dict.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/base/template/syn_dict.txt -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/generalizer/graph_query_generalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/generalizer/graph_query_generalizer.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/Lcypher.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/Lcypher.g4 -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/Lcypher.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/Lcypher.interp -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/Lcypher.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/Lcypher.json -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/Lcypher.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/Lcypher.tokens -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherLexer.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherLexer.interp -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherLexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherLexer.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherLexer.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherLexer.tokens -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherListener.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherListener.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherParser.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/LcypherVisitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/LcypherVisitor.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/Lcypher_generator.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/Lcypher_generator.g4 -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/grammar/build.sh -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/grammar/requirements.txt: -------------------------------------------------------------------------------- 1 | antlr4-python3-runtime==4.13.1 -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/schema/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/schema/schema_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/schema/schema_parser.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/translator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/translator/tugraph_cypher_query_translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/translator/tugraph_cypher_query_translator.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/utils/Cypher2Dot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/utils/Cypher2Dot.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/utils/CypherStream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/utils/CypherStream.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/utils/GrammarCheck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/app/impl/tugraph_cypher/utils/GrammarCheck.py -------------------------------------------------------------------------------- /app/impl/tugraph_cypher/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chatbot_demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/chatbot_demo/README.md -------------------------------------------------------------------------------- /chatbot_demo/demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/chatbot_demo/demo.py -------------------------------------------------------------------------------- /chatbot_demo/demo.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/chatbot_demo/demo.sh -------------------------------------------------------------------------------- /chatbot_demo/lgraph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/chatbot_demo/lgraph.json -------------------------------------------------------------------------------- /doc/en-us/development/generator/data_generator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/doc/en-us/development/generator/data_generator.md -------------------------------------------------------------------------------- /doc/en-us/development/generator/schema_generator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/doc/en-us/development/generator/schema_generator.md -------------------------------------------------------------------------------- /examples/cypher2gql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/cypher2gql.py -------------------------------------------------------------------------------- /examples/english_to_chinese.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/english_to_chinese.py -------------------------------------------------------------------------------- /examples/generalize_corpus_cypher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generalize_corpus_cypher.py -------------------------------------------------------------------------------- /examples/generalize_corpus_gql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generalize_corpus_gql.py -------------------------------------------------------------------------------- /examples/generate_corpus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generate_corpus.py -------------------------------------------------------------------------------- /examples/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generate_data.py -------------------------------------------------------------------------------- /examples/generate_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generate_schema.py -------------------------------------------------------------------------------- /examples/generated_schemas/example_schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/generated_schemas/example_schema.json -------------------------------------------------------------------------------- /examples/print_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/examples/print_ast.py -------------------------------------------------------------------------------- /images/Architecture.drawio.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/Architecture.drawio.svg -------------------------------------------------------------------------------- /images/Corpus.drawio.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/Corpus.drawio.svg -------------------------------------------------------------------------------- /images/Data.drawio.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/Data.drawio.svg -------------------------------------------------------------------------------- /images/Schema.drawio.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/Schema.drawio.svg -------------------------------------------------------------------------------- /images/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/demo.gif -------------------------------------------------------------------------------- /images/overview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/overview.jpg -------------------------------------------------------------------------------- /images/query_generalizer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/query_generalizer.png -------------------------------------------------------------------------------- /images/query_translator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/images/query_translator.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TuGraph-family/Awesome-Text2GQL/HEAD/pyproject.toml --------------------------------------------------------------------------------