API-M (Fedora Management service API)

Datastream managment

addDatastream

Creates a new Datastream in the object.

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

getDatastream

Gets the specified datastream.

Input parameters:

Returns:

Throws:

getDatastreams

Gets all datastreams in the object

Input parameters:

Returns:

Throws:

modifyDatastreamByReference

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

modifyDatastreamByValue

Modifies an existing Datastream in an object, by value. This operation is only valid for Inline XML Datastreams (i.e. controlGroup "X").

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

setDatastreamState

Sets the state of a Datastream to the specified state value.

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

compareDatastreamChecksum

Verifies that the Datastream content has not changed since the checksum was initially computed.

Input parameters:

Returns:

Throws:

(getDatastreamHistory)?

Relationship managment

addRelationship

Creates a new relationship in the object. Adds the specified relationship to the object's RELS-EXT Datastream. If the Resource Index is enabled, the relationship will be added to the Resource Index.

A rdf tuple consist of an object, having a predicate relating it to a subject. The subject can either be a literal value, or another object.

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

getRelationships

Get the relationships asserted in the object's RELS-EXT Datastream that match the given criteria.

Input parameters:

Returns:

Throws:

purgeRelationship

Delete the specified relationship. This method will remove the specified relationship(s) from the RELS-EXT datastream. If the Resource Index is enabled, this will also delete the corresponding triples from the Resource Index.

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

Object Management

ingest

Creates a new digital object in the repository. The object's initial state should be I (inactive). If the XML document does not specify the OBJID attribute of the root element, the repository will generate and return a new pid for the object resulting from this request. That pid will have the namespace of the repository. If the XML document specifies a pid, it will be assigned to the digital object provided that 1. it conforms to the Fedora pid Syntax, 2. it uses a namespace that matches the "retainPIDs" value configured for the repository, and 3. it does not collide with an existing pid of an object in the repository.

If the object has state "Active" this method will fail. It is only allowed on Inactive and Deleted objects.

Input parameters:

Returns:

Throws:

modifyObject

Modify an object.

If this alters an object that was hitherto "Inactive" or "Deleted" to have state "Active", validation will be performed on the object to check the object to be valid, and the call will fail otherwise. See FedoraState for details.

Input parameters:

Returns:

Throws:

(export)

(getObjectXML)?

Fedora 3.0 API/Management (last edited 2010-03-17 13:08:52 by localhost)