-
Download Fedora jar file from GitHub: https://github.com/fcrepo4/fcrepo4/releases, or download a known release with curl:
$ curl -L https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-4.7.1/fcrepo-webapp-4.7.1-jetty-console.jar > fcrepo-webapp-4.7.1-jetty-console.jar -
Run Fedora:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Failures: | |
| 1) Valkyrie::Persistence::Postgres::Persister behaves like a Valkyrie::Persister can save a resource | |
| Failure/Error: orm_object.internal_resource = resource.internal_resource | |
| NoMethodError: | |
| undefined method `internal_resource=' for #<Valkyrie::Persistence::Postgres::ORM::Resource:0x007fdad7199b28> | |
| Did you mean? internal_model= | |
| Shared Example Group: "a Valkyrie::Persister" called from ./spec/valkyrie/persistence/postgres/persister_spec.rb:9 | |
| # ./vendor/valk_bundle/ruby/2.3.0/gems/activemodel-5.1.3/lib/active_model/attribute_methods.rb:432:in `method_missing' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'digest' | |
| chunk_size=1024 | |
| md5 = Digest::MD5.new | |
| sha256 = Digest::SHA256.new | |
| open(ARGV[0]) do |s| | |
| while chunk = s.read(chunk_size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sketch of a files-on-disk metadata adapter | |
| initialize(basedir:, indexes:) | |
| @basedir = basedir | |
| @indexes = indexes | |
| end | |
| save(model:) | |
| write_to_disk(model.to_json, "#{basedir}/objects/#{model.id}" | |
| indexes.each do |index| |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| digital_cico_number,label,manifest,contributing_library,owner_call_number,owner_system_number,other_number,version_edition_statement,version_publication_statement,version_publication_date,additional_responsibility,provenance,physical_characteristics,rights,based_on_original | |
| cico:5km,Plum,https://plum.princeton.edu/concern/scanned_resources/pdr26zr376/manifest,Princeton University Library,TA601 .B444 1566,5331705,ark:/88435/gt54kq773,,"Venetia : Appresso Giordano Ziletti, 1566.",1566,,,,http://rightsstatements.org/vocab/NKC/1.0/,false | |
| cico:rjn,Plum,https://plum.princeton.edu/concern/scanned_resources/p8w32s070c/manifest,Princeton University Library,NA1120 .F45s,13797,ark:/88435/js956j57r,,"Roma, A. Fei, 1625.",1625,,,437 p. illus. 16 cm.,http://rightsstatements.org/vocab/NKC/1.0/,false | |
| cico:564,Plum,https://plum.princeton.edu/concern/scanned_resources/pm900pp089/manifest,Princeton University Library,NK7104 .B13,2063190,ark:/88435/w3763953d,,"Roma, Appresso Bartolomeo Grassi, [Nella stamparia di Vincenzo Accolt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| BASE=http://localhost:8080/rest/$RANDOM | |
| # create some basic containers | |
| curl -X PUT $BASE/1 && echo | |
| curl -X PUT $BASE/2 && echo | |
| # create indirect container /1/members | |
| curl -i -X PUT -H "Content-Type: text/turtle" --data-binary " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| JAR=$HOME/src/impexp/target/fcrepo-import-export-0.1.1-SNAPSHOT.jar | |
| BASE=http://localhost:8080/rest/$RANDOM | |
| SRC=$BASE/src | |
| DST=$BASE/dst | |
| # create a collection and some objects that link to it | |
| curl -X PUT $SRC && echo | |
| curl -X PUT -H "Content-Type: text/turtle" -d "<> a <http://pcdm.org/models#Collection> ." $SRC/col && echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEBUG 09:38:09.320 (WildcardExceptionMapper) WildcardExceptionMapper intercepted exception:{} | |
| java.util.ConcurrentModificationException: java.util.ConcurrentModificationException | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
| at java.lang.reflect.Constructor.newInstance(Constructor.java:422) | |
| at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593) | |
| at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677) | |
| at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:735) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| PID=$RANDOM | |
| curl -X PUT -d "foo" http://localhost:8080/rest/$PID | |
| curl -X PUT -H "Content-Type: text/turtle" -d "<http://localhost:8080/rest/$PID> <http://purl.org/dc/terms/title> 'foo' ." -H "Prefer: handling=lenient; received=\"minimal\"" http://localhost:8080/rest/$PID/fcr:metadata | |
| curl http://localhost:8080/rest/$PID/fcr:metadata | |
| # correctly inserts the </rest/$PID> <http://purl.org/dc/terms/title> 'foo' triple |
$ git clone git@github.com:pulibrary/plum.git$ cd plum$ bundle install$ rake db:migrate$ rake hydra:server- login to plum
$ rake add_admin_role- refresh to show links for creating objects
- try to create a scanned resource