Indexing transformations are stored in the repository in a well-know 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]/fcr:content
- 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 program called "custom".
curl -X POST -H "Content-Type: application/rdf+ldpath" -d "@post.txt" "http://localhost:8080/rest/fedora:system/fedora:transform/fedora:ldpath/custom/nt:base/fcr:content" 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 ;