...
To see all the available command line options:
Code Block | ||
---|---|---|
| ||
java -jar fcrepo-import-export/target/fcrepo-import-export-0.0.1-SNAPSHOT.jar -h |
Note: You will see "Error parsing args: Unrecognized option: -h" but this is bug and will be addressed in forthcoming releases.
To export all the RDF and binary resources in your sample container:
Code Block | ||
---|---|---|
| ||
java -jar fcrepo-import-export/target/fcrepo-import-export-0.0.1-SNAPSHOT.jar --mode export --resource http://localhost:8080/rest/albums --dir /tmp/test --binaries
|
You should now have RDF resources and binaries exported to /tmp/test.
...
Pass the -u option to provide a username and password for Fedora basic authentication.
If you are using the Vagrant installation, it will have Fedora Auth enabled and you will need to add the following to your command:
Code Block | ||
---|---|---|
| ||
-u fedoraAdmin:secret3 |
Format Options
Pass -x option to use a different file extension on the exported rdf, or -l to change the rdf language used. For example if you want json-ld instead of turtle, use:
Code Block | ||
---|---|---|
| ||
-x .json -l application/ld+json |
The full list of available serializations is:
...