Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

The fcrepo-message-consumer expects nodes to have a type of "http://fedora.info/definitions/v4/indexing#Indexable" and to specify an indexing transformation.  The following steps can be used to set up the namespace and create and register that mixin with your repository.

Define Indexing Properties

External indexing relies upon the resources you wish to have indexed to have an indexing:Indexable mixin property. This property can be added to a resource in the same way as any other property. See: RESTful HTTP API - Containers (PATCH, PUT, or POST).

For example,

curl -X PATCH -H "Content-type: application/sparql-update" --data-binary @indexing.rdf http://localhost:8080/rest/resource-to-index

Where the file "indexing.rdf" contains:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>

  <> indexing:hasIndexingTransformation "default";
  rdf:type indexing:indexable }
  • No labels