Chapter 4. MineSet Web Extensions

This chapter describes the MineSet extensions that are provided to let you create or view visualizations or interact with MineSet over the Web. The following subjects are discussed:

Overview

The MineSet Web extension allows the visualizing of files and data generated by MineSet software over the Web. You can do this by using the MineSet .mtr extension. The MineSet .mtr extension lets you place MineSet visualization, schema and data files into an archive file, which you can embed in a Web page as an HTML tag.

Once the user clicks the hyperlink in Internet Explorer, the browser automatically invokes the MineSet ActiveX control which brings up the visual tool within the browser's window. Any .viz or .mtr file embedded within an HTML document seamlessly launches the ActiveX control within the rest of the web page. The user can then click the hyperlink in Internet Explorer, or type the filename in the URL box, and the ActiveX control will be launched as well.

The machine that the browser is running on must have the MineSet client software installed.

MineSet Web Extension Files

Table 4-1 lists the MineSet Web Extension files, which are located in the /MineSet/examples subdirectory.

Table 4-1. MineSet Web Extension Files

File

(continued) Purpose

adult-salary.eviviz.mtr

.mtr file of adult-salary.eviviz.Windows users find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/eviviz/examples.

nl.births.mapviz.mtr

.mtr file of nl.births.mapviz. Windows users find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/mapviz/examples.

company.scatterviz.mtr

.mtr file of company.scatterviz.Windows users find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/scatterviz/examples.

cars-dt.treeviz.mtr

.mtr file of cars-dt.treeviz.Windows users find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/treeviz/examples.

cars-odt.treeviz.mtr

.mtr file of cars-odt.treeviz.Windows users find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/treeviz/examples.

churn-dt.treeviz.mtr

.mtr file of churn-dt.treeviz.Windows users can find the file in the directory in which MineSet is installed, under \examples. UNIX users find the file in /usr/lib/MineSet/treeviz/examples.


MineSet Web Installation (Client)

During the MineSet client installation the client part of the Web extension is automatically installed. The system must have Internet Explorer 4.0 or greater installed for full Web support. Netscape will launch the visualizer tool externally, not within its browser window.

MineSet .mtr Files

MineSet .mtr files are archives of MineSet files generated by the viz tool. Once created, the files can be used as a hyperlink in an HTML page. The .mtr files are very effective in sharing multiple visualizations over the Web, eliminating the need for attaching huge files in mails, remote copies, or file transfers (ftp). The .mtr files can also be launched directly by dragging them into a browser, or by setting the File property in the HTML PARAM tag.

Since .mtr files are in a compressed format and use the underlying HTTP protocol, the transfer of an .mtr file is very fast and does not require an administrator to perform a cumbersome setup.

You can create an .mtr file from any MineSet visualizer by selecting File > Publish on the Web. This creates an .mtr file for the current visualization.

Publishing on the Web

Having created an .mtr file, you then can make it available on the Web in the following ways:

  1. Create a hyperlink to the .mtr file.

    After you create the .mtr file, move it to the directory that contains all your .html files. For Internet Explorer or Netscape Navigator to launch an .mtr file, you can invoke it directly by entering the following in the Internet Explorer or Netscape Location window:

    http://yourserver/directory/foo.treeviz.mtr 
    Or you can create a link to it from a page by adding the following line in the .html file for that page:
    <A HREF="foo.treeviz.mtr">foo.treeviz.mtr </A> 
    

  2. In Internet Explorer, you can set the OBJECT tag as follows:

    • PARAM tag with CLASSID

      You can set the File property of the ActiveX control directly:

      <OBJECT CLASSID=clsid:911D5D2F-906D-11D2-9A61-00104BD33DDB
      WIDTH=804 HEIGHT=627 ID=vizCompositeCtrl>
      <PARAM NAME="File" VALUE="foo.scatterviz.mtr">
      </OBJECT>
      

    • Alternatively, you can use MIME type instead of CLASSID:

      <OBJECT TYPE = "application/x-mineset-tar" 
      WIDTH = 804 HEIGHT = 627 ID=vizCompositeCtrl>
      <PARAM NAME = "File" VALUE = "foo.scatterviz.mtr">
      </OBJECT>
      </P>
      

  3. Embed the ActiveX control using an EMBED tag.

    <EMBED SRC="cars.scatterviz">
    

    You can also use these techniques c for embedding .viz and .mtr files.