Versions Compared

Key

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

...

  • Clone the fcrepo4-vagrant Git repository
  • and start the VM:
Code Block
git clone https://github.com/fcrepo4-labs/fcrepo4-vagrant.git
cd fcrepo4-vagrant

...

  • Optional: Edit the install_files/config file and change the FEDORA_AUTH value to true.
  • Start the Vagrant VM:
Code Block
vagrant up

 

Build the Audit Triplestore Camel Workflow

...

Code Block
languagebash
curl -u fedoraAdmin:secret3 -X POST -H "Slug: object1" http://127.0.0.1:8080/fcrepo/rest
curl -u fedoraAdmin:secret3 -X POST -H "Slug: file1" --data-binary "test content" http://127.0.0.1:8080/fcrepo/rest/object1
curl -u fedoraAdmin:secret3 -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <> <http://purl.org/dc/elements/1.1/title> \"new title\" . }" http://127.0.0.1:8080/fcrepo/rest/object1
curl -u fedoraAdmin:secret3 -X DELETE http://127.0.0.1:8080/fcrepo/rest/object1/file1
curl -u fedoraAdmin:secret3 -X DELETE http://127.0.0.1:8080/fcrepo/rest/object1

...

Code Block
select ?e where { ?e <http://www.loc.gov/premis/rdf/v1#hasEventRelatedObject> <http://127.0.0.1:8080/fcrepo4fcrepo/rest/object1> }

By date range:

...

Code Block
select ?e where { ?e <http://www.loc.gov/premis/rdf/v1#hasEventRelatedAgent> "curl/7.37.1"^^<http://www.w3.org/2001/XMLSchema#string> }