Skip to content

Instantly share code, notes, and snippets.

@mcritchlow
Created February 6, 2015 19:41
Show Gist options
  • Save mcritchlow/78151656e843f4a8d720 to your computer and use it in GitHub Desktop.
Save mcritchlow/78151656e843f4a8d720 to your computer and use it in GitHub Desktop.
Array#uniq test with Solr document
require 'json'
# test object: bb08540731
# test a file with unique names
uniq_file = File.read('names_uniq_test.json')
json1 = JSON.parse(uniq_file)
names1 = json1['name_tesim']
puts "Testing file with all unique names:"
puts "All names: #{names1}"
puts "Unique names: #{names1.uniq}"
# test a file with a duplicate (Dr Seuss)
not_uniq_file = File.read('names_not_uniq_test.json')
json2 = JSON.parse(not_uniq_file)
names2 = json2['name_tesim']
puts "Testing file with a duplicate name:"
puts "All names: #{names2}"
puts "Unique names: #{names2.uniq}"
{"system_create_dtsi":"2013-07-01T04:49:14Z","system_modified_dtsi":"2013-07-01T04:49:14Z","object_state_ssi":"A","active_fedora_model_ssi":"DamsObject","id":"bb08540731","object_profile_ssm":["{\"datastreams\":{\"DC\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+DC\",\"dsLocationType\":null,\"dsVersionID\":\"DC\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"RELS-EXT\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+RELS-EXT\",\"dsLocationType\":null,\"dsVersionID\":\"RELS-EXT\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"_rdf.xml\":{\"dsLabel\":\"/rdf.xml\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_rdf.xml\",\"dsLocationType\":null,\"dsVersionID\":\"_rdf.xml\",\"dsState\":\"A\"},\"_4.jpg\":{\"dsLabel\":\"/4.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_4.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_4.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":14616,\"dsChecksumType\":\"cfb958d6a00274decc41ca8b72ac7568b591a7d8\",\"dsChecksum\":\"SHA-1\"},\"_1.tif\":{\"dsLabel\":\"/1.tif\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_1.tif\",\"dsLocationType\":null,\"dsVersionID\":\"_1.tif\",\"dsState\":\"A\",\"dsCreateDate\":\"1999-05-27T05:07:56-07:00\",\"dsMIME\":\"image/tiff\",\"dsSize\":2809072,\"dsChecksumType\":\"259d0629e6ad417715d6416d823669cd3d7c05c4\",\"dsChecksum\":\"SHA-1\"},\"_5.jpg\":{\"dsLabel\":\"/5.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_5.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_5.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":3307,\"dsChecksumType\":\"268b9d16afc089f7426717eab8f0db14d33e103c\",\"dsChecksum\":\"SHA-1\"},\"_2.jpg\":{\"dsLabel\":\"/2.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_2.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_2.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":247289,\"dsChecksumType\":\"4c629bd1637c19f6f08111d11187a123c139dd5f\",\"dsChecksum\":\"SHA-1\"},\"_3.jpg\":{\"dsLabel\":\"/3.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_3.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_3.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:32-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":98318,\"dsChecksumType\":\"0996df5253e35fc44858873e2faec9b55fea51a5\",\"dsChecksum\":\"SHA-1\"},\"rightsMetadata\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+rightsMetadata\",\"dsLocationType\":null,\"dsVersionID\":\"rightsMetadata\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"damsMetadata\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+damsMetadata\",\"dsLocationType\":null,\"dsVersionID\":\"damsMetadata\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"}},\"objLabel\":null,\"objOwnerId\":\"foo\",\"objModels\":[\"info:fedora/afmodel:Object\",\"info:fedora/fedora-system:FedoraObject-3.0\"],\"objCreateDate\":\"2013-06-30T21:49:14-07:00\",\"objLastModDate\":\"2013-06-30T21:49:14-07:00\",\"objDissIndexViewURL\":\"http://localhost:8080/dams/fedora/objects/bb08540731/methods/fedora-system%3A3/viewMethodIndex\",\"objItemIndexViewURL\":\"http://localhost:8080/dams/fedora/objects/bb08540731/methods/fedora-system%3A3/viewItemIndex\",\"objState\":\"A\"}"],"edit_access_group_ssim":["dams-curator","dams-manager-admin"],"discover_access_group_ssim":["public","dams-curator","dams-manager-admin"],"read_access_group_ssim":["public","dams-curator","dams-manager-admin"],"title_json_tesim":["{\"name\":\"Virginio Gayda Says\",\"external\":[],\"value\":\"Virginio Gayda Says\",\"nonSort\":\"\",\"partName\":\"\",\"partNumber\":\"\",\"subtitle\":\"\",\"variant\":\"\",\"translationVariant\":\"\",\"abbreviationVariant\":\"\",\"acronymVariant\":\"\",\"expansionVariant\":\"\"}"],"title_tesim":["Virginio Gayda Says"],"all_fields_tesim":["Virginio Gayda Says","1941-01-30","creation","w3cdtf","Seuss, Dr.","Creator","converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)","Gayda, Virginio","Mussolini, Benito","Library Digital Collections","dlp","Dr. Seuss Political Cartoons","image"],"title_ssi":"virginio gayda says","date_json_tesim":["{\"beginDate\":\"\",\"endDate\":\"\",\"value\":\"1941-01-30\",\"type\":\"creation\",\"encoding\":\"w3cdtf\"}"],"date_tesim":["1941-01-30","creation","w3cdtf"],"object_create_dtsi":"1941-01-30T00:00:00Z","name_tesim":["Seuss, Dr.","Gayda, Virginio","Seuss, Dr.","Mussolini, Benito"],"relationship_json_tesim":["{\"Creator\":[\"Seuss, Dr.\"]}"],"otherNote_json_tesim":["{\"type\":\"note\",\"value\":\"converted to black and white, cleaned up so that only the line art was present (1999)\",\"displayLabel\":\"\"}","{\"type\":\"publication\",\"value\":\"PM Magazine\",\"displayLabel\":\"\"}","{\"type\":\"identifier\",\"value\":\"m230b18f15id10130c.tif\",\"displayLabel\":\"filename\"}","{\"id\":\"b\",\"type\":\"local attribution\",\"value\":\"Special Collections \\u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)\",\"displayLabel\":\"digital object made available by\"}"],"otherNote_tesim":["converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)"],"note_tesim":["converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)"],"personalName_tesim":["Gayda, Virginio","Mussolini, Benito"],"rdfxml_ssi":"\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003crdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns0=\"http://library.ucsd.edu/ontology/dams#\" xmlns:ns1=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns2=\"http://www.loc.gov/mads/rdf/v1#\"\u003e\n \u003cns0:Object rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731\"\u003e\n \u003cns0:copyright rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb5223271t\"/\u003e\n \u003cns0:date\u003e\n \u003cns0:Date\u003e\n \u003cns0:encoding\u003ew3cdtf\u003c/ns0:encoding\u003e\n \u003cns0:type\u003ecreation\u003c/ns0:type\u003e\n \u003cns1:value\u003e1941-01-30\u003c/ns1:value\u003e\n \u003c/ns0:Date\u003e\n \u003c/ns0:date\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd0245876p\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd38599503\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd4130806r\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd4136696p\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd65202584\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd65207329\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7544924g\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7817196f\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd97281201\"/\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/1.tif\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003eccd16c80\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e1999-05-27T05:07:56\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd1775833c\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eTIFF\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e5.0\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e0cf0342fb272e6f4efee430abd1f32d3\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/tiff\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e5400x4158\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e259d0629e6ad417715d6416d823669cd3d7c05c4\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e2809072\u003c/ns0:size\u003e\n \u003cns0:sourceCapture rdf:nodeID=\"g70064934344400\"/\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-1.tif\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-source\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/2.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e7f864b77\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd6622295p\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e66d0eaae504bbbf9eab8546261434534\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e768x591\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e4c629bd1637c19f6f08111d11187a123c139dd5f\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e247289\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-2.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-service\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/3.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003edfa67cd2\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:32-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7885107f\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e7adca74ecdc1f29cc9fb9b688e6e0069\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e450x347\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e0996df5253e35fc44858873e2faec9b55fea51a5\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e98318\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-3.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-preview\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/4.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e1cd989cf\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd9182044b\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e0a80df639281b73aeaba2b2bdf812e3f\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e150x116\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003ecfb958d6a00274decc41ca8b72ac7568b591a7d8\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e14616\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-4.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-thumbnail\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/5.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e048e1497\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd04788935\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003ec579a8db8a3f3ef3a8ae21c221c207cb\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e65x50\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e268b9d16afc089f7426717eab8f0db14d33e103c\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e3307\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-5.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-icon\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:displayLabel\u003efilename\u003c/ns0:displayLabel\u003e\n \u003cns0:type\u003eidentifier\u003c/ns0:type\u003e\n \u003cns1:value\u003em230b18f15id10130c.tif\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:type\u003epublication\u003c/ns0:type\u003e\n \u003cns1:value\u003ePM Magazine\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:internalOnly\u003etrue\u003c/ns0:internalOnly\u003e\n \u003cns0:type\u003enote\u003c/ns0:type\u003e\n \u003cns1:value\u003econverted to black and white, cleaned up so that only the line art was present (1999)\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note rdf:about=\"http://library.ucsd.edu/ark:/20775/bb48138063\"/\u003e\n \u003c/ns0:note\u003e\n \u003cns0:otherRights rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb3858079q\"/\u003e\n \u003cns0:personalName\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb41652412\"/\u003e\n \u003c/ns0:personalName\u003e\n \u003cns0:personalName\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb78854124\"/\u003e\n \u003c/ns0:personalName\u003e\n \u003cns0:provenanceCollectionPart rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb65202085\"/\u003e\n \u003cns0:relationship\u003e\n \u003cns0:Relationship\u003e\n \u003cns0:personalName rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb74417181\"/\u003e\n \u003cns0:role rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb6486002k\"/\u003e\n \u003c/ns0:Relationship\u003e\n \u003c/ns0:relationship\u003e\n \u003cns0:title\u003e\n \u003cns2:Title\u003e\n \u003cns2:authoritativeLabel\u003eVirginio Gayda Says\u003c/ns2:authoritativeLabel\u003e\n \u003cns2:elementList rdf:parseType=\"Collection\"\u003e\n \u003cns2:MainTitleElement\u003e\n \u003cns2:elementValue\u003eVirginio Gayda Says\u003c/ns2:elementValue\u003e\n \u003c/ns2:MainTitleElement\u003e\n \u003c/ns2:elementList\u003e\n \u003c/ns2:Title\u003e\n \u003c/ns0:title\u003e\n \u003cns0:typeOfResource\u003estill image\u003c/ns0:typeOfResource\u003e\n \u003cns0:unit rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb09910635\"/\u003e\n \u003c/ns0:Object\u003e\n \u003cns2:Authority rdf:about=\"http://library.ucsd.edu/ark:/20775/bb6486002k\"/\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb74417181\"/\u003e\n \u003cns0:SourceCapture rdf:nodeID=\"g70064934344400\"\u003e\n \u003cns0:imageProducer\u003eMandeville Special Collections Library\u003c/ns0:imageProducer\u003e\n \u003cns0:scanningSoftware\u003eAdobe Photoshop\u003c/ns0:scanningSoftware\u003e\n \u003cns0:scanningSoftwareVersion\u003e5.0\u003c/ns0:scanningSoftwareVersion\u003e\n \u003cns0:sourceType\u003emagazine clippings\u003c/ns0:sourceType\u003e\n \u003c/ns0:SourceCapture\u003e\n\u003c/rdf:RDF\u003e\n","component_map_tesim":["{}"],"files_tesim":["{\"filestore\":\"localStore\",\"id\":\"1.tif\",\"quality\":\"5400x4158\",\"size\":\"2809072\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-1.tif\",\"use\":\"image-source\",\"label\":\"\",\"dateCreated\":\"1999-05-27T05:07:56\",\"formatName\":\"TIFF\",\"mimeType\":\"image/tiff\",\"source_capture\":\"_:g70064934344400\",\"capture_source\":\"\",\"image_producer\":\"Mandeville Special Collections Library\",\"scanner_manufacturer\":\"\",\"scanner_model_name\":\"\",\"scanning_software\":\"Adobe Photoshop\",\"scanning_software_version\":\"5.0\",\"source_type\":\"magazine clippings\"}","{\"filestore\":\"localStore\",\"id\":\"2.jpg\",\"quality\":\"768x591\",\"size\":\"247289\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-2.jpg\",\"use\":\"image-service\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"3.jpg\",\"quality\":\"450x347\",\"size\":\"98318\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-3.jpg\",\"use\":\"image-preview\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:32-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"4.jpg\",\"quality\":\"150x116\",\"size\":\"14616\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-4.jpg\",\"use\":\"image-thumbnail\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"5.jpg\",\"quality\":\"65x50\",\"size\":\"3307\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-5.jpg\",\"use\":\"image-icon\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}"],"file_1.tif_filestore_tesim":["localStore"],"file_2.jpg_filestore_tesim":["localStore"],"file_3.jpg_filestore_tesim":["localStore"],"file_4.jpg_filestore_tesim":["localStore"],"thumbnail_tesim":["http://library.ucsd.edu/ark:/20775/bb08540731/4.jpg"],"file_5.jpg_filestore_tesim":["localStore"],"unit_code_tesim":["dlp"],"unit_json_tesim":["{\"id\":\"bb09910635\",\"code\":\"dlp\",\"name\":\"Library Digital Collections\"}"],"collection_name_tesim":["Dr. Seuss Political Cartoons"],"collections_tesim":["bb65202085"],"collection_json_tesim":["{\"id\":\"bb65202085\",\"name\":\"Dr. Seuss Political Cartoons\",\"type\":\"ProvenanceCollectionPart\"}"],"copyright_tesim":["{\"id\":\"bb5223271t\",\"status\":\"Unknown\",\"jurisdiction\":\"\",\"purposeNote\":\"Use: This work is available from the UC San Diego Library. This digital copy of the work is intended to support research, teaching, and private study.\",\"note\":\"Constraint(s) on Use: This work may be protected by the U.S. Copyright Law (Title 17, U.S.C.). Use of this work beyond that allowed by \\\"fair use\\\" requires written permission of the copyright holder(s). Responsibility for obtaining permissions and any use and distribution of this work rests exclusively with the user and not the UC San Diego Library. Inquiries can be made to the UC San Diego Library program having custody of the work.\",\"beginDate\":\"\",\"endDate\":\"\",\"date\":\"\"}"],"otherRights_tesim":["{\"id\":\"bb3858079q\",\"basis\":\"fair use (public)\",\"note\":\"\",\"uri\":\"\",\"permissionType\":\"display\",\"permissionBeginDate\":\"\",\"permissionEndDate\":\"\",\"restrictionType\":\"\",\"restrictionBeginDate\":\"\",\"restrictionEndDate\":\"\",\"name\":\"http://library.ucsd.edu/ark:/20775/bb1264196m\",\"role\":\"http://library.ucsd.edu/ark:/20775/bb2561137b\",\"role_name\":\"\"}"],"resource_type_tesim":["image"],"has_model_ssim":["info:fedora/afmodel:DamsObject"],"id_t":"bb08540731","timestamp":"2014-12-12T07:05:06.492Z"}
{"system_create_dtsi":"2013-07-01T04:49:14Z","system_modified_dtsi":"2013-07-01T04:49:14Z","object_state_ssi":"A","active_fedora_model_ssi":"DamsObject","id":"bb08540731","object_profile_ssm":["{\"datastreams\":{\"DC\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+DC\",\"dsLocationType\":null,\"dsVersionID\":\"DC\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"RELS-EXT\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+RELS-EXT\",\"dsLocationType\":null,\"dsVersionID\":\"RELS-EXT\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"_rdf.xml\":{\"dsLabel\":\"/rdf.xml\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_rdf.xml\",\"dsLocationType\":null,\"dsVersionID\":\"_rdf.xml\",\"dsState\":\"A\"},\"_4.jpg\":{\"dsLabel\":\"/4.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_4.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_4.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":14616,\"dsChecksumType\":\"cfb958d6a00274decc41ca8b72ac7568b591a7d8\",\"dsChecksum\":\"SHA-1\"},\"_1.tif\":{\"dsLabel\":\"/1.tif\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_1.tif\",\"dsLocationType\":null,\"dsVersionID\":\"_1.tif\",\"dsState\":\"A\",\"dsCreateDate\":\"1999-05-27T05:07:56-07:00\",\"dsMIME\":\"image/tiff\",\"dsSize\":2809072,\"dsChecksumType\":\"259d0629e6ad417715d6416d823669cd3d7c05c4\",\"dsChecksum\":\"SHA-1\"},\"_5.jpg\":{\"dsLabel\":\"/5.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_5.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_5.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":3307,\"dsChecksumType\":\"268b9d16afc089f7426717eab8f0db14d33e103c\",\"dsChecksum\":\"SHA-1\"},\"_2.jpg\":{\"dsLabel\":\"/2.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_2.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_2.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:31-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":247289,\"dsChecksumType\":\"4c629bd1637c19f6f08111d11187a123c139dd5f\",\"dsChecksum\":\"SHA-1\"},\"_3.jpg\":{\"dsLabel\":\"/3.jpg\",\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+_3.jpg\",\"dsLocationType\":null,\"dsVersionID\":\"_3.jpg\",\"dsState\":\"A\",\"dsCreateDate\":\"2013-05-11T01:04:32-07:00\",\"dsMIME\":\"image/jpeg\",\"dsSize\":98318,\"dsChecksumType\":\"0996df5253e35fc44858873e2faec9b55fea51a5\",\"dsChecksum\":\"SHA-1\"},\"rightsMetadata\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+rightsMetadata\",\"dsLocationType\":null,\"dsVersionID\":\"rightsMetadata\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"},\"damsMetadata\":{\"dsLabel\":null,\"dsFormatURI\":null,\"dsControlGroup\":\"X\",\"dsVersionable\":false,\"dsInfoType\":null,\"dsLocation\":\"bb08540731+damsMetadata\",\"dsLocationType\":null,\"dsVersionID\":\"damsMetadata\",\"dsState\":\"A\",\"dsMIME\":\"application/rdf+xml\",\"dsSize\":76315,\"dsChecksumType\":\"DISABLED\",\"dsChecksum\":\"none\",\"dsCreateDate\":\"2014-06-25T22:19:03-07:00\"}},\"objLabel\":null,\"objOwnerId\":\"foo\",\"objModels\":[\"info:fedora/afmodel:Object\",\"info:fedora/fedora-system:FedoraObject-3.0\"],\"objCreateDate\":\"2013-06-30T21:49:14-07:00\",\"objLastModDate\":\"2013-06-30T21:49:14-07:00\",\"objDissIndexViewURL\":\"http://localhost:8080/dams/fedora/objects/bb08540731/methods/fedora-system%3A3/viewMethodIndex\",\"objItemIndexViewURL\":\"http://localhost:8080/dams/fedora/objects/bb08540731/methods/fedora-system%3A3/viewItemIndex\",\"objState\":\"A\"}"],"edit_access_group_ssim":["dams-curator","dams-manager-admin"],"discover_access_group_ssim":["public","dams-curator","dams-manager-admin"],"read_access_group_ssim":["public","dams-curator","dams-manager-admin"],"title_json_tesim":["{\"name\":\"Virginio Gayda Says\",\"external\":[],\"value\":\"Virginio Gayda Says\",\"nonSort\":\"\",\"partName\":\"\",\"partNumber\":\"\",\"subtitle\":\"\",\"variant\":\"\",\"translationVariant\":\"\",\"abbreviationVariant\":\"\",\"acronymVariant\":\"\",\"expansionVariant\":\"\"}"],"title_tesim":["Virginio Gayda Says"],"all_fields_tesim":["Virginio Gayda Says","1941-01-30","creation","w3cdtf","Seuss, Dr.","Creator","converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)","Gayda, Virginio","Mussolini, Benito","Library Digital Collections","dlp","Dr. Seuss Political Cartoons","image"],"title_ssi":"virginio gayda says","date_json_tesim":["{\"beginDate\":\"\",\"endDate\":\"\",\"value\":\"1941-01-30\",\"type\":\"creation\",\"encoding\":\"w3cdtf\"}"],"date_tesim":["1941-01-30","creation","w3cdtf"],"object_create_dtsi":"1941-01-30T00:00:00Z","name_tesim":["Seuss, Dr.","Gayda, Virginio","Mussolini, Benito"],"relationship_json_tesim":["{\"Creator\":[\"Seuss, Dr.\"]}"],"otherNote_json_tesim":["{\"type\":\"note\",\"value\":\"converted to black and white, cleaned up so that only the line art was present (1999)\",\"displayLabel\":\"\"}","{\"type\":\"publication\",\"value\":\"PM Magazine\",\"displayLabel\":\"\"}","{\"type\":\"identifier\",\"value\":\"m230b18f15id10130c.tif\",\"displayLabel\":\"filename\"}","{\"id\":\"b\",\"type\":\"local attribution\",\"value\":\"Special Collections \\u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)\",\"displayLabel\":\"digital object made available by\"}"],"otherNote_tesim":["converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)"],"note_tesim":["converted to black and white, cleaned up so that only the line art was present (1999)","PM Magazine","m230b18f15id10130c.tif","Special Collections \u0026 Archives, University of California, San Diego, La Jolla, 92093-0175 (http://libraries.ucsd.edu/collections/sca/)"],"personalName_tesim":["Gayda, Virginio","Mussolini, Benito"],"rdfxml_ssi":"\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003crdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns0=\"http://library.ucsd.edu/ontology/dams#\" xmlns:ns1=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:ns2=\"http://www.loc.gov/mads/rdf/v1#\"\u003e\n \u003cns0:Object rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731\"\u003e\n \u003cns0:copyright rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb5223271t\"/\u003e\n \u003cns0:date\u003e\n \u003cns0:Date\u003e\n \u003cns0:encoding\u003ew3cdtf\u003c/ns0:encoding\u003e\n \u003cns0:type\u003ecreation\u003c/ns0:type\u003e\n \u003cns1:value\u003e1941-01-30\u003c/ns1:value\u003e\n \u003c/ns0:Date\u003e\n \u003c/ns0:date\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd0245876p\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd38599503\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd4130806r\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd4136696p\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd65202584\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd65207329\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7544924g\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7817196f\"/\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd97281201\"/\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/1.tif\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003eccd16c80\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e1999-05-27T05:07:56\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd1775833c\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eTIFF\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e5.0\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e0cf0342fb272e6f4efee430abd1f32d3\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/tiff\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e5400x4158\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e259d0629e6ad417715d6416d823669cd3d7c05c4\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e2809072\u003c/ns0:size\u003e\n \u003cns0:sourceCapture rdf:nodeID=\"g70064934344400\"/\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-1.tif\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-source\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/2.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e7f864b77\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd6622295p\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e66d0eaae504bbbf9eab8546261434534\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e768x591\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e4c629bd1637c19f6f08111d11187a123c139dd5f\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e247289\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-2.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-service\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/3.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003edfa67cd2\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:32-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd7885107f\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e7adca74ecdc1f29cc9fb9b688e6e0069\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e450x347\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e0996df5253e35fc44858873e2faec9b55fea51a5\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e98318\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-3.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-preview\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/4.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e1cd989cf\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd9182044b\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003e0a80df639281b73aeaba2b2bdf812e3f\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e150x116\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003ecfb958d6a00274decc41ca8b72ac7568b591a7d8\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e14616\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-4.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-thumbnail\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:hasFile\u003e\n \u003cns0:File rdf:about=\"http://library.ucsd.edu/ark:/20775/bb08540731/5.jpg\"\u003e\n \u003cns0:compositionLevel\u003e0\u003c/ns0:compositionLevel\u003e\n \u003cns0:crc32checksum\u003e048e1497\u003c/ns0:crc32checksum\u003e\n \u003cns0:dateCreated\u003e2013-05-11T01:04:31-0700\u003c/ns0:dateCreated\u003e\n \u003cns0:event rdf:resource=\"http://library.ucsd.edu/ark:/20775/bd04788935\"/\u003e\n \u003cns0:filestore\u003elocalStore\u003c/ns0:filestore\u003e\n \u003cns0:formatName\u003eJPEG\u003c/ns0:formatName\u003e\n \u003cns0:formatVersion\u003e1.01\u003c/ns0:formatVersion\u003e\n \u003cns0:md5checksum\u003ec579a8db8a3f3ef3a8ae21c221c207cb\u003c/ns0:md5checksum\u003e\n \u003cns0:mimeType\u003eimage/jpeg\u003c/ns0:mimeType\u003e\n \u003cns0:objectCategory\u003efile\u003c/ns0:objectCategory\u003e\n \u003cns0:preservationLevel\u003efull\u003c/ns0:preservationLevel\u003e\n \u003cns0:quality\u003e65x50\u003c/ns0:quality\u003e\n \u003cns0:sha1checksum\u003e268b9d16afc089f7426717eab8f0db14d33e103c\u003c/ns0:sha1checksum\u003e\n \u003cns0:size\u003e3307\u003c/ns0:size\u003e\n \u003cns0:sourceFileName\u003e20775-bb08540731-0-5.jpg\u003c/ns0:sourceFileName\u003e\n \u003cns0:sourcePath\u003e/pub/data2/dams/localStore/bb/08/54/07/31\u003c/ns0:sourcePath\u003e\n \u003cns0:use\u003eimage-icon\u003c/ns0:use\u003e\n \u003c/ns0:File\u003e\n \u003c/ns0:hasFile\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:displayLabel\u003efilename\u003c/ns0:displayLabel\u003e\n \u003cns0:type\u003eidentifier\u003c/ns0:type\u003e\n \u003cns1:value\u003em230b18f15id10130c.tif\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:type\u003epublication\u003c/ns0:type\u003e\n \u003cns1:value\u003ePM Magazine\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note\u003e\n \u003cns0:internalOnly\u003etrue\u003c/ns0:internalOnly\u003e\n \u003cns0:type\u003enote\u003c/ns0:type\u003e\n \u003cns1:value\u003econverted to black and white, cleaned up so that only the line art was present (1999)\u003c/ns1:value\u003e\n \u003c/ns0:Note\u003e\n \u003c/ns0:note\u003e\n \u003cns0:note\u003e\n \u003cns0:Note rdf:about=\"http://library.ucsd.edu/ark:/20775/bb48138063\"/\u003e\n \u003c/ns0:note\u003e\n \u003cns0:otherRights rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb3858079q\"/\u003e\n \u003cns0:personalName\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb41652412\"/\u003e\n \u003c/ns0:personalName\u003e\n \u003cns0:personalName\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb78854124\"/\u003e\n \u003c/ns0:personalName\u003e\n \u003cns0:provenanceCollectionPart rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb65202085\"/\u003e\n \u003cns0:relationship\u003e\n \u003cns0:Relationship\u003e\n \u003cns0:personalName rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb74417181\"/\u003e\n \u003cns0:role rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb6486002k\"/\u003e\n \u003c/ns0:Relationship\u003e\n \u003c/ns0:relationship\u003e\n \u003cns0:title\u003e\n \u003cns2:Title\u003e\n \u003cns2:authoritativeLabel\u003eVirginio Gayda Says\u003c/ns2:authoritativeLabel\u003e\n \u003cns2:elementList rdf:parseType=\"Collection\"\u003e\n \u003cns2:MainTitleElement\u003e\n \u003cns2:elementValue\u003eVirginio Gayda Says\u003c/ns2:elementValue\u003e\n \u003c/ns2:MainTitleElement\u003e\n \u003c/ns2:elementList\u003e\n \u003c/ns2:Title\u003e\n \u003c/ns0:title\u003e\n \u003cns0:typeOfResource\u003estill image\u003c/ns0:typeOfResource\u003e\n \u003cns0:unit rdf:resource=\"http://library.ucsd.edu/ark:/20775/bb09910635\"/\u003e\n \u003c/ns0:Object\u003e\n \u003cns2:Authority rdf:about=\"http://library.ucsd.edu/ark:/20775/bb6486002k\"/\u003e\n \u003cns2:PersonalName rdf:about=\"http://library.ucsd.edu/ark:/20775/bb74417181\"/\u003e\n \u003cns0:SourceCapture rdf:nodeID=\"g70064934344400\"\u003e\n \u003cns0:imageProducer\u003eMandeville Special Collections Library\u003c/ns0:imageProducer\u003e\n \u003cns0:scanningSoftware\u003eAdobe Photoshop\u003c/ns0:scanningSoftware\u003e\n \u003cns0:scanningSoftwareVersion\u003e5.0\u003c/ns0:scanningSoftwareVersion\u003e\n \u003cns0:sourceType\u003emagazine clippings\u003c/ns0:sourceType\u003e\n \u003c/ns0:SourceCapture\u003e\n\u003c/rdf:RDF\u003e\n","component_map_tesim":["{}"],"files_tesim":["{\"filestore\":\"localStore\",\"id\":\"1.tif\",\"quality\":\"5400x4158\",\"size\":\"2809072\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-1.tif\",\"use\":\"image-source\",\"label\":\"\",\"dateCreated\":\"1999-05-27T05:07:56\",\"formatName\":\"TIFF\",\"mimeType\":\"image/tiff\",\"source_capture\":\"_:g70064934344400\",\"capture_source\":\"\",\"image_producer\":\"Mandeville Special Collections Library\",\"scanner_manufacturer\":\"\",\"scanner_model_name\":\"\",\"scanning_software\":\"Adobe Photoshop\",\"scanning_software_version\":\"5.0\",\"source_type\":\"magazine clippings\"}","{\"filestore\":\"localStore\",\"id\":\"2.jpg\",\"quality\":\"768x591\",\"size\":\"247289\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-2.jpg\",\"use\":\"image-service\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"3.jpg\",\"quality\":\"450x347\",\"size\":\"98318\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-3.jpg\",\"use\":\"image-preview\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:32-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"4.jpg\",\"quality\":\"150x116\",\"size\":\"14616\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-4.jpg\",\"use\":\"image-thumbnail\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}","{\"filestore\":\"localStore\",\"id\":\"5.jpg\",\"quality\":\"65x50\",\"size\":\"3307\",\"sourcePath\":\"/pub/data2/dams/localStore/bb/08/54/07/31\",\"sourceFileName\":\"20775-bb08540731-0-5.jpg\",\"use\":\"image-icon\",\"label\":\"\",\"dateCreated\":\"2013-05-11T01:04:31-0700\",\"formatName\":\"JPEG\",\"mimeType\":\"image/jpeg\"}"],"file_1.tif_filestore_tesim":["localStore"],"file_2.jpg_filestore_tesim":["localStore"],"file_3.jpg_filestore_tesim":["localStore"],"file_4.jpg_filestore_tesim":["localStore"],"thumbnail_tesim":["http://library.ucsd.edu/ark:/20775/bb08540731/4.jpg"],"file_5.jpg_filestore_tesim":["localStore"],"unit_code_tesim":["dlp"],"unit_json_tesim":["{\"id\":\"bb09910635\",\"code\":\"dlp\",\"name\":\"Library Digital Collections\"}"],"collection_name_tesim":["Dr. Seuss Political Cartoons"],"collections_tesim":["bb65202085"],"collection_json_tesim":["{\"id\":\"bb65202085\",\"name\":\"Dr. Seuss Political Cartoons\",\"type\":\"ProvenanceCollectionPart\"}"],"copyright_tesim":["{\"id\":\"bb5223271t\",\"status\":\"Unknown\",\"jurisdiction\":\"\",\"purposeNote\":\"Use: This work is available from the UC San Diego Library. This digital copy of the work is intended to support research, teaching, and private study.\",\"note\":\"Constraint(s) on Use: This work may be protected by the U.S. Copyright Law (Title 17, U.S.C.). Use of this work beyond that allowed by \\\"fair use\\\" requires written permission of the copyright holder(s). Responsibility for obtaining permissions and any use and distribution of this work rests exclusively with the user and not the UC San Diego Library. Inquiries can be made to the UC San Diego Library program having custody of the work.\",\"beginDate\":\"\",\"endDate\":\"\",\"date\":\"\"}"],"otherRights_tesim":["{\"id\":\"bb3858079q\",\"basis\":\"fair use (public)\",\"note\":\"\",\"uri\":\"\",\"permissionType\":\"display\",\"permissionBeginDate\":\"\",\"permissionEndDate\":\"\",\"restrictionType\":\"\",\"restrictionBeginDate\":\"\",\"restrictionEndDate\":\"\",\"name\":\"http://library.ucsd.edu/ark:/20775/bb1264196m\",\"role\":\"http://library.ucsd.edu/ark:/20775/bb2561137b\",\"role_name\":\"\"}"],"resource_type_tesim":["image"],"has_model_ssim":["info:fedora/afmodel:DamsObject"],"id_t":"bb08540731","timestamp":"2014-12-12T07:05:06.492Z"}
$ ruby name_test.rb
Testing file with all unique names:
All names: ["Seuss, Dr.", "Gayda, Virginio", "Mussolini, Benito"]
Unique names: ["Seuss, Dr.", "Gayda, Virginio", "Mussolini, Benito"]
Testing file with a duplicate name:
All names: ["Seuss, Dr.", "Gayda, Virginio", "Seuss, Dr.", "Mussolini, Benito"]
Unique names: ["Seuss, Dr.", "Gayda, Virginio", "Mussolini, Benito"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment