...
Code Block | ||
---|---|---|
| ||
$ curl -X POST http://localhost:8082/reindex/foo/bar?recursive=false |
Indexing Multiple Repositories to a single Triplestore
To have an external triplestore spanning multiple repositories, we need to install and setup the three components (Triplestore, Fedora 4 Repository and JMS Event listener/indexe) as follows:
Follow the instructions above to install the triplestore (Fuseki or Sesame) in one machine and start it.
Follow the instructions above to install two or more Fedora 4 Repositories in different machines and start them.
Install JMS Event listener/indexer (https://github.com/futures/fcrepo-jms-indexer-pluggable) for each Fedora 4 repository installation and start the indexer with the following command:
Code Block language bash $ mvn -D jetty.port=9999 -Dfuseki.host=<triplestore.host.name> -Dfcrepo.host=<repository.host.name> jetty:run
Notes -
To make an object indexable in the triplestore, the object need to be indexable type: http://fedora.info/definitions/v4/indexing#indexable, which can be inserted through SPARQL insert:
INSERT {<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://fedora.info/definitions/v4/indexing#indexable> }.
- Start the triplestore first. If the triplestore restarted, then the JMS Event listener/indexer need restart too.