[Paper Review] Mragyati : A System for Keyword-based Searching in Databases
This paper proposes Mragyati, a keyword-based database search system that enables users to query databases using free-form keywords without knowledge of schema or SQL. It maps keywords to database relations using metadata and data semantics, dynamically generating structured, browsable results without precomputing a global schema graph, achieving scalability and usability akin to web search.
The web, through many search engine sites, has popularized the keyword-based search paradigm, where a user can specify a string of keywords and expect to retrieve relevant documents, possibly ranked by their relevance to the query. Since a lot of information is stored in databases (and not as HTML documents), it is important to provide a similar search paradigm for databases, where users can query a database without knowing the database schema and database query languages such as SQL. In this paper, we propose such a database search system, which accepts a free-form query as a collection of keywords, translates it into queries on the database using the database metadata, and presents query results in a well-structured and browsable form. Th eysytem maps keywords onto the database schema and uses inter-relationships (i.e., data semantics) among the referred tables to generate meaningful query results. We also describe our prototype for database search, called Mragyati. Th eapproach proposed here is scalable, as it does not build an in-memory graph of the entire database for searching for relationships among the objects selected by the user's query.
Motivation & Objective
- To enable users to search databases using natural keyword queries without prior knowledge of database schemas or SQL.
- To bridge the gap between web-style keyword search and traditional database querying for non-expert users.
- To design a scalable system that avoids precomputing global schema graphs for relationship discovery.
- To present results in a structured, browsable format that reflects semantic relationships between database tables.
- To support meaningful query results by leveraging foreign key relationships and data semantics in the database schema.
Proposed method
- The system maps user-provided keywords to attributes or tables in the database schema using metadata and lexical matching.
- It exploits foreign key relationships and data semantics to infer meaningful joins between tables referenced by keywords.
- A dynamic query generation engine constructs SQL queries on-the-fly by identifying relevant table combinations based on semantic relationships.
- The system avoids building an in-memory global schema graph, ensuring scalability for large databases.
- Results are presented in a structured, hierarchical, and browsable format to improve user understanding and navigation.
- The approach uses database metadata (e.g., table names, column names, foreign key constraints) to disambiguate and map keywords to schema elements.
Experimental results
Research questions
- RQ1How can keyword-based search be effectively supported in relational databases without requiring users to know the schema or write SQL?
- RQ2What techniques can dynamically discover meaningful table joins from keyword queries using data semantics and foreign key constraints?
- RQ3How can the system scale to large databases without precomputing a global schema graph?
- RQ4What mechanisms can structure and present query results in a browsable, semantically meaningful format?
- RQ5How can the system balance relevance and usability in keyword-to-relation mapping for non-expert users?
Key findings
- The system successfully maps free-form keyword queries to meaningful relational queries using only metadata and foreign key relationships.
- By avoiding precomputation of a global schema graph, Mragyati achieves high scalability, especially for large and complex databases.
- The approach enables non-expert users to retrieve relevant results without prior knowledge of SQL or database schema.
- Results are presented in a structured, browsable format that enhances user comprehension and interaction.
- The system demonstrates that keyword-based search in databases is feasible and practical using metadata and semantic relationships.
- The prototype implementation confirms the feasibility of the approach in real-world database scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.