Skip to content

Instantly share code, notes, and snippets.

View escowles's full-sized avatar

esmé cowles escowles

View GitHub Profile
@escowles
escowles / fixity.md
Last active January 13, 2018 12:48
fcrepo-4.7.4: fixity and versioning

create a data file and calculate checksum

$ head -c 8192 /dev/zero > file1.dat
$ shasum file1.dat

0631457264ff7f8d5fb1edc2c0211992a67c73e6  file1.dat

transmission fixity failure

@escowles
escowles / fedora-solr-quickstart.md
Last active February 24, 2023 15:43
Fedora/Solr Quick Start

Quick Start

  1. 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
  2. Run Fedora:

@no-reply
no-reply / oregon_rdf_demo.rb
Last active July 12, 2017 00:14
RDF Resources in OregonDigital
# RdfResource is a subclass of RDF::Graph with property configuration, accessors, and some other methods
# for managing "resources" as discrete subgraphs which can be managed by a Hydra datastream model.
#
# The relevant modules and class are:
#
# https://github.com/OregonDigital/oregondigital/tree/master/lib/oregon_digital/rdf/rdf_configurable.rb
# https://github.com/OregonDigital/oregondigital/tree/master/lib/oregon_digital/rdf/rdf_properties.rb
# https://github.com/OregonDigital/oregondigital/tree/master/lib/oregon_digital/rdf/rdf_resource.rb
bnode = OregonDigital::RDF::RdfResource.new