The OPS-Knime project has three goals:
- To easily include OpenPHACTS services in a Knime workflow
- To create a KNIME community nodes that provides functionality include RESTful services in a KNIME workflow where the services themselves are described in a SWAGGER file
- to give the Knime community easy access to the OpenPHACTS services.
OPS-Knime is a project devoted to ease the process of including into the workflow engine.
- OpenPHACTS reduces the barriers to drug discovery in industry, academia and for small businesses.
- Knime offers a workflow system by implementing a low-barrier visual programming environment for researchers dependent on data and statistical data-crunching methods/algorithms.
KNIME-UTILS: OPS_SWAGGER & OPS_JSON
The OpenPHACTS services are accessible via HTTP-GET . These services are described in SWAGGER, and rendered by 3scale into convenient, human-readable html documentation. The latest swagger file for the OpenPHACTS version 1.4 can be found here , and the visualisation is here SWAGGER is an easy way to describe REST services. It contains all the necessary information needed to be able to understand the purpose and how to technically invoke services that are provided. For example the address of the server, the path to the services and the parameters that the services require or which are optional to fine-tune the desired functionality of the service.
The OPS-Knime project to give the Knime community easy access to the OpenPHACTS services.
This node parses a SWAGGER file which is loaded via the config panel. The user selects a service from a list that is generated by the parser. After selecting the service, a parameter panel allows the user to specify the default parameter settings for that service. The input table contains exactly one row, where the column headers are the parameter names for the service selected by the user and the cells are the values for the respective parameters.
OPS_JSON transforms a nested JSON structure in two KNIME tables. The first output table contains the results according to the specified json-paths the user wants to have, and the second table is the complete transformed JSON result.
- Download "org.openphacts.utils.json_1.1.0.zip" (download)
- Rename to
org.openphacts.utils.json_1.1.0.jarand place it in the
plugins/folder of your KNIME installation.
- Alternatively: Create a folder
plugins/org.openphacts.utils.json_1.1.0and unzip the downloaded ZIP there, ensuring
plugin.xmland friends are directly below
- On Mac OS X the
pluginsfolder is under the Knime application. Context-click on Knime and select Show Package Content.
- Alternatively: Create a folder
- Download the example workflow (OPS_KNIME 1.4-example-workflow.zip)
- Start your Knime environment (you should see already a couple of new nodes at the left, like OPS_KNIME)
- Import the example workflow (file>>import-workflow...>>select archive file)
- Double click on the example workflow
- Reset the input table (click on input table, then click on table icon with red cross)
- Execute the node (click on the green 'play' button).
Some example workflow that uses both the OPS_SWAGGER and OPS_JSON nodes in the OpenPHACTS context.
Development - Source
The source code of the plugins are in the folder "OPS-Knime" folder which can be checked out as a java project in Knime-Eclipse.
The source of the metanodes is in the 'metanodes' directory
- more nodes
- better nodes
for any questions or feedback, please send a mail to support'''''AT'''''openphacts.org or ask your question at : http://support.openphacts.org/support/discussions/forums/4000000979