Differences between revisions 3 and 4
Revision 3 as of 2014-01-15 12:29:31
Size: 2899
Editor: GregorThiele
Comment:
Revision 4 as of 2014-01-15 12:53:49
Size: 4479
Editor: GregorThiele
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
===== How to create a new Webchain from scratch: =====
Before creating a new webchain {{attachment:weblicht_webchain.png}} the required webservices {{attachment:weblicht_webservices.png}} must be added.
===== How to create a new Webservice: =====
Line 39: Line 37:
===== How to create a new Webchain: =====
Before creating a new webchain {{attachment:weblicht_webchain.png}} the required webservices {{attachment:weblicht_webservices.png}} must be added.

 1. Switch to the {{attachment:weblicht_webchain.png}} tab (on the left)
 1. Click {{attachment:weblicht_webchain_add.png}} to create a new webchain. Then the "new webchain dialog" will show up [[attachment:weblicht_webchain_new.png|{{attachment:weblicht_webchain_new.png|attachment:weblicht_webchain_new.png|width="250"}}]]
  * Static Input = The user can specify a string that is always used as an input when executing the webchain.
  * Location = A file is used as input (user must ensure by hisself that the input is a valid / readable file for the io-webervice).
  * Dynamic = Whenever the webchain is executed a dialog shows up where the user may specify a string that will be passed to the webchain.
 1. Add all desired webservices to the chain. Example: {{attachment:weblicht_webchain_edit.png|attachment:weblicht_webchain_edit.png|width="300"}}
 1. For each webchain one output must be specified. The webchain output can be saved to a file or diplayed within ICARUS (dynamic) (if there is a presenter that can handle the output data)
 1. The webchain is executed using {{attachment:weblicht_webchain_execute.png}} the button.


Example:
The Webchain shown in 4.) was executed, using "Karin fliegt nach New York. Sie will dort Urlaub machen." as a static input. The output was set to dynamic and therefore the result was passed to the graph outline tab. The resulting parse of the two sentences is shown below:

[[attachment:weblicht_graph-outline-example.png|{{attachment:weblicht_graph-outline-example.png||width=600}}]]

ICARUS-Weblicht-Perspective

The weblicht_perspective.png perspective provides an easy way to use CLARIN-D Webservices (WebLicht Tübingen):

Toolbars:
  • weblicht_webchain_toolbar.png

    • Save Webchains
    • Run Webchain
    • Add New Webchain
    • Delete Webchain
    • Clone existing Webchain
    • Rename Webchain
    • Edit Webchain
    • Show Webservice weblicht_webservice_inspect.png Note: only read, to edit the webservice use the edit webservice button inside the webservice view tab

  • weblicht_webservice_toolbar.png

    • Save Webservice
    • Add Webservice
    • Delete Webservice
    • Clone Webservice
    • Edit Webservice
    • Sort Webservices ascending
    • Sort Webservices descending

How to create a new Webservice:

This requires the following steps:

  1. Switch to the weblicht_webservices.png tab (on the left)

  2. Click to create a new webservice. Then the new webservice window will show up. attachment:weblicht_new-webservice.png

  3. Fill in all the required information and press "ok". Note: The input and output features will be added in step 5.
  4. This will add the webservice to the webservice list to the left. Select the webservice and press to edit the io-features.

  5. The io-features are all attribute-name/attribute-value pairs. E.g. lang: de (name = lang; value = de), type: text/plain (name=type; value = text/plain) if there is no value only the name must be specified. attachment:weblicht_webservice-io.png

  6. Apply all changes - now the webservice may be used within webchains.

Example webservice information (screenshot taken from WebLicht Tübingen) attachment:weblicht_example_tcf-converter.png

and the resulting ICARUS webservice attachment:weblicht_webservice_icarus.png

How to create a new Webchain:

Before creating a new webchain weblicht_webchain.png the required webservices weblicht_webservices.png must be added.

  1. Switch to the weblicht_webchain.png tab (on the left)

  2. Click to create a new webchain. Then the "new webchain dialog" will show up attachment:weblicht_webchain_new.png

    • Static Input = The user can specify a string that is always used as an input when executing the webchain.
    • Location = A file is used as input (user must ensure by hisself that the input is a valid / readable file for the io-webervice).
    • Dynamic = Whenever the webchain is executed a dialog shows up where the user may specify a string that will be passed to the webchain.
  3. Add all desired webservices to the chain. Example: attachment:weblicht_webchain_edit.png

  4. For each webchain one output must be specified. The webchain output can be saved to a file or diplayed within ICARUS (dynamic) (if there is a presenter that can handle the output data)
  5. The webchain is executed using the button.

Example: The Webchain shown in 4.) was executed, using "Karin fliegt nach New York. Sie will dort Urlaub machen." as a static input. The output was set to dynamic and therefore the result was passed to the graph outline tab. The resulting parse of the two sentences is shown below:

attachment:weblicht_graph-outline-example.png

Any webservices and chains the user created (and saved) can be found in the icarus folder under the following destination: icarus\data\weblicht.xml (webservices) and icarus\data\webchain.xml (Webchains).

extern/ICARUS-Weblicht (last edited 2014-04-24 14:04:13 by GregorThiele)