Install Folio

bin/console folio:pull --dataset dc/4168b346w

Link Types

Forward Reverse Links
coll contains obj
contains
obj belongs_to coll
belongs_to
374,740

Observed Schema

Name Core Type Rows
dto_coll_collection coll collection 102
dto_document obj document 187,370

Archive Docs

Folio Metadata json
{
    "folio": {
        "code": "dc/4168b346w",
        "label": "Boston Public Library Collection",
        "dataset_key": "dc/4168b346w",
        "row_count": 187472
    },
    "cores": [
        {
            "code": "coll",
            "label": null,
            "row_count": 102
        },
        {
            "code": "obj",
            "label": null,
            "row_count": 187370
        }
    ],
    "dtoTables": [
        {
            "id": "dc/4168b346w:dto_coll_collection",
            "name": "dto_coll_collection",
            "kind": "dto",
            "core_code": "coll",
            "dto_type": "collection",
            "label": "Collection",
            "description": "A collection / series \u2014 an aggregation of items rather than a single object.\nTwo producers: the \"folio of folios\" (each row is a whole folio) and aggregators like the\nSmithsonian that expose collections and series alongside objects. Unlike a generic item, a\ncollection is browsed by its dataset-level descriptors \u2014 provider, country, language, size \u2014\nso those are promoted to facets here. `subjects` (a parent facet) carries the dtoType mix.\n/",
            "row_count": 102
        },
        {
            "id": "dc/4168b346w:dto_document",
            "name": "dto_document",
            "kind": "dto",
            "core_code": "obj",
            "dto_type": "document",
            "label": "Document",
            "description": "Generic text-primary item: broadsides, lists, clippings, forms, and any textual work that does not fit a more specific type.",
            "row_count": 187370
        }
    ],
    "views": [
        "dto_coll_collection",
        "dto_document"
    ],
    "generatedAt": "2026-06-29T18:27:07+00:00",
    "metadata": {
        "archivePreparedAt": "2026-06-29T18:27:04+00:00",
        "schema": {
            "tables": 4,
            "properties": 39
        },
        "views": {
            "views": 2
        }
    }
}
Overview md
# Folio dc/4168b346w

Boston Public Library Collection

- Dataset key: `dc/4168b346w`
- Rows: 187,472
- Cores: 2
- Observed DTO tables: 2

## Cores

| Core | Label | Rows |
| --- | --- | ---: |
| `coll` | coll | 102 |
| `obj` | obj | 187,370 |
Observed Schema md
# Observed Schema

## `dto_coll_collection`

- Core: `coll`
- DTO type: `collection`
- Rows: 102

A collection / series — an aggregation of items rather than a single object.
Two producers: the "folio of folios" (each row is a whole folio) and aggregators like the
Smithsonian that expose collections and series alongside objects. Unlike a generic item, a
collection is browsed by its dataset-level descriptors — provider, country, language, size —
so those are promoted to facets here. `subjects` (a parent facet) carries the dtoType mix.
/

| Field | Type | Flags | Description |
| --- | --- | --- | --- |
| `id` | `?string` |  |  |
| `contentType` | `?string` |  |  |
| `stage` | `?string` | filterable, facet | Pipeline processing stage (raw / normalized / enriched). A facet so you can filter to enriched items; later this can be made dev-only. |
| `title` | `?string` |  | dcterms:title |
| `pageCount` | `?int` | sortable | Number of pages in the document. |
| `source` | `string` |  | Source of this data: import \| ai \| ocr \| human |

## `dto_document`

- Core: `obj`
- DTO type: `document`
- Rows: 187,370

Generic text-primary item: broadsides, lists, clippings, forms, and any textual work that does not fit a more specific type.

| Field | Type | Flags | Description |
| --- | --- | --- | --- |
| `id` | `?string` |  |  |
| `sourceUrl` | `?string` |  |  |
| `contentType` | `?string` |  |  |
| `stage` | `?string` | filterable, facet | Pipeline processing stage (raw / normalized / enriched). A facet so you can filter to enriched items; later this can be made dev-only. |
| `title` | `?string` |  | dcterms:title |
| `description` | `?string` |  | dcterms:description — short curatorial text from the source institution |
| `date` | `?string` |  | dcterms:date — display string, may be fuzzy ("ca. 1920") |
| `year` | `?int` | filterable, facet, sortable | Coverage/production year. |
| `citationUrl` | `?string` |  | ItemField::CITATION_URL — deep link back to the source record (e.g. the NARA catalog page). Rendered as the "Original" link on the folio item page. |
| `rights` | `?string` |  | dcterms:rights |
| `rightsUri` | `?string` |  | dcterms:license URI (rightsstatements.org) |
| `reuseAllowed` | `?string` |  | dcterms:accessRights — e.g. "no restrictions", "creative commons" |
| `language` | `?string` |  | dcterms:language |
| `identifierLocal` | `?string` |  | dcterms:identifier — local accession number |
| `institution` | `?string` |  | Holding institution |
| `collections` | `?array` |  | Collection name(s) |
| `subjectsGeographic` | `?array` | filterable, facet | dcterms:spatial — geographic subjects |
| `genreBasic` | `?array` | filterable, facet | Broad genre/form terms (MODS genre @basic) — e.g. ["Photographs"]. A sidebar facet. |
| `typeOfResource` | `?array` | filterable, facet | MODS typeOfResource — coarse resource class, e.g. ["Still image"], ["Text"]. A facet. |
| `country` | `?string` | filterable, facet |  |
| `state` | `?string` |  |  |
| `county` | `?string` |  |  |
| `city` | `?string` | filterable, facet |  |
| `iiifBase` | `?string` |  | IIIF Image API base URL — use for AI vision and imgProxy resizing |
| `iiifManifest` | `?string` |  |  |
| `thumbnailUrl` | `?string` |  |  |
| `largeImageUrl` | `?string` |  |  |
| `pageCount` | `?int` | sortable | Number of pages in the document. |
| `source` | `string` |  | Source of this data: import \| ai \| ocr \| human |
| `hasTranscription` | `bool` |  |  |
| `subjects` | `?array` | filterable, facet | dcterms:subject — keyword/topical subjects (incl. AI keywords). A sidebar facet. |
| `genreSpecific` | `?array` | filterable, facet | Specific genre/form terms (MODS genre @specific) — e.g. ["Albumen prints"]. A facet. |
| `extent` | `?string` |  |  |
Query Guide md
# Query Guide

This folio stores canonical rows in `item` and observed field metadata in `schema_table` / `schema_property`.

```sql
select * from schema_table where kind = 'dto';
select * from schema_property where table_id = ? order by position;
select local_id, label, dto_type, dto_data, extras from item limit 20;
```

Convenience views are generated from observed DTO fields:

```sql
select * from dto_coll_collection limit 20;
```

```sql
select * from dto_document limit 20;
```