Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: the example was incorrect

Indexing transformations are stored in the repository in a well-known location.  Default transformations are inserted into the repository the first time any access is made against the Fedora 4 transformation endpoint.  Currently transformations using LDPath are supported.

Transformation locations

In order for LDPath transformations to be accessed by name, they must be stored in the repository according to the following rules:

  • they must be stored as content at the path /fedora:system/fedora:transform/fedora:ldpath/[transformation name]/[type or mixintype]
  • they should not have the name "default" as that is reserved for a default transformation

Load a custom ldpath transformation

...

program

The following is an example of loading a LDPATH LDPath program called "custom".

Code Block
curl -X POSTPUT -H "Content-Type: application/rdf+ldpath" --data-dbinary "@post.txt" "http://localhost:8080/rest/fedora:system/fedora:transform/fedora:ldpath/custom/nt:base/fcr:contentfedora:Container"

post.txt:
@prefix fcrepo : <http://fedora.info/definitions/v4/repository#>
id      = . :: xsd:string ;
title_tsi = dc:title :: xsd:string;
uuid_ssi = fcrepo:uuid :: xsd:string ;

...

Transform REST API Documentation

Expand

Include Page
RESTful HTTP API - Transform
RESTful HTTP API - Transform