MyWEST - Extracted Data Querying

 

Data extracted with MyWEST from databank web pages and stored in the relational database connected to MyWEST can be comprehensively mined. To this aim, you can write your specific queries in Structured Query Language (SQL), or use the SQL queries we developed for MS-Access and MySQL databases, which are provided within the MyWEST package.


MS-Access databases

In all MS-Access databases provided with MyWEST package (MyWEST\data\DBgene.mdb, MyWEST\data\Empty-DBgene.mdb, and MyWEST\MT_RA-4h\data\WebExtractionResults-DBgene.mdb), we implemented two sets of SQL queries and a graphic user interface to easily execute them (Figures 1 and 2).

MS-Access graphic interface for specific queries

Figure 2. MS-Access database graphic interface to perform
the articulated queries specifically designed and implemented



To execute the provided queries, in the developed MS-Access graphic user interface simply click the botton regarding the desired query.
Some provided queries are parametric, i.e. every time the query is executed the user can define the word or type of data to search by typing the requested parameter value in an automatically pop-up window (Figure 3).

MS-Access parametric queries

Figure 3. MS-Access parametric queries




MySQL databases

In order to easily query a MySQL database, we suggest to use Free Mascon 2001.2.3.26 or MySQL-Front 2.5 client program. With Free Mascon it is more simple to use our provided SQL queries, whereas MySQL-Front also allows to export query results in XML file format.


Free Mascon

  1. Install Free Mascon and import in Free Mascon all SQL queries provided with MyWEST.

  2. In Free Mascon left menu (Figure 4), double click the name of the database containing the extracted data to query (e.g. GeneData) to connect to it.

  3. Click on Queries button (Figure 4.1) and select a listed SQL query to execute or click on New... button to write a new query.

    Free Mascon query list
    Figure 4. Free Mascon - SQL query list


  4. Click on Design... button (Figure 4.2) to visualize the selected query. In case of a parametric query, query parameters are shown in quotes and colored in red (Figure 5).

    Free Mascon parametric query
    Figure 5. Free Mascon - Parametric SQL query


  5. In case of a parametric query, edit query parameter(s) occording to your query requirements.

  6. Click on Result button (Figure 5) to execute the query and visualize query results (Figure 6).

    Free Mascon query result window
    Figure 6. Free Mascon - Query result window




MySQL Front

  1. Install MySQL Front and click the Connect! button to open the defined connection to the database to query (e.g. GeneData).

  2. In MySQL Front left menu (Figure 7), select the name of the database containing the extracted data to query, e.g. GeneData (Figure 7.1), and click on Query panel (Figure 7.2).

    MySQL Front query panel
    Figure 7. MySQL Front - Query panel


  3. In Query panel, copy and paste the text of a provided SQL queries. In case of a parametric query, query parameters are shown in quotes and colored in green (Figure 8).

    MySQL Front parametric SQL query
    Figure 8. MySQL Front - Parametric SQL query


  4. In case of a parametric query, edit query parameter(s) according to your query requirements.

  5. Press |> button (Figure 8.1) to execute the query. Query results are shown in a result window on the bottom part of the Query panel (Figure 8.2).

  6. To export query results in XML file format, right-click on the result windows and choose Export data... (Figure 9).

    MySQL Front query result export in XML
    Figure 9. MySQL Front - Query result export in XML file format


    In the pop-up window, select XML-file (*.xml) and give a name for the file to save the results in (Figure 10).

    MySQL Front saving XML file with query results
    Figure 10. MySQL Front - Saving XML file with query results


 


© Marco Masseroli, PhD E-mail masseroli@biomed.polimi.it - Last update on June 10, 2004 - 18:39:36