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
| from pymongo import MongoClient | |
| from bson.code import Code | |
| import json, re | |
| def query(): | |
| database = "mms" | |
| collection = "mods" |
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
| { | |
| "collection_id": 4591, | |
| "container": [ | |
| { | |
| "type": "box", | |
| "value": "12" | |
| }, | |
| { | |
| "type": "folder", | |
| "value": "11" |
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
| { | |
| "container": [ | |
| { | |
| "type": "box", | |
| "value": "12" | |
| }, | |
| { | |
| "type": "folder", | |
| "value": "11" | |
| } |
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
| { | |
| "d_id": 1234, | |
| "d_type": "", | |
| "uuid": "", | |
| "collection_name": "", | |
| "collection_uuid": "", | |
| "container_name": "", | |
| "container_uuid": "", | |
| "seq_total": 12, | |
| "sib_seq": 1, |
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
| { | |
| "author": "New York Public Library. Emmet Collection.", | |
| "bibLevel": { | |
| "code": "m", | |
| "value": "MONOGRAPH" | |
| }, | |
| "catalogDate": "2000-11-03", | |
| "country": "New York (State)", | |
| "createdDate": "2008-12-16T03:52:01Z", | |
| "deleted": false, |
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
| { | |
| "d_id": 3015063, | |
| "d_type": "Item", | |
| "id": 3212468, | |
| "solr_doc_hash": { | |
| "collection_name": "Billy Rose Theatre Collection photograph file", | |
| "collection_uuid": "2589a880-c52c-012f-2cb4-58d385a7bc34", | |
| "container_name": "Lina Abarbanell", | |
| "container_uuid": "29a24350-c52c-012f-73d9-58d385a7bc34", | |
| "desc_md_status": "approved", |
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
| { | |
| "viafId": "27066713", | |
| "nameType": "Personal", | |
| "primaryTopic": "http://viaf.org/viaf/27066713", | |
| "recordLength": 5785, | |
| "birthDate": "1922-03-12", | |
| "deathDate": "1969-10-21", | |
| "dateType": "lived", | |
| "mainHeadingsData": [ | |
| { |
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
| var csv = require("fast-csv"), | |
| fs = require("fs"), | |
| readable = require('stream').Readable, | |
| jsonStream = require('JSONStream'), | |
| viaf = require("viaf-wrapper"); | |
| var stream = fs.createReadStream("perscorp-collection.csv"); | |
| var line = 0 |
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
| /** | |
| * This is the Express app.js file. | |
| */ | |
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express'), | |
| routes = require('./routes'), | |
| underscore = require('underscore'); |
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
| vmoa = { | |
| searchMainTerm: null, //the inital search term | |
| searchSecondTerm: null, //the refined search term | |
| searchSecondType: null, //the refined part of speach of that search term | |
| searchThirdYear: null, //the year selected from the n-Gram | |
| searchThirdTerm: null, //the connected term selected from the ngram page (like the top 10 word) | |
| searchThirdType: null, //the part of speach of the seelcted connected word |
OlderNewer