Skip to content

Instantly share code, notes, and snippets.

View bseeger's full-sized avatar

B. Seeger bseeger

  • Yale University Library
  • Western Massachusetts, USA
View GitHub Profile
@bseeger
bseeger / CSV
Created May 11, 2020 20:19
islandora_workbench
ID,field_member_of,field_edtf_date_created,field_edtf_date_issued,field_identifier,field_description,field_language,field_rights,field_subject,title,field_model,field_display_hints,file
1,12,2018-04-10T00:24:56Z,2018-04-10T00:24:56Z,http://jhir.library.jhu.edu/handle/1774.2/47569,sitting | waist up | full frontal view,eng,"Single copies may be made for research purposes. Researchers are responsible for determining any copyright questions. It is not necessary to seek our permission as the owner of the physical work to publish or otherwise use public domain materials that we have made available for use, unless Johns Hopkins University holds the copyright. If you are the copyright owner of this content and wish to contact us regarding our choice to provide access to this material online, please visit our takedown policy at https://www.library.jhu.edu/policy/digital-collections-statement-use-takedown-policy/.",people (agents),"Jacobson, Abe Clifford",Image,Open Seadragon,binaries/jhu_coll-0002_10716.jpg
2,12,2018
@bseeger
bseeger / config-syn.sh
Last active February 11, 2020 15:58
Enables/disables syn valve
#!/bin/bash
#
# Simple script to enable or disable the Syn Valve for manipulating
# Fedora directly w/in the Islandora 8 project.
#
# usage: ./config-syn.sh enable|disable
# enable turns the valve on, disabling direct write access to Fedora
# disable turns the valve off, enabling direct write access to Fedora.
#
# The first time disable is run, it will inject a few lines of code
@bseeger
bseeger / build tool script output
Last active April 18, 2019 14:58
Build tools failure
WD islandora: Failed to ingest object: islandora:rootcode: 401message: [error]
exception 'HttpConnectionException' in /var/www/html/sites/all/libraries/tuque/HttpConnection.php:486 [error]
Stack trace:
#0 /var/www/html/sites/all/libraries/tuque/HttpConnection.php(615): CurlConnection->doCurlRequest()
#1 /var/www/html/sites/all/libraries/tuque/RepositoryConnection.php(152):
CurlConnection->postRequest('fedora:8080/fed...', 'string', '<?xml version="...', 'text/xml')
#2 /var/www/html/sites/all/libraries/tuque/FedoraApi.php(1143):
RepositoryConnection->postRequest('/objects/new?lo...', 'string', '<?xml version="...', 'text/xml')
#3 /var/www/html/sites/all/modules/islandora/islandora/includes/tuque_wrapper.inc(481): FedoraApiM->ingest(Array)
#4 /var/www/html/sites/all/libraries/tuque/Repository.php(298): IslandoraFedoraApiM->ingest(Array)
@bseeger
bseeger / cantaloupe application log
Created March 26, 2018 17:52
Cantaloupe and https
2018-03-26 13:36:31,616 INFO [http-nio-8080-exec-9] o.r.C.WebApplication [Slf4jLogger.java:228] Error while handling an HTTP client call
java.lang.RuntimeException: Unable to create SSLContext.
at org.restlet.engine.connector.HttpUrlConnectionCall.<init>(HttpUrlConnectionCall.java:120)
at org.restlet.engine.connector.HttpClientHelper.create(HttpClientHelper.java:151)
at org.restlet.engine.adapter.ClientAdapter.toSpecific(ClientAdapter.java:149)
at org.restlet.engine.adapter.HttpClientHelper.handle(HttpClientHelper.java:118)
at org.restlet.Client.handle(Client.java:153)
at org.restlet.resource.ClientResource.handle(ClientResource.java:1093)
at org.restlet.resource.ClientResource.retry(ClientResource.java:1655)
at org.restlet.resource.ClientResource.handle(ClientResource.java:1101)
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://dam-dev1.ats.amherst.edu/manifests/asc_medal1.json",
"@type": "sc:Manifest",
"label": "Bronze medal commemorating British military victories in the West Indies and Newfoundland, 1762",
"metadata": [
{ "label":"Type", "value": "A Picture"},
{ "label":"Date", "value": "Unknown"}
],
"logo" : "https://dam-dev1.ats.amherst.edu/iiif/nelson_collection_small.jpg",
@bseeger
bseeger / owl file
Created September 2, 2016 16:31
Sample from dataset
<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:ub="http://swat.cse.lehigh.edu/onto/univ-bench.owl#">
<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl" />

Keybase proof

I hereby claim:

  • I am bseeger on github.
  • I am bseeger (https://keybase.io/bseeger) on keybase.
  • I have a public key whose fingerprint is 3AA7 C436 D55D 2D03 D5AD 8564 C309 E7C9 C19D BE38

To claim this, I am signing this object:

@bseeger
bseeger / the route
Created November 5, 2015 18:54
I have this RouteTest below:
// this is a snippet from my route test --
// send a file!
final String body = IOUtils.toString(ObjectHelper.loadResourceAsStream("binary.rdf"), "UTF-8");
template.sendBodyAndHeaders(body, createEvent("foo"));
---
private static Map<String,Object> createEvent(String name) {
final Map<String, Object> headers = new HashMap<>();
@bseeger
bseeger / the route
Created November 5, 2015 18:54
I have this RouteTest below:
// this is a snippet from my route test --
// send a file!
final String body = IOUtils.toString(ObjectHelper.loadResourceAsStream("binary.rdf"), "UTF-8");
template.sendBodyAndHeaders(body, createEvent("foo"));
---
private static Map<String,Object> createEvent(String name) {
final Map<String, Object> headers = new HashMap<>();