Learning Outcomes
- Deploying Fedora
- Explore core and external features
- Gain insight into content modeling (PCDM)
Prerequisites
Either
- Vagrant setup:
- Download and install VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Download and install Vagrant: http://www.vagrantup.com/downloads.html
- Download the Fedora 4 VM: https://github.com/fcrepo4-labs/fcrepo4-vagrant
- Note that you can either clone the repository to your desktop or just download the ZIP [2] and unzip it
- Using a Command Line Interface, navigate to the VM folder from step 3 and run the command: vagrant up
- Note that this step will take a while as the VM downloads and installs a virtual environment
- Test the VM by opening your web browser and navigating to: http://localhost:8080/fcrepo
- Or, Standalone apps setup
Explore Features
Using Google Chrome PostMan app, execute the following requests (attached)
- curl -XGET localhost:8080/fcrepo/rest/objects/
- curl -XPUT -H"Content-Type: text/turtle" localhost:8080/fcrepo/rest/collections/poe/members/
- ...
SPARQL Query
In Fuseki console (localhost:3030)
- Select "Control Panel"
- Select Dataset "/test"
- Select Output "Text"
- Select "Force the accept header text/plain regardless"
Query
prefix pcdm: <http://pcdm.org/models#> select ?work where { <http://localhost:8080/fcrepo/rest/collections/poe> pcdm:hasMember ?work . ?work pcdm:hasFiles ?files . } group by ?work having (count(?files) > 1)
Using Admin Features
Transactions (docs)
Versioning (docs)
Create a version with a label
curl -XPOST http://localhost:8080/rest/item/fcr:versions/my-label