Smart SQL Alfa Tech Software Solutions Application Requirements

  • Slides: 24
Download presentation
Smart. SQL Alfa. Tech Software Solutions Application Requirements Document Academic Advisor: Prof. Ehud Gudes

Smart. SQL Alfa. Tech Software Solutions Application Requirements Document Academic Advisor: Prof. Ehud Gudes Technical Advisor: Eliezer Kaplanski Team Members: q Radi Bekker q Marina Shaevich q Vladimir Goldman q Alexander Shapiro

Background Ø The NLP problem: § This area has been around in the computing

Background Ø The NLP problem: § This area has been around in the computing world for a relatively long time. § Natural language processing (NLP) is a subfield of artificial intelligence and linguistics. § The main goal of NLP is to be interpreted by the computer and act according to its primary purpose. § The definition of "understanding" is one of the major problems in natural language processing. § Natural language understanding is sometimes referred to as an AI-complete problem (making computers as intelligent as people ).

Background- Alfa Magic ØThe Alfa. Tech tool. § Alfa Magic can be used to

Background- Alfa Magic ØThe Alfa. Tech tool. § Alfa Magic can be used to create computer software without using any computer languages. § Alfa Magic is a development platform that has been optimized for developers of administrative applications. § Alfa Magic Designer lets you design your applications graphically. § Alfa Magic allows a developer to focus on translating the business logic of a customer to application logic.

Background- Alfa Magic

Background- Alfa Magic

Problem Domain ØMost of the software in the world deals with data extraction from

Problem Domain ØMost of the software in the world deals with data extraction from databases. ØQuery execution requires knowledge in SQL. ØRequires many specialists and resources in order to maintain databases. Ø Simple users, without programming or SQL knowledge cannot change or update databases. Ø Asking the databases questions in a natural language is a very convenient and easy method of data access, especially for casual users who do not understand complicated database query languages such as SQL.

Current Solutions ØThe first attempts at NLP database interfaces are just as old as

Current Solutions ØThe first attempts at NLP database interfaces are just as old as any other NLP research. ØThere are several known NLP-query builders: § ELF – works only with Access databases. § NALIX – works only with XML. Ø Such systems integrates some glossaries/grammars in order to handle more NL queries. ØThey differ in a power of such glossaries and their structures.

Current Solutions Three Levels Of Information:

Current Solutions Three Levels Of Information:

Proposed Solution Smart. SQL

Proposed Solution Smart. SQL

Smart. SQL Ø Smart. SQL will accept an arbitrary English language sentence and translate

Smart. SQL Ø Smart. SQL will accept an arbitrary English language sentence and translate it into exact DB query in SQL. Ø The performance of the software should be able to handle queries in a variety of application domains. Ø Smart. SQL will be integrated in the Alfa. Tech tool (Alfa. Magic) in order to enhance its given database access services.

Smart. SQL – Cont. Ø When a new database is needed to be integrated

Smart. SQL – Cont. Ø When a new database is needed to be integrated into the system, the system will first scan the database to extract all the needed information. Ø Third level of information will be based on glossaries relevant to the current applied database. Ø This glossaries will advance our system not only in the NLP point of view but also in AI.

System Architecture Alfa. Tech Smart. SQL Company Manager System Administrator Query Data Set DBMS

System Architecture Alfa. Tech Smart. SQL Company Manager System Administrator Query Data Set DBMS (SQL server, access) User

Functional Requirements Ø General Requirements: § The system will be able to extract and

Functional Requirements Ø General Requirements: § The system will be able to extract and present information from SQL Server or Access database. § The system will allow to users different actions according to their status ( adminordinary user) § Administrator will be able to add/remove database and its glossary. § The system will allow addition/removal of users.

Functional Requirements Ø NLP Analyzer: § Will receive a natural language sentence and will

Functional Requirements Ø NLP Analyzer: § Will receive a natural language sentence and will transform it into SQL query. § In case of misunderstanding, clarification questions will be asked. § Extensive use of glossaries in order to understand the given NLP query. § Will support all SQL main commands: Select, Join, Group by, Order by, Insert into, Update, Delete, Drop. § Will not support: join on more then 2 tables, having, Reports.

Functional Requirements Ø Graphical Query Builder: § Creation of queries using graphical interface. §

Functional Requirements Ø Graphical Query Builder: § Creation of queries using graphical interface. § Queries can be saved. § Ability to open saved queries.

Functional Requirements Ø Graphical presentation of data: § Presentation of the query in different

Functional Requirements Ø Graphical presentation of data: § Presentation of the query in different modes (Pie, data grid, columns, etc. ) by choosing the desired parameters: height, width, location, color, angle, etc.

Functional Requirements Ø User interaction with the system through several graphical interfaces: ü Login

Functional Requirements Ø User interaction with the system through several graphical interfaces: ü Login window. ü Administrator window. ü Natural language window. ü SQL builder window. ü Presentation window.

Non-Functional Requirements Ø Speed: § System response within 2 seconds. § In case of

Non-Functional Requirements Ø Speed: § System response within 2 seconds. § In case of interaction with DBMS, system will timeout within 20 seconds. Ø Capacity: § One – threaded system. Ø Safety & Security: § Authorization § Access Control.

Non-Functional Requirements Ø Usability: § User-friendly interface. § No previous knowledge required. Ø Availability:

Non-Functional Requirements Ø Usability: § User-friendly interface. § No previous knowledge required. Ø Availability: § Available 24 hours a day. Ø Technologies: § Visual Studio 2005, C#. § MS Access. § SQL Server 2000 or later.

Risks Ø NATURAL LANGUAGE PROCESSING

Risks Ø NATURAL LANGUAGE PROCESSING

Use Case Diagram

Use Case Diagram

Creating SQL with SQL builder

Creating SQL with SQL builder

Generation SQL from Natural Language

Generation SQL from Natural Language

Interaction with result presentation

Interaction with result presentation

Questions

Questions