Skip to content

Instantly share code, notes, and snippets.

View cmharlow's full-sized avatar

Christina Harlow cmharlow

  • TIND
  • Beach Haven, NJ
  • 13:39 (UTC -04:00)
View GitHub Profile
@cmharlow
cmharlow / testJCRVIVO.ttl
Created February 22, 2016 15:20
testing VIVO URIs/graphs after faculty/staff departure
@prefix acti: <http://vivoweb.org/ontology/activity-insight#> .
@prefix aka: <http://vivoweb.org/ontology/aka#> .
@prefix aktp: <http://www.aktors.org/ontology/portal#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix c4o: <http://purl.org/spar/c4o/> .
@prefix cce: <http://vivoweb.org/ontology/cornell-cooperative-extension#> .
@prefix ccr: <http://vivoweb.org/ontology/CornellClassRoster#> .
@prefix cito: <http://purl.org/spar/cito/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@cmharlow
cmharlow / response.json
Last active February 18, 2016 05:48
Test personal names marc recon script json response
{
"ocn729550988_Maeterlinck, Maurice,": {
"query_norm": "Maeterlinck, Maurice,",
"query": "Maeterlinck, Maurice, 1862-1949. lbt",
"query_inv": "Maurice Maeterlinck",
"recordID": "ocn729550988",
"match_fields": {
"field_id": null,
"stmtOfResp": "Claude Debussy.",
"bdate": "1862",
@cmharlow
cmharlow / dlxs_chla_titles.txt
Created February 16, 2016 18:25
DLXS CHLA All Unique Titles
python randomScripts/dlxsexport_analysis.py DLXSexports/chla.xml -x 'FILEDESC/SOURCEDESC/BIBL/TITLE' | sort | uniq -c
1 Agricultural history: Volume 1, Number 1
1 Agricultural history: Volume 1, Number 2
1 Agricultural history: Volume 10, Index
1 Agricultural history: Volume 10, Number 1
1 Agricultural history: Volume 10, Number 2
1 Agricultural history: Volume 10, Number 3
1 Agricultural history: Volume 10, Number 4
1 Agricultural history: Volume 11, Index
1 Agricultural history: Volume 11, Number 1
@cmharlow
cmharlow / eCommonsCitations.csv
Created February 5, 2016 22:25
eCommons Citations Usage 2/2016
We can't make this file beautiful and searchable because it's too large.
# of Records Value Appears In,dc.identifier.citation Value
2 ,
1 , 5 v. ; 38 cm.
6 ," Additional manuscripts include notes of meetings of the Académie des sciences (France) in 1786, taken by Auguste Denis Fougeroux de Bondaroy; two letters by Félix Vicq-d’Azyr, including one of July 1793, urging that the Académie des sciences not be closed by the revolutionary government of France; and correspondence or notes by Jean-Antoine-Claude Chaptal, Antoine Maugard, and Louis Bernard Guyton de Morveau."
6 ," Also included are portraits of Lavoisier, mainly engravings, with one watercolor portrait of him copied from an engraving originally done by Allix around 1820; a bound manuscript of maps of lands belonging to Mme. Lavoisier as of 1791; artifacts that formerly belonged to Antoine Lavoisier or Mme. Lavoisier; and ephemera such as Lavoisier postage stamps."
1 ," Also included is a letter from Ernst Curtius to Theodor Heinrich Travers (November 14, 1845)."
6 ," Also, a manuscript enumerating the c
@cmharlow
cmharlow / eCommonsRelationUsage.txt
Last active February 4, 2016 22:41
eCommons Relation Usage
## Relation usage overview:
```
dc:relation.hasversion: | | 249/35062 | 0%
dc:relation.isbasedon: | | 1/35062 | 0%
dc:relation.ispartof: | | 7/35062 | 0%
dc:relation.ispartofseries: |== | 4034/35062 | 11%
dc:relation.isreferencedby: | | 5/35062 | 0%
dc:relation.isreferencedbyuri: | | 3/35062 | 0%
dc:relation.uri: | | 223/35062 | 0%
@cmharlow
cmharlow / pubplace.txt
Created January 19, 2016 14:50
All unique pubplace strings present in DLXS XML data, preceded by count (number of records it appears in)
1 's Gravenhage,
1 012
15 1 Madison Avenue, New York, NY.
47 10 John Street, Adelphi, London, W.C., England.
245 104 Fifth Avenue, New York, NY.
86 12, Buckingham Street, Strand, London, W.C., England.
7 122 Nassau Street, New York, NY.
3 158 West Eleventh Street,New York, NY.
65 2008 American Tract Society Building, New York, NY.
1 23 Portland Block, Chicago
@cmharlow
cmharlow / OpenRefine-MODSXML.xsl
Last active April 5, 2016 17:16
OpenRefine Simple XML export to full UTK MODS/XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.loc.gov/mods/v3"
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:strip-space elements="*"/>
<!-- Create Item Record for each Row, Name Record Filename after Identifier -->
@cmharlow
cmharlow / OpenRefineSimpleXMLtoMODSXML.xsl
Created December 31, 2015 20:03
UTK OpenRefine Simple XML Export to MODS/XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.loc.gov/mods/v3"
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:strip-space elements="*"/>
<!-- Create Item Record for each Row, Name Record Filename after Identifier -->
mods:accessCondition: |======================== | 619718/637656 | 97%
mods:genre: |==================== | 511753/637656 | 80%
mods:identifier: |=========================| 637656/637656 | 100%
mods:language/mods:languageTerm: |== | 58884/637656 | 9%
mods:location/mods:physicalLocation: |======================= | 590568/637656 | 92%
mods:name/mods:affiliation: | | 960/637656 | 0%
mods:name/mods:namePart: |=========================| 637656/637656 | 100%
{
"title": "Getty Linked Data Linked Data Fragments server",
"baseURL": "http://localhost:5000/",
"datasources": {
"getty-aat": {
"title": "Getty AAT",
"type": "SparqlDatasource",
"description": "Getty AAT via Sparql Endpoint (unconfirmed backend)",
"settings": { "endpoint": "http://vocab.getty.edu/sparql", "defaultGraph": "http://vocab.getty.edu/dataset/aat" },