Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved workflows before actors

...

Several actors and workflows were developed to test Fedora's REST API from within Kepler. In particular, they test the basic functionality of the JyFedoREST and FCRepoKepler packages. The source for the actors and workflows in this project are attached to this page and can be downloaded from https://fedora-commons.svn.sourceforge.net/svnroot/fedora-commons/incubator/kepler/trunk/jython/workflows/fcrepo.

Kepler Workflows

REST API Test1

A simple workflow to retrieve an XML string from a Fedora Repository containing the 'Smiley' demo data set.

...

Screenshot :

...

Image Added

...

Source file :

...

REST-API-Test1.xml

REST API Test2

A simple workflow to retrieve an image from a Fedora Repository containing the 'Smiley' demo data set.

...

Screenshot :

...

Image Added

...

Source file :

...

REST-API-Test2.xml

REST API Test3

A workflow to retrieve a list of all objects in a Fedora Repository.

...

Screenshots :

...

Image Added Image Added

...

Source file :

...

REST-API-Test3.xml

REST API Test4

A variation of REST-API-Test4.xml to be customized to retrieve a datastream dissemination from a local repository.

...

Screenshots :

...

Image Added Image Added

...

Source file :

...

REST-API-Test4.xml

REST API Test5

A workflow that uses the fcrepo.http.restapi client code to retrieve a datastream dissemenation.

This is a four step workflow:

  1. Display a form dialog for entering parameters to be used to retrieve a datastream dissemination.
  2. Use fcrepo.http.restapi to get a datastream dissemnination.
  3. Serialize the dissemination into a displayable format.
  4. Display results.

...

Screenshots :

...

Image Added Image Added

...

Source file :

...

REST-API-Test5.xml

Anchor
IngestWithDatastream
IngestWithDatastream
Ingest With Datastream

A workflow that uses the fcrepo.http.restapi client code to create a new object with a single datastream.

This is a three step workflow:

  1. Display a form dialog for entering parameters that can be used to create a new object with a single datastream.
  2. Use fcrepo.http.restapi to create the new object. Display results.
  3. Use fcrepo.http.restapi to add a datastream. Display results.

...

Screenshots :

...

Image Added Image Added

...

Source file :

...

IngestWithDatastream.xml

Update Datastream

A workflow that uses the fcrepo.http.restapi client code to update a workflow in an existing object.

...

Screenshots :

...

Image Added Image Added

...

Source file :

...

UpdateDatastream.xml

Kepler Actors

The PythonActor was used extensively in this project. It is based on the Jython interpreter which provides standard Python functionality within a Java application. Because Jython is implemented in Java, it also provides access to any Java class or class library available to the JVM. In this way, it provides a rapid prototyping tool that supports coding in both Java and Python.

...

Required Packages :
  • JyFedoREST

...

Source file :

...

AddDatastreamActor.py

Input port:

...

This actor displays a SWING dialog that allows the user to enter parameters required to connect to a Fedora Repository and access a particular datastream.

...

Screenshot :

...

Required Packages :
  • FCRepoKepler - Uses SimpleHTMLFormDialog to display and manage the form.

...

Source file :

...

FCRepoDatastreamDialogActor.py

...

This actor displays a SWING dialog that allows the user to enter parameters required to connect to a Fedora Repository and update a particular datastream.

...

Screenshot :

...

Required Packages :
  • FCRepoKepler - Uses SimpleHTMLFormDialog to display and manage the form.

...

Source file :

...

DatastreamUpdateDialogActor.py

...

This actor displays a SWING dialog that allows the user to enter parameters required to connect to a Fedora Repository.

...

Screenshot :

...

Required Packages :
  • FCRepoKepler - Uses SimpleHTMLFormDialog to display and manage the form.

...

Source file :

...

FCRepoDialogActor.py

Input ports :

...

Required Packages :
  • JyFedoREST

...

Source file :

...

...

Required Packages :
  • JyFedoREST

...

Source file :

...

FCRepoGETActor.py

Input ports :

...

This actor displays a SWING dialog that allows the user to enter parameters required to connect to a Fedora Repository and create a new object with a single datastream.

...

Screenshot :

...

Required Packages :
  • FCRepoKepler - Uses SimpleHTMLFormDialog to display and manage the form.

...

Source file :

...

IngestDialogActor.py

Input ports :

...

Required Packages :
  • JyFedoREST

...

Source file :

...

ObjectCreateActor.py

Input port:

...

Required Packages :
  • JyFedoREST

...

Source file :

...

DatastreamUpdateActor.py

Input port:

...

This actor is a helper that determines the type of object returned by a GET request and reformats the output so that other Kepler actors can handle it.

...

Source file :

...

FormatSerializerActor.py

Input port:

...

  • REST API Test1
  • REST API Test2
  • REST API Test3
  • REST API Test4
  • REST API Test5

Kepler Workflows

REST API Test1

A simple workflow to retrieve an XML string from a Fedora Repository containing the 'Smiley' demo data set.

...

Screenshot :

...

Image Removed

...

Source file :

...

REST-API-Test1.xml

REST API Test2

A simple workflow to retrieve an image from a Fedora Repository containing the 'Smiley' demo data set.

...

Screenshot :

...

Image Removed

...

Source file :

...

REST-API-Test2.xml

REST API Test3

A workflow to retrieve a list of all objects in a Fedora Repository.

...

Screenshots :

...

Image Removed Image Removed

...

Source file :

...

REST-API-Test3.xml

REST API Test4

A variation of REST-API-Test4.xml to be customized to retrieve a datastream dissemination from a local repository.

...

Screenshots :

...

Image Removed Image Removed

...

Source file :

...

REST-API-Test4.xml

REST API Test5

A workflow that uses the fcrepo.http.restapi client code to retrieve a datastream dissemenation.

This is a four step workflow:

...

...

Screenshots :

...

Image Removed Image Removed

...

Source file :

...

  • REST

...

  • API

...

  • Test5

...

A workflow that uses the fcrepo.http.restapi client code to create a new object with a single datastream.

This is a three step workflow:

  1. Display a form dialog for entering parameters that can be used to create a new object with a single datastream.
  2. Use fcrepo.http.restapi to create the new object. Display results.
  3. Use fcrepo.http.restapi to add a datastream. Display results.

...

Screenshots :

...

Image Removed Image Removed

...

Source file :

...

IngestWithDatastream.xml

Update Datastream

A workflow that uses the fcrepo.http.restapi client code to update a workflow in an existing object.

...

Screenshots :

...

Image Removed Image Removed

...

Source file :

...

...