This file contains 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
require 'nokogiri' | |
class PBCoreToIIIF | |
def self.generate_manifest(xml_file) | |
# Read the PBCore XML file | |
xml = File.read(xml_file) | |
# Parse the XML using Nokogiri | |
doc = Nokogiri::XML(xml) |
This file contains 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 XML file does not appear to have any style information associated with it. The document tree is shown below. | |
<alto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/standards/alto/ns-v4#" xmlns:page="http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15" xsi:schemaLocation="http://www.loc.gov/standards/alto/ns-v4# https://www.loc.gov/standards/alto/v4/alto.xsd"> | |
<Description> | |
<MeasurementUnit>pixel</MeasurementUnit> | |
<sourceImageInformation> | |
<fileName>orig_proc-api-030d3cfc-9e7c-46b8-8a00-3acdacc3b0d1.jpg</fileName> | |
</sourceImageInformation> | |
<Processing ID="IdOcr"> | |
<processingDateTime>2024-03-26T22:01:38.621+01:00</processingDateTime> | |
<processingSoftware> |
This file contains 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
{ | |
"@context": "http://iiif.io/api/presentation/3/context.json", | |
"id": "https://iiif.io/api/cookbook/recipe/0269-embedded-or-referenced-annotations/annotationpage.json", | |
"type": "AnnotationPage", | |
"items": [ | |
{ | |
"id": "https://iiif.io/api/cookbook/recipe/0269-embedded-or-referenced-annotations/canvas-1/annopage-2/anno-1", | |
"type": "Annotation", | |
"motivation": "commenting", | |
"body": { |
This file contains 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
{ | |
"@context":"http://iiif.io/api/presentation/3/context.json", | |
"id":"https://iiif.archive.org/iiif/journalofexpedit00ford/manifest.json", | |
"type":"Manifest", | |
"label":{ | |
"none":[ | |
"Journal of an expedition made in the autumn of 1794, with a detachment of New Jersey troops into western Pennsylvania to aid in suppressing the \"Whiskey rebellion.\"" | |
] | |
}, | |
"metadata":[ |
This file contains 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
{ | |
"@context":"http://iiif.io/api/presentation/3/context.json", | |
"requiredStatement":{ | |
"label":{ | |
"en":[ | |
"Rights Note" | |
] | |
}, | |
"value":{ | |
"en":[ |
This file contains 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
Margaret Atwood reads from You Are Happy (Oxford University Press, 1974) and Power Politics (Anansi, 1971). Atwood also answers audience questions about her work. | |
00:00- Unknown introducer makes an announcement about the room. [INDEX: Sir George Williams University, larger hall, gallery, Howard Fink.] | |
00:21- Howard Fink answers question. | |
00:22- Unknown introducer continues to make announcements. [INDEX: loud speakers outside, paintings, Fine Arts Department, artists, Howard Fink, air conditioning.] | |
01:22- Audience talking | |
01:30- Margaret Atwood talks about room set up, it is recorded by the mic [INDEX: room change.] | |
01:41- Audience responds, says they want to stay in the same room. | |
01:44- Margaret Atwood tries to arrange people in the room. [INDEX: chairs, bench, people, rows, room.] | |
04:41- Margaret Atwood continues to arrange audience. |
This file contains 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
margaret_atwood_i006-11-008.mp3 | |
Henry Beissel | |
00:00:00 | |
One moment... problem that we have here at Sir George [https://www.wikidata.org/wiki/Q326342]. We did try to get a larger hall but it was impossible. To accommodate the overflow, we have set up loudspeakers in the little gallery here, Howard, and in the other one too? | |
Howard Fink | |
00:00:21 | |
Outside. | |
This file contains 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
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@id": "https://fromthepage.com/iiif/11/manifest", | |
"@type": "sc:Manifest", | |
"label": "George East to Thomas East", | |
"metadata": [ | |
{ | |
"label": "dc:source", | |
"value": "record 103-5" | |
}, |
This file contains 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
{ | |
"@context": [ | |
"http://iiif.io/api/extension/text-granularity/context.json", | |
"http://iiif.io/api/presentation/2/context.json" | |
], | |
"@id": "https://iiif.archivelab.org/iiif/rbmsbk_ap2-v4_2001_V55N4$1/ocr", | |
"@type": "sc:AnnotationList", | |
"label": "OCR Text", | |
"resources": [ | |
{ |
This file contains 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
{ | |
"@context": [ | |
"https://iiif.io/api/presentation/2/context.json", | |
"https://iiif.io/api/extension/text-granularity/context.json" | |
], | |
"@id":"https://iiif.archivelab.org/iiif/bub_gb_j45FRJELCpkC/manifest.json", | |
"@type":"sc:Manifest", | |
"attribution":"The Internet Archive", | |
"cover":"https://iiif.archivelab.org/iiif/bub_gb_j45FRJELCpkC$0", | |
"description":"", |
NewerOlder