Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Learning Outcomes

  • Deploying Fedora
  • Explore core and external features
  • Gain insight into content modeling
  • Set up a federation over a local filesystem
  • Set up JMS message consumer
  • Set up external triplestore(PCDM)

Prerequisites

Either

  1. Vagrant setup:
  2. Or, Standalone apps setup:
  3. Java7 installed
  4. WAR file(s) downloaded
  5. Configuration files downloaded
  6. Tomcat installed (optional)

Downloads

War files

Required

Optional

Triplestore

  • Download and unpack Jena Fuseki (ZIP or TAR) prior to the training

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:

Code Block
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:

...

Explore Features

Using Google Chrome PostMan app, execute the following requests (attached)

  1. curl -XGET localhost:8080/fcrepo/rest/objects/
  2. curl -XPUT -H"Content-Type: text/turtle" localhost:8080/fcrepo/rest/collections/poe/members/
  3. ...

SPARQL Query

In Fuseki console (localhost:3030)

  1. Select "Control Panel"
  2. Select Dataset "/test"
  3. Select Output "Text"
  4. Select "Force the accept header text/plain regardless"
  5. Query

    No Format
    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

Code Block
curl -XPOST http://localhost:8080/rest/item/fcr:versions/my-label

Import/Export (docs)

Content Modeling

External Triplestore

...

(docs

...

  1. Start Fuseki

    Code Block
    ./fuseki-server --update --mem /test
  2. Verify running at – http://localhost:3030

...

Start Fedora

Code Block
java -Dfcrepo.modeshape.configuration=file:/path/to/repository-federation.json -jar fcrepo-webapp-4.1.0-jetty-console.war --headless

...

Start fcrepo-message-consumer

Code Block
java -jar fcrepo-message-consumer-webapp-4.1.0-jetty-console.war --headless --port 9090

...

)

Additional Resources