Size: 6217
Comment:
|
Size: 6563
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
[[ICARUS|Back To ICARUS Main Page]] | [[ICARUS|{{attachment:navi_up.png|Back to ICARUS Main Page}}]][[ICARUS|Back to ICARUS Main Page]] |
Line 14: | Line 14: |
=== Webchain Toolbar: === | === I. Webchain Toolbar: === |
Line 25: | Line 25: |
[[#icarus-weblicht-index|Back To Index]] | [[#icarus-weblicht-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-weblicht-index|Back to index]] |
Line 29: | Line 29: |
=== WebserviceToolbar: === | === II. WebserviceToolbar: === |
Line 39: | Line 39: |
[[#icarus-weblicht-index|Back To Index]] | [[#icarus-weblicht-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-weblicht-index|Back to index]] |
Line 43: | Line 43: |
=== How to create a new webservice: === | === III. How to create a new webservice: === |
Line 57: | Line 57: |
[[#icarus-weblicht-index|Back To Index]] | [[#icarus-weblicht-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-weblicht-index|Back to index]] |
Line 61: | Line 61: |
=== How to create a new webchain: === | === IV. How to create a new webchain: === |
Line 81: | Line 81: |
[[#icarus-weblicht-index|Back To Index]] | [[#icarus-weblicht-index|{{attachment:navi_up.png|Back to index}}]][[#icarus-weblicht-index|Back to index]] |
ICARUS-Weblicht-Perspective
The perspective provides an easy way to use CLARIN-D Webservices (WebLicht Tübingen):
Index:
I. Webchain Toolbar:
= Save all
webchains (ICARUS\data\webchain.xml)
= Execute the selected
webchain
= Add New Webchain
= Delete the selected
webchain
= Clone the selected
webchain
= Open dialog to rename the selected
webchain
= Edit the selected
webchain
= Show
webservice details. Note: read-only mode, to edit the webservice use the
edit webservice button that can be found within the
webservice view tab
II. WebserviceToolbar:
=Save Webservice
= Add Webservice
= Delete Webservice
= Clone Webservice
= Edit Webservice
= Sort webservices in ascending order
= Sort webservices in descending order
III. How to create a new webservice:
Creating a new webservice require the following steps:
Switch to the
tab (on the left)
Click
to create a new webservice. Then the new webservice window will show up.
- Fill in all the required information and press "ok". Note: The input and output features will be added in step 5.
This will add the webservice to the webservice list to the left. Select the webservice and click
to edit the io-features.
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.
- Apply all changes - now the webservice may be used within webchains.
Example webservice information (screenshot taken from WebLicht Tübingen)
and the resulting ICARUS webservice
IV. How to create a new webchain:
Before creating a new webchain all necessary
webservices
must have been speficied.
Switch to the
tab (on the left)
Click
to create a new webchain. Then the "new webchain dialog" will show up
- 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.
Add all desired webservices to the chain. Example:
- 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)
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 parsetree of the two sentences is shown in the figure below:
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).