Versions Compared

Key

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

...

Tip
titleIndexing Transformations

A default indexing transformation exists that maps the appropriate properties to the field names "title", "uuid" and "id".  To meet your needs, you can write and register custom indexing transformations.

 

Create new objects with indexing properties

For an object to be indexed it must have a rdf:type of indexing:indexable, and optionally a indexing:hasIndexingTransformation corresponding to an LDPATH program.

Code Block
titlecreate object
curl -X POST -H "Content-Type: application/n3sparql-update" "http://localhost:8080/rest/anIndexableObjectindexableObject" -d "@body@object.rdf"

bodyobject.rdf:
@prefix
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefixPREFIX indexing: <http://fedora.info/definitions/v4/indexing#>.
 
<>DELETE rdf:type  <http://fedora.info/definitions/v4/indexing#indexable>
{ }
INSERT { 
  <> indexing:hasIndexingTransformation "default"; 
  rdf:type indexing:indexable; 
  dc:title "This title will show up in the index." }
WHERE { }