Versions Compared

Key

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

...

Code Block
languagejava
titlePopulate an external triplestore
linenumberstrue
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")
  .setHeader("CamelHttpMethod", constant("GET"))
  .to("fcrepo:localhost:8080/rest?accept=application/n-triples")
  .process(new SparqlInsertProcessorSparqlUpdateProcessor())
  .to("http4:localhost:3030/db/update");

...