...
If an fcr:transform
program has been installed as mytransform
, you can generate a JSON representation of an object a container and send it to a low-latency, highly available document store, such as Riak. The following route determines if an object a container has been removed or simply added/updated. It then routes the message appropriately to a load-balancer sitting in front of the Riak HTTP endpoint.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
from("direct:delete") .process(new SparqlDescribeProcessor()) .to("http4:localhost:3030/db/query") .process(new SparqlDeleteProcessor()) .to("http4:localhost:3030/db/update"); from("direct:new") .to("fcrepo:localhost:8080/rest?accept=application/n-triples") .process(new SparqlInsertProcessor()) .to("http4:localhost:3030/db/update"); from("direct:update") .process(new SparqlDescribeProcessor()) .to("http4:localhost:3030/db/query") .process(new SparqlDeleteProcessor()) .to("http4:localhost:3030/db/update") .to("fcrepo:localhost:8080/rest?accept=application/n-triples") .process(new SparqlInsertProcessorSparqlUpdateProcessor()) .to("http4:localhost:3030/db/update"); |
...