Learning Outcomes
- Deploying Fedora into a production-like environment
- Configure authorization (allow read access to a resource, write access to another)
- Set up JMS message consumer
- Set up external Solr and triplestore
- Set up a federation over a local filesystem
Prerequisites
- 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.0.0-beta-03-jetty-console.war
- One click run of external message consumer: fcrepo-message-consumer-webapp-4.0.0-beta-03-jetty-console.war
Optional
- fcrepo-webapp-4.0.0-beta-03-auth.war (optional, only needed if deploying to Tomcat with authorization)
- fcrepo-message-consumer-webapp-4.0.0-beta-03.war (optional, only needed if deploying to Tomcat)
- fcrepo-webapp-4.0.0-beta-03.war (optional, only needed if deploying to Tomcat)
Configuration files
Triplestore
- Download and install "Jena Fuseki" prior to the training
Deploying Fedora4
java -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless
- Or just click on the war file
Using Admin Features
Transactions (docs)
Versioning (docs)
Enable versioning on a resource / resource-tree
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.jcp.org/jcr/mix/1.0versionable> -- or, shorthand -- <> a mix:versionable
Create a version with a label
curl -XPOST http://localhost:8080/rest/item/fcr:versions/my-label
Enable auto-versioning on a resource
<> fedoraconfig:versioningPolicy "auto-version"
Admin search (docs)
Import/Export (docs)
Federation aka Projection
- Modify repository-federation.json for local system ("externalSources:federated-directory:directoryPath")
java -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json
Configuring Fedora4
- How to configure triplestore
- How to configure solr
- How to configure AuthZ
- Role-based
- XACML