XIB: eXtensible Information Broker

Home ] Documents ] [ Wrapper Builder ] Broker Builder ] Demo ] Tools used ] Downloads ] Contact Us ]

Up

Options Menu

    All XIB Wrappers have a service name, DTD path, descrtiption of the service and output name.  To enter these options for a XIB Wrapper, click on edit->options and enter the data into the following panel:

 

options.jpg (19300 bytes)

 

Opening A File

 

        To open a file for editing, click on file->open and choose one of the load options:

openFile.jpg (172102 bytes)

 

Explaination of Load Options
"Local Disk" means to load a file from the local disk.
"Repository" means to load a file from the repository maintained by the XIB Description Server.
"URL" means to specify a URL and load a file from the internet.

How To Define The Input

    Information sources usually allow a limited number of query forms to be submitted.  The Input defines the set of queries acceptable to a particular source.  it consists of a set of variables that a user can associate values with, and their corresponding range specification.  This portion of the XIB Wrapper can be edited by clicking on the Input button at the bottom of the window.

    Here is an example of an input for an XIB Wrapper:

<INPUT>
    <elementType id="query"> <string/> </elementType>
    <elementType id="mode">
        <attribute name="searchMode" atttype="ENUMERATION"
            values="books music classical video toys electronics blended" />
    </elementType>
</INPUT>

 

Adding An Input Element Type

        To add an input elementType, click on the root of the input elements tree and click on the add element or attribute button.  After entering the name of the element, there will be a dialogue box asking if the element contains an element.  If it does, then click yes and specify the name of the element and the amount of times that it occurs.

addingEle.jpg (55466 bytes)

 

Adding An Input Attribute

 

        To add an attribute to input element, click on the input element on the elements tree and then click on the add button.  Enter the name of the attribute and its possible values. 

addingAttr.jpg (58022 bytes)

 

How To Define The Output

    The Output consists of a set of variables that we can associate query results with, and their corresponding range specification.   This portion of the XIB Wrapper can be edited by clicking on the Output button at the bottom of the window.

 

Adding An Output Element

    To add an output elementType, click on the root of the output elements tree and click on the add button. 

addingId.jpg (55980 bytes)

 

Adding An Output Element Type

    To add an output element, click on the ID of the output elementType that you want to add the element  to and then click on the add button.

addingOutType.jpg (67666 bytes)

 

How To Define The Input Binding

 

    In a XIB website wrapper, an input binding provides necessary information for the dynamic construction of an URL.  In a XIB database wrapper, an input binding provides information for the queries to be performed on the database.  Input bindings have the same format for websites and databases.

    Here is an example of an input binding for a website wrapper:

<INPUTBINDING>
    <BASE method="POST" page="Elem(P, &quot;form&quot;)[0]">
        "http://www.amazon.com" </BASE>
        <BINDING variable="query" mapsTo="keyword-query" />
        <BINDING variable="mode" mapsTo="mode"/>
</INPUTBINDING>

 

    For website wrapper, the wrapper builder automatically provides the names of the binding variables in the input binding based on the information from the input.  To complete the input binding, enter method, page, base and mappings on the following panel:

 

inputBind.jpg (52357 bytes)

 

    For database description, the user must enter the base, driver, user, password and query into the following panel:

 

DBinputBind.jpg (54969 bytes)

How To Define The Output Binding

    Database wrapper do not have output bindings.  Website wrappers have output bindings which consist of WebL scripts.  These scripts define the location of the data inside a HTML document.  They should be written in the following panel:

outputBind.jpg (46130 bytes)

 

    The Test Script button allows you to test the script being written.

Miscellaneous

To SAVE a file, click File->Save or File->Save As.
To REGISTER a document to the repository maintained by the XIB Decsription Server, click File->Register.
To PRINT a document, click File->Print and enter the name of the printer that you want to use.
To CUT a piece of text, highlight the text and click Edit->Cut.
To COPY a piece of text, highlight the text and click Edit->Copy.
To PASTE a piece of text (after performing a cut or copy), highlight the area you want to paste to and click Edit->Paste.
To view DOCUMENTATION about the XIB Description Builder, click Help->View Manual.

 

 

    

  

ut_crest.gif (2479 bytes)
© Copyrighted University of Toronto

Maintained by Jianguo Lu