|
XML element and attribute pattern distribution
See http://taporware.mcmaster.ca/~taporware/xmlTools/patterndistrib.shtml
|
|
Here are the parameters:
|
< < |
|
> > |
|
|
| source | url/local | radio button | url | Let user select input text (either a url or upload local xml text) |
| xmlurl | | text | | A Valid URL pointing to an xml text |
| localFile | | file | | The path to your local html text file |
|
< < |
| disType | 1/2/4/5 | radio button | 4 | Indicate chunk of subtext, They are elememt/attribute/chunk of percentage/trunk of words in order of value in "Parameter Value" field |
|
> > |
| disType | 1/2/4/5 | radio button | 4 | Indicate chunk of subtext, They are element/attribute/chunk of percentage/trunk of words in order of value in "Parameter Value" field |
|
|
| elemonly | | text | | If you want distriution over element, enter valid xml element name here |
|
< < |
| attribute | | text | | If you want distriution over attribute in element specified in the following row, enter a valid attribute here |
|
> > |
| attribute | | text | | If you want distribution over attribute in element specified in the following row, enter a valid attribute here |
|
|
| element | | text | | This one specifies the element where the attribute is in |
| percent | 1/5/10/20/25 | selection | 10 | If distribution over percentage of text is selected, select a percentage number here |
| chunk | | text | 100 | If distribution over chunk of text is selected, enter the number of words each chunk in this field |
|
|
Web Service Interface
|
< < |
Taporware provides web services to any non-benefit organizations. Here is the taporware web services infomation:
|
> > |
Taporware provides web services to any non-benefit organizations. Here is the taporware web services information:
|
|
(Note: the form layout is customized)
|
|
XML element and attribute pattern distribution
See http://taporware.mcmaster.ca/~taporware/xmlTools/patterndistrib.shtml
|
|
| source | url/local | radio button | url | Let user select input text (either a url or upload local xml text) |
| xmlurl | | text | | A Valid URL pointing to an xml text |
| localFile | | file | | The path to your local html text file |
|
< < |
| disType | 1/2/4/5 | radio button | 4 | Indicate trunk of subtext, They are elememt/attribute/trunk of percentage/trunk of words in order of value in "Parameter Value" field |
|
> > |
| disType | 1/2/4/5 | radio button | 4 | Indicate chunk of subtext, They are elememt/attribute/chunk of percentage/trunk of words in order of value in "Parameter Value" field |
|
|
| elemonly | | text | | If you want distriution over element, enter valid xml element name here |
| attribute | | text | | If you want distriution over attribute in element specified in the following row, enter a valid attribute here |
| element | | text | | This one specifies the element where the attribute is in |
|
< < |
|
|
> > |
| percent | 1/5/10/20/25 | selection | 10 | If distribution over percentage of text is selected, select a percentage number here |
| chunk | | text | 100 | If distribution over chunk of text is selected, enter the number of words each chunk in this field |
| relative | | checkbox | unchecked | Check it to display both absolute and relative word distribution in the chunks |
| pattern | | text | | This is the word/pattern you want to see in the distribution |
| HowToList | 1/2/3/4 | radio button | 2 | The format of distribution. In order of the value, it represent SVG/HTML/Tab delimited/java applet. Note: you need SVG viewer to view SVG and java runtime to view applet. |
| taporface | | checkbox | checked | Indicate if open result in new window (no taporware interface) |
|
|
Web Service Interface
|
|
XML element and attribute pattern distribution
See http://taporware.mcmaster.ca/~taporware/xmlTools/patterndistrib.shtml
|
|
Description
|
< < |
This tool creates a distribution list of words found within specific XML elements or attributes.
History
|
> > |
This tool generates different kind of distribution graphs of word/pattern over specific XML elements, attributes, or trunk of text.
|
|
Pseudocode
|
> > |
- Obtain XML string by URL or from user's local disk. If the text is not an XML, return an error message
- Obtain text based on the user selection in the "Subtext limited to" panel
- Chop text into different chunks based on the user selection as well
- Find and record the user specified word/pattern in each chunk, if "show relative distribution" is selected, the total words in each trunk are counted and recorded too
- Based on user selection, generate the corresponding graphics
|
|
Ways of Using
|
> > |
- Fill in the source xml in the source panel either by a valid URL or from your local disk
- Selete the subtext you want to the distribution over to.
- Select or enter the corresponding content according to your subtext
- Check or uncheck "show relative distribution" box
- Enter word/pattern in "What to find" panel
- Select the format of distribution
|
|
CGI Interface
|
> > |
If you want to use this tool from your web site, here is the CGI Interface: (Note: If you want to upload local xml text to the tool, you need to use attribute name/value pair: enctype="multipart/form-data" within the form tag)
Here are the parameters:
| Parameter Name | | Control Type | Default | Discription |
| source | url/local | radio button | url | Let user select input text (either a url or upload local xml text) |
| xmlurl | | text | | A Valid URL pointing to an xml text |
| localFile | | file | | The path to your local html text file |
| disType | 1/2/4/5 | radio button | 4 | Indicate trunk of subtext, They are elememt/attribute/trunk of percentage/trunk of words in order of value in "Parameter Value" field |
| elemonly | | text | | If you want distriution over element, enter valid xml element name here |
| attribute | | text | | If you want distriution over attribute in element specified in the following row, enter a valid attribute here |
| element | | text | | This one specifies the element where the attribute is in |
|
|
|
Web Service Interface
|