...
Some additional processing must be done to transform an application/n-triples
response into a valid application/sparql-update
payload before sending to Fuseki or Sesame. The fcrepo component contains some processors in org.fcrepo.camel.processor
to handle this case.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
from("activemq:topic:fedora") .to("fcrepo:localhost:8080/fedora/rest?accept=application/n-triples") .process(new SparqlUpdateProcessor()) .setHeader(Exchange.CONTENT_TYPE).constant("application/sparql-update") .to("http4:localhost:3030/fcrepo/update"); |
...
ActiveMQ brokers support a wide variety of protocols. If Fedora's internal broker is bridged to an external broker, please remember to enable the proper protocols on the remote broker. This can be done like so:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613"/> </transportConnectors> |
...