Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AddDatastreamActor.py

Input port:
  • injestingest_info : ObjectToken containing a Jython dictionary containing data from a form usbmitted via "FCRepo Datastream Dialog". Alternately, any Jython dictionary with the following keys:
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier for object to be queried.
    • dsid = identifier of datastream to be queried.
    • dsLabel = label for datastream to be created.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.
    • controlGroup = datastream control group, optional, defaults to 'M'.
    • dsState = datastream state, optional, defaults to 'A'.
    • versionable = whether datastream is versionable, optional, defaults to True.
    • formatURI = URI of datastream format description, optional, no default.
    • checksumType = datastream checksum type, optional, no default.
    • altIDs = list of alternate IDs for datastream, optional, no default.

...

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

FCRepoDatastreamDialogActor.py

...

The "FCRepo Datastream Dialog" PythonActor is used in the following workflows:

  • REST API Test5

FCRepo Datastream Update Dialog Actor

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 :

...

Image Added

...

Required Packages :

...

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

...

Source file :

...

DatastreamUpdateDialogActor.py

...

Input port :

...

  • None

...

Output port:

...

  • out : ObjectToken containing a Jython dictionary with name/value pairs for all input fields in the form. This object contains the following keys:
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier for object to be updated.
    • dsid = identifier of datastream to be updated.
    • dsLabel = label for datastream to be updated.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.

The "FCRepo Update Datastream Dialog" PythonActor is used in the following workflows:

  • Update Datastream

FCRepo Dialog Actor

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 :
  • None

...

Output port :

...

  • out : ObjectToken containing a Jython dictionary with name/value pairs for all input fields in the form. This object contains the following keys:
    • passalong = name of button pressed.
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.

...

This actor connects to a Fedora Respoitory and retrieves a datastream dissemination.

...

Required Packages :

...

  • JyFedoREST

...

Source file :

...

...

Input port:

...

  • dialog_info : ObjectToken containing a Jython dictionary containing data from a form usbmitted via "FCRepo Datastream Dialog". Alternately, any Jython dictionary with the following keys:
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier for object to be queried.
    • dsid = identifier of datastream to be queried.

...

Output port:

...

  • out : ObjectToken containing a Jython object with the data returned by the request for a dissemination.

...

This actor establishes a connection to a Fedora Repository and sends a request using the Fedora REST API.

...

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 :
  • None

...

Output port :

...

  • out : ObjectToken containing a Jython dictionary with name/value pairs for all input fields in the form. This object contains the following keys:
    • passalong = name of button pressed.
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier of object to create.
    • objLabel = label for object to create.
    • dsid = identifier of datastream to be queriedcreated.
    • dsLabel = label for datastream to be created.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.

...

This actor connects to a Fedora Respoitory and creates a new object.

...

Required Packages :

...

  • JyFedoREST

...

Source file :

...

ObjectCreateActor.py

...

Input port:

...

  • injest_info : ObjectToken containing a Jython dictionary containing data from a form usbmitted via "FCRepo Ingest Dialog". Alternately, any Jython dictionary with the following keys:
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier for object to be queried.
    • objLabel = label for object to be created.
    • dsid = identifier of datastream to be queried.
    • dsLabel = label for datastream to be created.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.

...

  • result : StringToken containing results of the request to add a dissemination.
  • datastream : ObjectToken containing a Jython dictionary with name/value pairs from input form. This object contains the following keys:
    • passalong = name of button pressed.
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier of object to create.
    • dsid = identifier of datastream to be queried.
    • dsLabel = label for datastream to be created.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.

The "FCRepo Add Datastream Object Create" PythonActor is used in the following workflows:

  • Ingest With Datastream

FCRepo Update Datastream Actor

This actor connects to a Fedora Respoitory and updates a datastream in an existing object.

...

Required Packages :

...

  • JyFedoREST

...

Source file :

...

DatastreamUpdateActor.py

...

Input port:

...

  • fcrepo_info : ObjectToken containing a Jython dictionary containing data from a form submitted via "FCRepo Datastream Dialog". Alternately, a Jython dictionary with the following keys:
    • fcrepoURL = base URL of the Fedora Repository.
    • username = name of a Fedora Repository user.
    • password = password corresponding to the username.
    • pid = identifier for object to be queried.
    • dsid = identifier of datastream to be queried.
    • dsLabel = label for datastream to be created.
    • dsLocation = URL of file containing datastream content.
    • mimeType = mime type of datastream content.
    • controlGroup = datastream control group, optional, defaults to 'M'.
    • dsState = datastream state, optional, defaults to 'A'.
    • versionable = whether datastream is versionable, optional, defaults to True.
    • formatURI = URI of datastream format description, optional, no default.
    • checksumType = datastream checksum type, optional, no default.
    • altIDs = list of alternate IDs for datastream, optional, no default.

...

Other inputs :

...

The "Datastream Update" script also needs to get name of the action to be performed. This can be done in one of two ways:
    A string parameter on the PythonActor named 'action'.
    OR
    A port on the PythonActor named 'action' containing a StringToken.

...

Output port:

...

  • result : StringToken containing results of the request to update a datastream.

The "FCRepo Update Datastream " PythonActor is used in the following workflows:

  • Update Datastream

Format Serializer Actor

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:

...

  • in : ObjectToken containing the results of the method executed by a "FCRepo REST GET" actor.

...

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

...

Screenshot :

...

...

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 :

...

...

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

...

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

...

Source file :

...

REST-API-Test4.xml

REST API Test5

...

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

...

Screenshots :

...

Image Added

...

Source file :

...

REST-API-Test5.xml

Anchor
IngestWithDatastream
IngestWithDatastream
Ingest With Datastream

...

  1. Display a form dialog for entering parameters that can be used to create a new object with a single datastream. Uses SimpleHTMLDialog from fcrepo.kepler to display and manage the form.
  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

...

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