Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

...

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 --headless
  • Or just click on the war file

Note: The location where Fedora writes to disk can be specified with the following flag:

...

Using Admin Features

Transactions (docs)

Versioning (docs)

Enable versioning on a resource / resource-tree

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

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

Enable auto-versioning on a resource

Code Block
<> fedoraconfig:versioningPolicy "auto-version"

Admin Search ( docs )

Import/Export (docs)

Federation aka Projection (docs)

...

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

...

External Triplestore

  1. Setup Fuseki (docs)
    1. Start Fuseki

      Code Block
      ./fuseki-server --update --mem /test
    2. Verify running at – http://localhost:3030
  2. Modify repository-federation.json to point to fedora-node-types-indexing.cnd

    Code Block
    "node-types" : ["/path/to/fedora-node-types-indexing.cnd"]
  3. 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
  4. Start fcrepo-message-consumer

    Code Block
    java -jar fcrepo-message-consumer-webapp-4.0.0-beta-03-jetty-console.war --headless --port 9090
  5. Create/Update some objects and perform some queries (examples)

Additional Resources

  1. F3->F4 mapping
  2. Node types