No commit activity in last 3 years
No release in over 3 years
Client to interact with Wf4ever's RO Transformation Service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1
~> 1.8.4
~> 3.12
 Project Readme

transformation-client¶ ↑

This is a Ruby client library for submitting jobs to the Wf4Ever wf-ro transformation service - for details, see www.wf4ever-project.org/wiki/display/docs/Wf-RO+transformation+service+API

Usage¶ ↑

Require the gem

require 'wf4ever/transformation-client'

To create a job:

service = "http://example.com/wf-ro/jobs"
resource = "http://example.net/workflow.t2flow"
format = "application/vnd.taverna.t2flow+xml"
ro = "http://example.com/RODL/RO/myResearch/"
token = "e5e02dd4-9e29-43f0-890c-729d66c46a9b"

job_uri = Wf4Ever::TransformationClient.create_job(service, resource, format, ro, token)

You can optionally provide a list of additional resources to extract to which folders in the RO.

extract = { :nested => "http://example.com/RODL/RO/myResearch/folder1" } 
job_uri = Wf4Ever::TransformationClient.create_job(service, resource, format, ro, token, extract)

To check the status of a job

status = Wf4Ever::TransformationClient.check_job(job_uri)["status"]

To cancel a job

Wf4Ever::TransformationClient.cancel_job(job_uri)

Copyright © 2012-2013 University of Manchester.

This software is freely available under the MIT License. See LICENSE.txt for further details.