Warning |
---|
These training archives may be out of date, but have been retained and kept available for the community's benefit in reviewing previous sessions. Current training documentation can be found here: Training |
Table of Contents |
---|
Learning Outcomes
- Deploying Fedora
- Explore features
- Gain insight into a production-like environment
content modeling - Set up a federation over a local filesystemConfigure 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)
...
- 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
- repository.json
- repository-federation.json
- fedora-node-types-training.cnd
- fedora-node-types-indexing.cnd
Triplestore
...
Deploying Fedora4
In OSX or Windows you can simply double-click the fcrepo-webapp-4.0.0-beta-03-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:
Code Block |
---|
java -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war |
- Or just click on the war file
Using Admin Features
- First load sample dataset
Admin search
Backup/Restore
Import/Export
Federation aka Projection
Policy-driven storage
Configuring Fedora4
- How to configure triplestore
- How to configure solr
- How to configure AuthZ
- Role-based
- XACML
--headless |
Note: The location where Fedora writes to disk can be specified with the following flag:
Code Block |
---|
java -Dfcrepo.home=/path/fedora/data -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless |
Using Admin Features
Transactions (docs)
Versioning (docs)
Create a version with a label
Code Block |
---|
curl -XPOST http://localhost:8080/rest/item/fcr:versions/my-label |
Import/Export (docs)
Federation aka Projection (docs)
- Modify repository-federation.json for local system ("externalSources:federated-directory:directoryPath")
Code Block |
---|
java -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless |
Content Modeling
- Modify repository-federation.json to point to fedora-node-types-training.cnd
Code Block |
---|
"node-types" : ["/path/to/fedora-node-types-training.cnd"] |
- Run:
Code Block |
---|
java -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless |
- Examine default property created on new objects
- Examine effect of applied type
Code Block |
---|
<> a carl:page |
External Triplestore
- Setup Fuseki (docs)
Start Fuseki
Code Block ./fuseki-server --update --mem /test
- Verify running at –
http://localhost:3030
Modify repository-federation.json to point to fedora-node-types-indexing.cnd
Code Block "node-types" : ["/path/to/fedora-node-types-indexing.cnd"]
Start Fedora
Code Block java -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json -jar fcrepo-webapp-4.0.0-beta-03-jetty-console.war --headless
Start fcrepo-message-consumer
Code Block java -jar fcrepo-message-consumer-webapp-4.0.0-beta-03-jetty-console.war --headless --port 9090
Create/Update some objects and perform some queries (examples)
Additional Resources
- F3->F4 mapping
- Node types
...