CWL Java SDK Manual

Paul Grosu [email protected]

Introduction This manual will describe how to generate the CWL Java SDK.

Requirements Below are the requirements for generating the CWL Java SDK:         

Java SDK cwl-avro.yml metaschema.yml AUTHORS.txt cwl-sdk-config.txt CreateCWLJavaSDK.java YAMLParser.java CWLSDKBuilder.java compile-and-run.sh

Process of Generating the SDK The process by which the SDK is generated is as follows:

cwl-sdk-config.txt

cwl-avro.yml YAMLParser

CWLSDKBuilder

metadata.yml

AUTHORS.TXT

1

CWL Java SDK

The YAMLParser collects the name, type, fields, inheritance and specializations from the YAML files, which get provided to the CWLSDKBuilder. The CWLSDKBuilder in conjunction with a configuration file called cwl-sdk-config.txt and AUTHORS.TXT file will generate the SDK in the directory called sdk.

The Config File The cwl-sdk-config.txt file has three options:   

To override the default class creation. To skip the creation of a class To assign a namespace to a variable

Each is specified on its own line and there can be multiple definitions. Below is a portion of the file:

To override a default - which is to create a class – one can specify which classes should be interfaces by the following: override : ClassName : interface The colon (:) is the process of separating each aspect of the definition.

2

To skip the creation of classes for specific files, this is performed as follows: skip : ClassName To define a namespace for a specific variable, this is performed as follows: namespace : VariableName : TheActualNamespaceAssignment

The Authors File The AUTHORS.TXT file is where one can add author acknowledgements. Below is an example:

Compiling the Programs To compile the programs with Java, below are the instructions: javac YAMLParser.java javac CWLSDKBuilder.java javac CreateCWLJavaSDK.java

3

Running the Programs To run the program in the most efficient way, just run the compile-and-run.sh Bash shell script as follows: ./compile-and-run.sh This includes downloading the YAML files, compiling of the Java programs, running them and verification step of compiling the whole SDK. To run the programs with Java, below are the instructions: java CreateCWLJavaSDK.java cwl-avro.yml metaschema.yml Currently there is a small fix required to the OutputRecordField object the draft-3 of the cwl-avro.yml file, in order for the SDK to compile successfully for all files. The OutputRecordField object is currently defined as follows: - name: OutputRecordField type: record extends: "sld:RecordSchema" docParent: "#OutputParameter" specialize: - specializeFrom: "sld:RecordSchema" specializeTo: "#OutputRecordSchema" - specializeFrom: "sld:EnumSchema" specializeTo: "#OutputEnumSchema" - specializeFrom: "sld:ArraySchema" specializeTo: "#OutputArraySchema" fields: - name: outputBinding type: [ "null", "#Binding" ] jsonldPredicate: "cwl:outputBinding" The extends line would need to be modified to the following: extends: "sld:RecordField" The compile-and-run.sh Bash shell script will perform the rename automatically through the following line: sed "921s/ extends: \"sld:RecordSchema\"/ extends: \"sld:RecordField\"/" cwl-avro.yml > cwl-avro-fixedOutputRecordField.yml

4

Shakespeare Sonnets -

Requirements. Below are the requirements for generating the CWL Java SDK: • Java SDK. • cwl-avro.yml. • metaschema.yml. • AUTHORS.txt. • cwl-sdk-config.txt. • CreateCWLJavaSDK.java. • YAMLParser.java. • CWLSDKBuilder.java ... To run the program in the most efficient way, just run the compile-and-run.sh Bash shell.

347KB Sizes 5 Downloads 227 Views

Recommend Documents

Shakespeare's Sonnets
Music to hear, why hear'st thou music sadly? ..... And dost him grace when clouds do blot the heaven: ... The region cloud hath mask'd him from me now. Yet him ...

William Shakespeare
government instituted two important social measures: “the Statute of ... Set in the seaport of Illyria, this comedy features a main plot and various subplot, all skillfully interwoven .... Malvolio—Lady Olivia's steward, or manager, of Olivia's h

pdf-1411\shakespeare-and-visual-culture-arden-shakespeare ...
Try one of the apps below to open or edit this item. pdf-1411\shakespeare-and-visual-culture-arden-shakespeare-dictionaries-by-armelle-sabatier.pdf.

pdf-79\julius-caesar-arden-shakespeare-by-william-shakespeare ...
stage for Simon Russell Beale's well paced narration. This Royal Shakespeare Company veteran. moves so skillfully between story text and dialogue that at times it seems as though there are. several actors reading. Classic lines such as "Et tu. Brute"

Bloom's Shakespeare Through the Ages
Dec 4, 2008 - including Shelley's Mythmaking, The Visionary Company, Blake's Apocalypse ... After downloading and install the soft documents of this Hamlet ...

Shakespeare Info Packet.pdf
13i11'c I3irtJ. • his firtJi 4ayiS cai4 to 1,e April 23, 1%'I, although the actual 4ay waS not. recor 4e.It WaS the cuçtom to laptize l,al.iec Within a few 4ayc of their. tirtJ,, hoWever AIço, Since Shakespeare 4ie4 52 years later on April 23,. a

TTbaH Shakespeare Tally.pdf
Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps.

TTbaH Shakespeare Tally.pdf
Page 1. TTbaH Shakespeare Tally.pdf. TTbaH Shakespeare Tally.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying TTbaH Shakespeare Tally.pdf.

Shakespeare Conspiracy Dakin.pdf
Page 1 of 1. RPS Content Literacies. Standards-Based Performance Assessments. The Shakespeare Conspiracy Theory. Developed by Revere High School Literacy Coach Mary Ellen Dakin. Task: WHAT are we going to do? Establish and support a claim in response

Oxford School Shakespeare
... s New School in Stratford a free The plays written by English poet playwright ... language Search the world s information including webpages images videos ...