Learning Outcomes
- Deploying Fedora
- Explore features
- Gain insight into content modeling
- Set up a federation over a local filesystem
- Set up JMS message consumer
- Set up external triplestore
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:
- Java7 installed
- WAR file(s) downloaded
- Configuration files downloaded
- Tomcat installed (optional)
Downloads
War files
Required
- One click run of Fedora 4: fcrepo-webapp-4.1.1-jetty-console.war
- One click run of external message consumer: fcrepo-message-consumer-webapp-4.1.1-jetty-console.war
Optional
- fcrepo-message-consumer-webapp-4.1.1.war (optional, only needed if deploying to Tomcat)
- fcrepo-webapp-4.1.1.war (optional, only needed if deploying to Tomcat)
Triplestore
Deploying Fedora4
In OSX or Windows you can simply double-click the fcrepo-webapp-4.1.0-auth.war file to launch the Fedora 4 console. Then click Start and wait for the application to load in your browser.
You can also run the application from the command line using the following command:
java -jar fcrepo-webapp-4.1.0-jetty-console.war --headless
Note: The location where Fedora writes to disk can be specified with the following flag:
java -Dfcrepo.home=/path/fedora/data -jar fcrepo-webapp-4.1.0-jetty-console.war --headless
Using Admin Features
Transactions (docs)
Versioning (docs)
Create a version with a label
curl -XPOST http://localhost:8080/rest/item/fcr:versions/my-label
Import/Export (docs)
Content Modeling
External Triplestore
- Setup Fuseki (docs)
Start Fuseki
./fuseki-server --update --mem /test
- Verify running at –
http://localhost:3030
Start Fedora
java -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json -jar fcrepo-webapp-4.1.0-jetty-console.war --headless
Start fcrepo-message-consumer
java -jar fcrepo-message-consumer-webapp-4.1.0-jetty-console.war --headless --port 9090
Create/Update some objects and perform some queries (examples)