...
https://github.com/fcrepo4/fcrepo-message-consumer
Mark a resource as
...
Indexable and assign an appropriate indexing transformation
For a resource to be indexed it must:
- have the rdf type http://fedora.info/definitions/v4/indexing#indexableindexing#Indexable
- (optionally) have the property http://fedora.info/definitions/v4/indexing#hasIndexingTransformation set to a registered index transformation
...
For an object to be indexed it must have a rdf:type of indexing:indexableIndexable, and optionally a indexing:hasIndexingTransformation corresponding to an LDPATH program.
Code Block | ||
---|---|---|
| ||
curl -X PATCH -H "Content-Type: application/sparql-update" --data-binary "@object.rdf" "http://localhost:8080/rest/indexableObject" object.rdf: PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX indexing: <http://fedora.info/definitions/v4/indexing#> DELETE { } INSERT { <> indexing:hasIndexingTransformation "default"; rdf:type indexing:indexableIndexable; dc:title "This title will show up in the index." } WHERE { } |