mirror of
https://github.com/docling-project/docling-core.git
synced 2026-11-18 20:27:00 +00:00
* fix(doclang): preserve leading text before a lone formatting tag `_get_children_simple_text_block` guarded against a second *text* fragment but the Element branch just overwrote `result`, so `<text>2<superscript>nd</superscript></text>` returned "nd" and the leading `2` was silently discarded. Guard both branches so the element is routed to `_parse_inline_group`, which already handles mixed children. * feat: inline runs carry their own whitespace; serializers concatenate faithfully The Markdown, HTML, LaTeX and DocLang inline serializers joined runs with a hard `" "`, inventing spaces the model never asked for: `2nd` -> `2 nd`, `O2.` -> `O 2 .`, `italic text.` -> `italic text .`. Those artifacts can never be removed while the separator lives in the serializer. Serializers: - join inline parts with `""`; DocLang keeps its delimiter between the element head and the body only, where `<content>` is the whitespace channel - hoist edge whitespace around the *complete* decoration stack (formatting and hyperlink together) for Markdown, HTML and LaTeX. Decorating it verbatim emits `**bold ** tail`, which CommonMark renders as literal asterisks; hoisting inside one formatter would let the hyperlink recapture it. DocLang opts out: it keeps whitespace inside the markup, in `<content>`. DocLang deserializer: - `_get_text` stripped every fragment and joined with `""`, collapsing `Advanced <bold>Topics</bold>` into `AdvancedTopics`. It now trims the outer block boundary only, and never trims whitespace delivered by `<content>`. - bare text nodes use the standard XML heuristic: a whitespace run containing a newline is pretty-print indentation, one without it is content. This is what hand-written and VLM-emitted DocLang needs, since it will not use `<content>`. - element-head children (`<caption>`, `<description>`, `<summary>`, `<custom>`) no longer bleed into body text, where they were also double-modelled in `item.meta`. Data at rest: schema minor bumped to 1.11.0 and a `mode="before"` validator re-injects the legacy separator for documents stamped below it, preserving their previous *visible* output including its extra-space bugs (`H 2 O` stays `H 2 O`). It must run before `check_version_is_compatible`, which rewrites `version` and destroys the evidence. Versionless input is left alone. The validator works on a copy, so the caller's dict is untouched and re-validating the same raw value cannot compound separators. A separator can never land inside a delimiter. Code and formula runs are wrapped in `` ` ``/`$` by the serializers, so the space goes on the plain neighbour; when both neighbours are delimited it becomes a plain run of its own, because `` `a``b` `` and `$a$$b$` are both corrupt. Chunk text changes too, since ChunkingDocSerializer inherits the Markdown join -- anyone with a persisted vector index gets silent retrieval drift, so that needs its own line in the release notes. DocTags code is untouched. Its golden gains one empty `<text></text>` for the legacy fixture because that document now carries an extra whitespace run, which DocTags renders empty by its own pre-existing strip-per-run behaviour. Ships as a minor, not a major: `feat!:` would make python-semantic-release (7.34.6, both repos) bump to 3.0, and a 3.0 is not affordable on either package. * DCO Remediation Commit for Christoph Auer <cau@zurich.ibm.com> I, Christoph Auer <cau@zurich.ibm.com>, hereby add my Signed-off-by to this commit: 64404b3709d9e3ba7caf08957cf2ef19df29459f I, Christoph Auer <cau@zurich.ibm.com>, hereby add my Signed-off-by to this commit: 66040cb7b96f77699c9d74051500d645e7e758ed Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * feat(compat): register 1.11->1.10 projector for the whitespace-contract bump Integrates the 1.11.0 schema bump with the downgrade-projector framework (#703) landed upstream. 1.11 and 1.10 are structurally identical; the only difference is that 1.11 inline runs own their boundary whitespace, so the projector just re-stamps the version (a 1.10 client re-applies its own join, yielding the documented harmless double space). - add @register_projector(from_minor=11, to_minor=10) + TestProjector_1_11_to_1_10 - add the auto-generated 1.11 JSON Schema snapshot - re-format the 1.11 SCHEMA_VERSION_HISTORY entry (ruff) - update the stale dclq CLI expectation (old join produced 'public class'; faithful join now yields 'public class') Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(dclq): use typer's vendored click; require typer>=0.25 typer >=0.25 vendors its own copy of click (typer._click) and raises those exceptions instead of the external click package's. The dclq CLI referenced the external click, so on typer >=0.25 bad input escaped the exit-code handlers and the context-flag callback (-C/-A/-B/--context-scope) silently no-op'd because the isinstance(param, click.Option) check no longer matched. Import the exception and Parameter types from typer._click, duck-type the option check, raise the [dclq] typer floor to >=0.25, and drop the now-unused external click dependency. Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(doclang): keep inherited formatting on <content> runs in inline groups <content> is the explicit whitespace-preserving text wrapper, so inside an inline group it is a run, not a nested item: it must inherit the formatting accumulated while descending through <bold>/<italic>/... . Dispatching it through _dispatch_element dropped that formatting, which surfaced after the rebase as <bold><content>x </content></bold> coming back unformatted and broke the doclang round-trip for whitespace_inside_bold / _link. Signed-off-by: nanhanq1 <157583847+nanhanq1@users.noreply.github.com> * chore(compat): point schema 1.11.0 at the next minor release The whitespace-contract bump was first written against v2.86.0; main is now at v2.104.0, so record v2.105.0 as the placeholder release that ships schema 1.11.0. Adjust to the actual version at release time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * test: rebaseline goldens for the inline whitespace contract Regenerated with DOCLING_GEN_TEST_DATA=1. The only change is the schema version stamp 1.10.0 -> 1.11.0 in goldens added or moved on main (including the six test/ -> tests/ renames and misplaced_list_items.out.yaml). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix: join inline runs faithfully in the plain-text reader _collect_subtree_text (TextItem._get_plain_text, FloatingItem.caption_text, nested rich table cells) still joined the runs of an InlineGroup with " ", so mixed captions read "Table 1 : results". It now concatenates the runs of an inline group; every other join, including a host text item's own text and its children, keeps its space. Children of a text item are block structure (producers put a section's paragraphs under its heading), so the host text stays apart from its inline group, as on main; add_inline_group documents this. Tests that asserted the invented run spacing now expect the contract output, fixtures that built runs without boundary whitespace now carry it, and a new test pins the host-text boundary for headings and captions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * docs: note that load_from_doctags cannot restore inline run whitespace DocTags stores inline runs trimmed, so the boundary whitespace the inline whitespace contract expects is not in the source. Document the limitation instead of guessing separators back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(md): keep the host separator before a list item's inline group The Markdown list serializer glued an inline group onto the preceding list item with no separator, so a list item "Intro" whose child group starts with "more" exported "- Intromore". Captions, headings and the plain-text reader keep a space between host text and its inline group; the list serializer now does the same when the group is the child of a text item with its own text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(compat): keep migrated separators between code or formula runs in page filters A legacy document with two adjacent code or formula runs gets a standalone " " run between them on load. It had no provenance, so filter(page_nrs=...) and export_to_markdown(page_no=...) dropped it and rendered `$a$$b$`. The separator now takes the left run's location when both runs are on the same page, so it survives a page filter exactly when both runs do. Runs on different pages keep the unlocated separator, which matches the old join. Inline group locations in DocLang and DocTags are a union of the runs, so they do not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(compat): count empty inline hosts and nested inline groups as legacy runs The legacy separator migration counted only direct text children with non-empty text as runs. An empty-text item whose content is a child inline group (a formula or footnote host) and an inline group nested directly in another were skipped, so `left`, host(`x`), `right` loaded as `left $x$right` instead of the old `left $x$ right`. The DocLang deserializer writes both shapes for nested mixed-content elements. A child now counts as a run when it or its subtree has text. Only a plain run with its own text takes the separator; an empty host must keep its empty text to render its group, so it is treated like a code or formula run and the separator stays outside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * docs(doclang): note that pre-contract archives load without legacy separators DocLang has no schema version, so a .dclx written before schema 1.11.0 cannot be told apart from a current one and is not migrated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * chore(dclq): move the vendored-click fix to its own PR This reverts 6a8b8374; the change is unrelated to the whitespace contract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(compat): don't run the legacy inline migration in project_to project_to validated the projected dict under its target stamp. For 1.10.0 that ran the load-time separator migration on runs that already carry their whitespace, so 'Normal ', 'bold', ' tail' came back as 'Normal ', 'bold ', ' tail'. Validate under the source stamp and restore the target stamp afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(compat): strip inline runs when projecting 1.11 to 1.10 A 1.10 client joins inline runs with " ", so runs that keep their boundary whitespace rendered with double spaces and with the space inside the markup (**bold **, which CommonMark does not render as bold). The projector now strips each inline-group child's text to the shape old producers emitted. Whitespace-only runs become "", which old serializers skip, so no refs move. orig and text outside inline groups are left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(compat): reuse the stripped separator run when migrating Between two code or formula runs the migration inserts a plain " " run. The 1.11 -> 1.10 projector strips it to "", and the next migration skipped the empty run and inserted another, so every projection round trip added a run. Refill an empty plain run between the two neighbours instead. Old serializers skipped empty runs, so legacy output is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * DCO Remediation Commit for Christoph Auer <cau@zurich.ibm.com> I, Christoph Auer <cau@zurich.ibm.com>, hereby add my Signed-off-by to this commit:7600953bc0I, Christoph Auer <cau@zurich.ibm.com>, hereby add my Signed-off-by to this commit:f0e26b6722Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * feat(doclang): read and write whitespace per DocLang 0.9 - Deserializer applies spec rules to the DOM before parsing: a whitespace sequence reads as one space, none at block edges, <content> is literal. - Serializer keeps each text block body on one line; text with non-single-space whitespace goes in <content>, unwrapped where the rules read it the same bare. - Emit version 0.9; validate against doclang 0.9. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * fix(doclang): keep inline code and formula in virtual text In a list item or cell with text of its own, <code> and <formula> are inline, so whitespace around them reads as a space under DocLang 0.9. - Reader applies the whitespace rules across them instead of treating them as blocks. - Pretty-printer writes such a virtual text on one line, so it no longer adds spaces next to inline code or formulas. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(compat): point schema 1.11.0 at v2.106.0 v2.105.0 was released without the whitespace contract, so record the next minor release as the one that ships schema 1.11.0. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * docs(compat): name schema 1.11 as current in the projectors header Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * fix(doclang): harden the DocLang 0.9 whitespace reader and writer - read list items with leading inline code or formula as virtual text - keep whitespace-only content between inline code runs - keep blank lines in content when pretty printing - keep inline handwriting and rtl text as runs - trim only XML whitespace when reading text - keep content literal in headings, captions and list items - read table cells with inline elements as virtual text - keep text beside a whitespace-only formatted run - read spaces around an empty content as one sequence - read a checkbox as part of virtual text - keep a whitespace-only inline code run Signed-off-by: Christoph Auer <cau@zurich.ibm.com> * fix(doclang): preserve checkbox spaces and formatted whitespace runs Signed-off-by: Christoph Auer <cau@zurich.ibm.com> --------- Signed-off-by: Christoph Auer <cau@zurich.ibm.com> Signed-off-by: nanhanq1 <157583847+nanhanq1@users.noreply.github.com> Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: nanhanq1 <157583847+nanhanq1@users.noreply.github.com> Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
4655 lines
109 KiB
JSON
4655 lines
109 KiB
JSON
{
|
|
"$defs": {
|
|
"BaseMeta": {
|
|
"additionalProperties": true,
|
|
"description": "Base class for metadata.",
|
|
"properties": {
|
|
"summary": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/SummaryMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "A condensed natural-language summary of the content rooted at this node.",
|
|
"examples": [
|
|
{
|
|
"text": "A short company/location statement."
|
|
}
|
|
]
|
|
},
|
|
"language": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/LanguageMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The detected human language of the node content, expressed as a BCP 47 code.",
|
|
"examples": [
|
|
{
|
|
"code": "en"
|
|
}
|
|
]
|
|
},
|
|
"entities": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/EntitiesMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Named entities extracted from the node text (persons, organisations, locations, etc.). Each mention carries the entity text, an optional type label, and an optional character span.",
|
|
"examples": [
|
|
{
|
|
"mentions": [
|
|
{
|
|
"charspan": [
|
|
0,
|
|
3
|
|
],
|
|
"label": "ORG",
|
|
"text": "IBM"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"keywords": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/KeywordsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Salient terms or short keyphrases that characterise the node content. Keywords are more specific than topics and typically correspond to individual words or short multi-word expressions found in or closely related to the text. Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"transformer",
|
|
"attention mechanism",
|
|
"BERT"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"topics": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/TopicsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Higher-level subject categories or thematic labels inferred for the node content. Topics are broader than keywords and describe the domain or theme rather than specific terms (e.g., 'machine learning' rather than 'gradient descent'). Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"natural language processing",
|
|
"computer vision"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"title": "BaseMeta",
|
|
"type": "object"
|
|
},
|
|
"BoundingBox": {
|
|
"description": "BoundingBox.",
|
|
"properties": {
|
|
"l": {
|
|
"title": "L",
|
|
"type": "number"
|
|
},
|
|
"t": {
|
|
"title": "T",
|
|
"type": "number"
|
|
},
|
|
"r": {
|
|
"title": "R",
|
|
"type": "number"
|
|
},
|
|
"b": {
|
|
"title": "B",
|
|
"type": "number"
|
|
},
|
|
"coord_origin": {
|
|
"$ref": "#/$defs/CoordOrigin",
|
|
"default": "TOPLEFT"
|
|
}
|
|
},
|
|
"required": [
|
|
"l",
|
|
"t",
|
|
"r",
|
|
"b"
|
|
],
|
|
"title": "BoundingBox",
|
|
"type": "object"
|
|
},
|
|
"ChartBar": {
|
|
"description": "Represents a bar in a bar chart.\n\nAttributes:\n label (str): The label for the bar.\n values (float): The value associated with the bar.",
|
|
"properties": {
|
|
"label": {
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"values": {
|
|
"title": "Values",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"values"
|
|
],
|
|
"title": "ChartBar",
|
|
"type": "object"
|
|
},
|
|
"ChartLine": {
|
|
"description": "Represents a line in a line chart.\n\nAttributes:\n label (str): The label for the line.\n values (list[tuple[float, float]]): A list of (x, y) coordinate pairs\n representing the line's data points.",
|
|
"properties": {
|
|
"label": {
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"values": {
|
|
"items": {
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
"title": "Values",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"values"
|
|
],
|
|
"title": "ChartLine",
|
|
"type": "object"
|
|
},
|
|
"ChartPoint": {
|
|
"description": "Represents a point in a scatter chart.\n\nAttributes:\n value (Tuple[float, float]): A (x, y) coordinate pair representing a point in a\n chart.",
|
|
"properties": {
|
|
"value": {
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"title": "Value",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
],
|
|
"title": "ChartPoint",
|
|
"type": "object"
|
|
},
|
|
"ChartSlice": {
|
|
"description": "Represents a slice in a pie chart.\n\nAttributes:\n label (str): The label for the slice.\n value (float): The value represented by the slice.",
|
|
"properties": {
|
|
"label": {
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"title": "Value",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
],
|
|
"title": "ChartSlice",
|
|
"type": "object"
|
|
},
|
|
"ChartStackedBar": {
|
|
"description": "Represents a stacked bar in a stacked bar chart.\n\nAttributes:\n label (list[str]): The labels for the stacked bars. Multiple values are stored\n in cases where the chart is \"double stacked,\" meaning bars are stacked both\n horizontally and vertically.\n values (list[tuple[str, int]]): A list of values representing different segments\n of the stacked bar along with their label.",
|
|
"properties": {
|
|
"label": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Label",
|
|
"type": "array"
|
|
},
|
|
"values": {
|
|
"items": {
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
"title": "Values",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"values"
|
|
],
|
|
"title": "ChartStackedBar",
|
|
"type": "object"
|
|
},
|
|
"CodeItem": {
|
|
"additionalProperties": false,
|
|
"description": "CodeItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/FloatingMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "code",
|
|
"default": "code",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
},
|
|
"captions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Captions",
|
|
"type": "array"
|
|
},
|
|
"references": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "References",
|
|
"type": "array"
|
|
},
|
|
"footnotes": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Footnotes",
|
|
"type": "array"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"code_language": {
|
|
"$ref": "#/$defs/CodeLanguageLabel",
|
|
"default": "unknown"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "CodeItem",
|
|
"type": "object"
|
|
},
|
|
"CodeLanguageLabel": {
|
|
"description": "CodeLanguageLabel.",
|
|
"enum": [
|
|
"Ada",
|
|
"Awk",
|
|
"Bash",
|
|
"bc",
|
|
"C",
|
|
"C#",
|
|
"C++",
|
|
"CMake",
|
|
"COBOL",
|
|
"CSS",
|
|
"Ceylon",
|
|
"Clojure",
|
|
"Crystal",
|
|
"Cuda",
|
|
"Cython",
|
|
"D",
|
|
"Dart",
|
|
"dc",
|
|
"Dockerfile",
|
|
"DocLang",
|
|
"Elixir",
|
|
"Erlang",
|
|
"FORTRAN",
|
|
"Forth",
|
|
"Go",
|
|
"HTML",
|
|
"Haskell",
|
|
"Haxe",
|
|
"Java",
|
|
"JavaScript",
|
|
"JSON",
|
|
"Julia",
|
|
"Kotlin",
|
|
"Latex",
|
|
"Lisp",
|
|
"Lua",
|
|
"Matlab",
|
|
"MoonScript",
|
|
"Nim",
|
|
"OCaml",
|
|
"ObjectiveC",
|
|
"Octave",
|
|
"PHP",
|
|
"Pascal",
|
|
"Perl",
|
|
"Prolog",
|
|
"Python",
|
|
"Racket",
|
|
"Ruby",
|
|
"Rust",
|
|
"SML",
|
|
"SQL",
|
|
"Scala",
|
|
"Scheme",
|
|
"Swift",
|
|
"Tikz",
|
|
"TypeScript",
|
|
"unknown",
|
|
"VisualBasic",
|
|
"XML",
|
|
"YAML"
|
|
],
|
|
"title": "CodeLanguageLabel",
|
|
"type": "string"
|
|
},
|
|
"CodeMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Code representation for the respective item.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"language": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/CodeLanguageLabel"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"title": "CodeMetaField",
|
|
"type": "object"
|
|
},
|
|
"ContentLayer": {
|
|
"description": "ContentLayer.",
|
|
"enum": [
|
|
"body",
|
|
"furniture",
|
|
"background",
|
|
"invisible",
|
|
"notes"
|
|
],
|
|
"title": "ContentLayer",
|
|
"type": "string"
|
|
},
|
|
"CoordOrigin": {
|
|
"description": "CoordOrigin.",
|
|
"enum": [
|
|
"TOPLEFT",
|
|
"BOTTOMLEFT"
|
|
],
|
|
"title": "CoordOrigin",
|
|
"type": "string"
|
|
},
|
|
"DescriptionAnnotation": {
|
|
"description": "DescriptionAnnotation.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "description",
|
|
"default": "description",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"provenance": {
|
|
"title": "Provenance",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text",
|
|
"provenance"
|
|
],
|
|
"title": "DescriptionAnnotation",
|
|
"type": "object"
|
|
},
|
|
"DescriptionMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Description metadata field.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"title": "DescriptionMetaField",
|
|
"type": "object"
|
|
},
|
|
"DocumentOrigin": {
|
|
"description": "FileSource.",
|
|
"properties": {
|
|
"mimetype": {
|
|
"title": "Mimetype",
|
|
"type": "string"
|
|
},
|
|
"binary_hash": {
|
|
"maximum": 18446744073709551615,
|
|
"minimum": 0,
|
|
"title": "Binary Hash",
|
|
"type": "integer"
|
|
},
|
|
"filename": {
|
|
"title": "Filename",
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Uri"
|
|
}
|
|
},
|
|
"required": [
|
|
"mimetype",
|
|
"binary_hash",
|
|
"filename"
|
|
],
|
|
"title": "DocumentOrigin",
|
|
"type": "object"
|
|
},
|
|
"EntitiesMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Container for extracted entity mentions.",
|
|
"properties": {
|
|
"mentions": {
|
|
"items": {
|
|
"$ref": "#/$defs/EntityMention"
|
|
},
|
|
"minItems": 1,
|
|
"title": "Mentions",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"mentions"
|
|
],
|
|
"title": "EntitiesMetaField",
|
|
"type": "object"
|
|
},
|
|
"EntityMention": {
|
|
"additionalProperties": true,
|
|
"description": "Entity mention extracted from text.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"text": {
|
|
"description": "Normalized text of the entity mention.",
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"orig": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Exact source text extracted from the original charspan, analogous to TextItem.orig. This may differ from 'text' when the mention has been normalized.",
|
|
"title": "Orig"
|
|
},
|
|
"label": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Entity type or category.",
|
|
"title": "Label"
|
|
},
|
|
"charspan": {
|
|
"anyOf": [
|
|
{
|
|
"description": "Character span (0-indexed)",
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Character span (0-indexed) of the entity mention in the source text.",
|
|
"title": "Charspan"
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"title": "EntityMention",
|
|
"type": "object"
|
|
},
|
|
"FieldHeadingItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "field_heading",
|
|
"default": "field_heading",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"maximum": 100,
|
|
"minimum": 1,
|
|
"title": "Level",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "FieldHeadingItem",
|
|
"type": "object"
|
|
},
|
|
"FieldItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "field_item",
|
|
"default": "field_item",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "FieldItem",
|
|
"type": "object"
|
|
},
|
|
"FieldRegionItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "field_region",
|
|
"default": "field_region",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "FieldRegionItem",
|
|
"type": "object"
|
|
},
|
|
"FieldValueItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "field_value",
|
|
"default": "field_value",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
},
|
|
"kind": {
|
|
"default": "read_only",
|
|
"enum": [
|
|
"read_only",
|
|
"fillable"
|
|
],
|
|
"title": "Kind",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "FieldValueItem",
|
|
"type": "object"
|
|
},
|
|
"FineRef": {
|
|
"description": "Fine-granular reference item that can capture span range info.",
|
|
"properties": {
|
|
"$ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "$Ref",
|
|
"type": "string"
|
|
},
|
|
"range": {
|
|
"anyOf": [
|
|
{
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Range"
|
|
}
|
|
},
|
|
"required": [
|
|
"$ref"
|
|
],
|
|
"title": "FineRef",
|
|
"type": "object"
|
|
},
|
|
"FloatingMeta": {
|
|
"additionalProperties": true,
|
|
"description": "Metadata model for floating.",
|
|
"properties": {
|
|
"summary": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/SummaryMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "A condensed natural-language summary of the content rooted at this node.",
|
|
"examples": [
|
|
{
|
|
"text": "A short company/location statement."
|
|
}
|
|
]
|
|
},
|
|
"language": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/LanguageMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The detected human language of the node content, expressed as a BCP 47 code.",
|
|
"examples": [
|
|
{
|
|
"code": "en"
|
|
}
|
|
]
|
|
},
|
|
"entities": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/EntitiesMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Named entities extracted from the node text (persons, organisations, locations, etc.). Each mention carries the entity text, an optional type label, and an optional character span.",
|
|
"examples": [
|
|
{
|
|
"mentions": [
|
|
{
|
|
"charspan": [
|
|
0,
|
|
3
|
|
],
|
|
"label": "ORG",
|
|
"text": "IBM"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"keywords": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/KeywordsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Salient terms or short keyphrases that characterise the node content. Keywords are more specific than topics and typically correspond to individual words or short multi-word expressions found in or closely related to the text. Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"transformer",
|
|
"attention mechanism",
|
|
"BERT"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"topics": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/TopicsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Higher-level subject categories or thematic labels inferred for the node content. Topics are broader than keywords and describe the domain or theme rather than specific terms (e.g., 'machine learning' rather than 'gradient descent'). Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"natural language processing",
|
|
"computer vision"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/DescriptionMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
}
|
|
},
|
|
"title": "FloatingMeta",
|
|
"type": "object"
|
|
},
|
|
"FormItem": {
|
|
"additionalProperties": false,
|
|
"description": "FormItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/FloatingMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "form",
|
|
"default": "form",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"captions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Captions",
|
|
"type": "array"
|
|
},
|
|
"references": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "References",
|
|
"type": "array"
|
|
},
|
|
"footnotes": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Footnotes",
|
|
"type": "array"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"graph": {
|
|
"$ref": "#/$defs/GraphData"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"graph"
|
|
],
|
|
"title": "FormItem",
|
|
"type": "object"
|
|
},
|
|
"Formatting": {
|
|
"description": "Formatting.",
|
|
"properties": {
|
|
"bold": {
|
|
"default": false,
|
|
"title": "Bold",
|
|
"type": "boolean"
|
|
},
|
|
"italic": {
|
|
"default": false,
|
|
"title": "Italic",
|
|
"type": "boolean"
|
|
},
|
|
"underline": {
|
|
"default": false,
|
|
"title": "Underline",
|
|
"type": "boolean"
|
|
},
|
|
"strikethrough": {
|
|
"default": false,
|
|
"title": "Strikethrough",
|
|
"type": "boolean"
|
|
},
|
|
"script": {
|
|
"$ref": "#/$defs/Script",
|
|
"default": "baseline"
|
|
}
|
|
},
|
|
"title": "Formatting",
|
|
"type": "object"
|
|
},
|
|
"FormulaItem": {
|
|
"additionalProperties": false,
|
|
"description": "FormulaItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "formula",
|
|
"default": "formula",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "FormulaItem",
|
|
"type": "object"
|
|
},
|
|
"GraphCell": {
|
|
"description": "GraphCell.",
|
|
"properties": {
|
|
"label": {
|
|
"$ref": "#/$defs/GraphCellLabel"
|
|
},
|
|
"cell_id": {
|
|
"title": "Cell Id",
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"item_ref": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"cell_id",
|
|
"text",
|
|
"orig"
|
|
],
|
|
"title": "GraphCell",
|
|
"type": "object"
|
|
},
|
|
"GraphCellLabel": {
|
|
"description": "GraphCellLabel.",
|
|
"enum": [
|
|
"unspecified",
|
|
"key",
|
|
"value",
|
|
"checkbox"
|
|
],
|
|
"title": "GraphCellLabel",
|
|
"type": "string"
|
|
},
|
|
"GraphData": {
|
|
"description": "GraphData.",
|
|
"properties": {
|
|
"cells": {
|
|
"items": {
|
|
"$ref": "#/$defs/GraphCell"
|
|
},
|
|
"title": "Cells",
|
|
"type": "array"
|
|
},
|
|
"links": {
|
|
"items": {
|
|
"$ref": "#/$defs/GraphLink"
|
|
},
|
|
"title": "Links",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"title": "GraphData",
|
|
"type": "object"
|
|
},
|
|
"GraphLink": {
|
|
"description": "GraphLink.",
|
|
"properties": {
|
|
"label": {
|
|
"$ref": "#/$defs/GraphLinkLabel"
|
|
},
|
|
"source_cell_id": {
|
|
"title": "Source Cell Id",
|
|
"type": "integer"
|
|
},
|
|
"target_cell_id": {
|
|
"title": "Target Cell Id",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"source_cell_id",
|
|
"target_cell_id"
|
|
],
|
|
"title": "GraphLink",
|
|
"type": "object"
|
|
},
|
|
"GraphLinkLabel": {
|
|
"description": "GraphLinkLabel.",
|
|
"enum": [
|
|
"unspecified",
|
|
"to_value",
|
|
"to_key",
|
|
"to_parent",
|
|
"to_child"
|
|
],
|
|
"title": "GraphLinkLabel",
|
|
"type": "string"
|
|
},
|
|
"GroupItem": {
|
|
"additionalProperties": false,
|
|
"description": "GroupItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"name": {
|
|
"default": "group",
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"$ref": "#/$defs/GroupLabel",
|
|
"default": "unspecified"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "GroupItem",
|
|
"type": "object"
|
|
},
|
|
"GroupLabel": {
|
|
"description": "GroupLabel.",
|
|
"enum": [
|
|
"unspecified",
|
|
"list",
|
|
"ordered_list",
|
|
"chapter",
|
|
"section",
|
|
"sheet",
|
|
"slide",
|
|
"form_area",
|
|
"key_value_area",
|
|
"comment_section",
|
|
"inline",
|
|
"picture_area"
|
|
],
|
|
"title": "GroupLabel",
|
|
"type": "string"
|
|
},
|
|
"HumanLanguageLabel": {
|
|
"description": "Two-letter human language primary subtags using BCP-47 values.",
|
|
"enum": [
|
|
"aa",
|
|
"ab",
|
|
"ae",
|
|
"af",
|
|
"ak",
|
|
"am",
|
|
"an",
|
|
"ar",
|
|
"as",
|
|
"av",
|
|
"ay",
|
|
"az",
|
|
"ba",
|
|
"be",
|
|
"bg",
|
|
"bh",
|
|
"bi",
|
|
"bm",
|
|
"bn",
|
|
"bo",
|
|
"br",
|
|
"bs",
|
|
"ca",
|
|
"ce",
|
|
"ch",
|
|
"co",
|
|
"cr",
|
|
"cs",
|
|
"cu",
|
|
"cv",
|
|
"cy",
|
|
"da",
|
|
"de",
|
|
"dv",
|
|
"dz",
|
|
"ee",
|
|
"el",
|
|
"en",
|
|
"eo",
|
|
"es",
|
|
"et",
|
|
"eu",
|
|
"fa",
|
|
"ff",
|
|
"fi",
|
|
"fj",
|
|
"fo",
|
|
"fr",
|
|
"fy",
|
|
"ga",
|
|
"gd",
|
|
"gl",
|
|
"gn",
|
|
"gu",
|
|
"gv",
|
|
"ha",
|
|
"he",
|
|
"hi",
|
|
"ho",
|
|
"hr",
|
|
"ht",
|
|
"hu",
|
|
"hy",
|
|
"hz",
|
|
"ia",
|
|
"id",
|
|
"ie",
|
|
"ig",
|
|
"ii",
|
|
"ik",
|
|
"io",
|
|
"is",
|
|
"it",
|
|
"iu",
|
|
"ja",
|
|
"jv",
|
|
"ka",
|
|
"kg",
|
|
"ki",
|
|
"kj",
|
|
"kk",
|
|
"kl",
|
|
"km",
|
|
"kn",
|
|
"ko",
|
|
"kr",
|
|
"ks",
|
|
"ku",
|
|
"kv",
|
|
"kw",
|
|
"ky",
|
|
"la",
|
|
"lb",
|
|
"lg",
|
|
"li",
|
|
"ln",
|
|
"lo",
|
|
"lt",
|
|
"lu",
|
|
"lv",
|
|
"mg",
|
|
"mh",
|
|
"mi",
|
|
"mk",
|
|
"ml",
|
|
"mn",
|
|
"mr",
|
|
"ms",
|
|
"mt",
|
|
"my",
|
|
"na",
|
|
"nb",
|
|
"nd",
|
|
"ne",
|
|
"ng",
|
|
"nl",
|
|
"nn",
|
|
"no",
|
|
"nr",
|
|
"nv",
|
|
"ny",
|
|
"oc",
|
|
"oj",
|
|
"om",
|
|
"or",
|
|
"os",
|
|
"pa",
|
|
"pi",
|
|
"pl",
|
|
"ps",
|
|
"pt",
|
|
"qu",
|
|
"rm",
|
|
"rn",
|
|
"ro",
|
|
"ru",
|
|
"rw",
|
|
"sa",
|
|
"sc",
|
|
"sd",
|
|
"se",
|
|
"sg",
|
|
"sh",
|
|
"si",
|
|
"sk",
|
|
"sl",
|
|
"sm",
|
|
"sn",
|
|
"so",
|
|
"sq",
|
|
"sr",
|
|
"ss",
|
|
"st",
|
|
"su",
|
|
"sv",
|
|
"sw",
|
|
"ta",
|
|
"te",
|
|
"tg",
|
|
"th",
|
|
"ti",
|
|
"tk",
|
|
"tl",
|
|
"tn",
|
|
"to",
|
|
"tr",
|
|
"ts",
|
|
"tt",
|
|
"tw",
|
|
"ty",
|
|
"ug",
|
|
"uk",
|
|
"ur",
|
|
"uz",
|
|
"ve",
|
|
"vi",
|
|
"vo",
|
|
"wa",
|
|
"wo",
|
|
"xh",
|
|
"yi",
|
|
"yo",
|
|
"za",
|
|
"zh",
|
|
"zu"
|
|
],
|
|
"title": "HumanLanguageLabel",
|
|
"type": "string"
|
|
},
|
|
"ImageRef": {
|
|
"description": "ImageRef.",
|
|
"properties": {
|
|
"mimetype": {
|
|
"title": "Mimetype",
|
|
"type": "string"
|
|
},
|
|
"dpi": {
|
|
"title": "Dpi",
|
|
"type": "integer"
|
|
},
|
|
"size": {
|
|
"$ref": "#/$defs/Size"
|
|
},
|
|
"uri": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"title": "Uri"
|
|
}
|
|
},
|
|
"required": [
|
|
"mimetype",
|
|
"dpi",
|
|
"size",
|
|
"uri"
|
|
],
|
|
"title": "ImageRef",
|
|
"type": "object"
|
|
},
|
|
"InlineGroup": {
|
|
"additionalProperties": false,
|
|
"description": "InlineGroup.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"name": {
|
|
"default": "group",
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"const": "inline",
|
|
"default": "inline",
|
|
"title": "Label",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "InlineGroup",
|
|
"type": "object"
|
|
},
|
|
"KeyValueItem": {
|
|
"additionalProperties": false,
|
|
"description": "KeyValueItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/FloatingMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "key_value_region",
|
|
"default": "key_value_region",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"captions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Captions",
|
|
"type": "array"
|
|
},
|
|
"references": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "References",
|
|
"type": "array"
|
|
},
|
|
"footnotes": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Footnotes",
|
|
"type": "array"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"graph": {
|
|
"$ref": "#/$defs/GraphData"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"graph"
|
|
],
|
|
"title": "KeyValueItem",
|
|
"type": "object"
|
|
},
|
|
"KeywordsMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Container for a list of unique keywords / keyphrases.",
|
|
"properties": {
|
|
"values": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1,
|
|
"title": "Values",
|
|
"type": "array",
|
|
"uniqueItems": true
|
|
}
|
|
},
|
|
"required": [
|
|
"values"
|
|
],
|
|
"title": "KeywordsMetaField",
|
|
"type": "object"
|
|
},
|
|
"LanguageMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Detected human language.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"code": {
|
|
"$ref": "#/$defs/HumanLanguageLabel"
|
|
}
|
|
},
|
|
"required": [
|
|
"code"
|
|
],
|
|
"title": "LanguageMetaField",
|
|
"type": "object"
|
|
},
|
|
"ListGroup": {
|
|
"additionalProperties": false,
|
|
"description": "ListGroup.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"name": {
|
|
"default": "group",
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"const": "list",
|
|
"default": "list",
|
|
"title": "Label",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "ListGroup",
|
|
"type": "object"
|
|
},
|
|
"ListItem": {
|
|
"additionalProperties": false,
|
|
"description": "SectionItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "list_item",
|
|
"default": "list_item",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
},
|
|
"enumerated": {
|
|
"default": false,
|
|
"title": "Enumerated",
|
|
"type": "boolean"
|
|
},
|
|
"marker": {
|
|
"default": "-",
|
|
"title": "Marker",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "ListItem",
|
|
"type": "object"
|
|
},
|
|
"MiscAnnotation": {
|
|
"description": "MiscAnnotation.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "misc",
|
|
"default": "misc",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"additionalProperties": true,
|
|
"title": "Content",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"content"
|
|
],
|
|
"title": "MiscAnnotation",
|
|
"type": "object"
|
|
},
|
|
"MoleculeMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Molecule metadata field.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"smi": {
|
|
"description": "The SMILES representation of the molecule.",
|
|
"title": "Smi",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"smi"
|
|
],
|
|
"title": "MoleculeMetaField",
|
|
"type": "object"
|
|
},
|
|
"Orientation": {
|
|
"description": "Counter-clockwise rotation of a table on the page, in degrees.\n\nFollows the convention used by PIL/Pillow's ``Image.rotate``: positive\nangles rotate the table counter-clockwise. ``ROT_0`` / ``ROT_180`` keep\nrows running horizontally on the page; ``ROT_90`` / ``ROT_270`` turn\nrows into vertical stripes.",
|
|
"enum": [
|
|
"rot_0",
|
|
"rot_90",
|
|
"rot_180",
|
|
"rot_270"
|
|
],
|
|
"title": "Orientation",
|
|
"type": "string"
|
|
},
|
|
"PageItem": {
|
|
"description": "PageItem.",
|
|
"properties": {
|
|
"size": {
|
|
"$ref": "#/$defs/Size"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"page_no": {
|
|
"title": "Page No",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"size",
|
|
"page_no"
|
|
],
|
|
"title": "PageItem",
|
|
"type": "object"
|
|
},
|
|
"PictureBarChartData": {
|
|
"description": "Represents data of a bar chart.\n\nAttributes:\n kind (Literal[\"bar_chart_data\"]): The type of the chart.\n x_axis_label (str): The label for the x-axis.\n y_axis_label (str): The label for the y-axis.\n bars (list[ChartBar]): A list of bars in the chart.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "bar_chart_data",
|
|
"default": "bar_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"x_axis_label": {
|
|
"title": "X Axis Label",
|
|
"type": "string"
|
|
},
|
|
"y_axis_label": {
|
|
"title": "Y Axis Label",
|
|
"type": "string"
|
|
},
|
|
"bars": {
|
|
"items": {
|
|
"$ref": "#/$defs/ChartBar"
|
|
},
|
|
"title": "Bars",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"x_axis_label",
|
|
"y_axis_label",
|
|
"bars"
|
|
],
|
|
"title": "PictureBarChartData",
|
|
"type": "object"
|
|
},
|
|
"PictureClassificationClass": {
|
|
"description": "PictureClassificationData.",
|
|
"properties": {
|
|
"class_name": {
|
|
"title": "Class Name",
|
|
"type": "string"
|
|
},
|
|
"confidence": {
|
|
"title": "Confidence",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"class_name",
|
|
"confidence"
|
|
],
|
|
"title": "PictureClassificationClass",
|
|
"type": "object"
|
|
},
|
|
"PictureClassificationData": {
|
|
"description": "PictureClassificationData.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "classification",
|
|
"default": "classification",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"provenance": {
|
|
"title": "Provenance",
|
|
"type": "string"
|
|
},
|
|
"predicted_classes": {
|
|
"items": {
|
|
"$ref": "#/$defs/PictureClassificationClass"
|
|
},
|
|
"title": "Predicted Classes",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"provenance",
|
|
"predicted_classes"
|
|
],
|
|
"title": "PictureClassificationData",
|
|
"type": "object"
|
|
},
|
|
"PictureClassificationMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Picture classification metadata field.",
|
|
"properties": {
|
|
"predictions": {
|
|
"items": {
|
|
"$ref": "#/$defs/PictureClassificationPrediction"
|
|
},
|
|
"minItems": 1,
|
|
"title": "Predictions",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"title": "PictureClassificationMetaField",
|
|
"type": "object"
|
|
},
|
|
"PictureClassificationPrediction": {
|
|
"additionalProperties": true,
|
|
"description": "Picture classification instance.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"class_name": {
|
|
"title": "Class Name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class_name"
|
|
],
|
|
"title": "PictureClassificationPrediction",
|
|
"type": "object"
|
|
},
|
|
"PictureItem": {
|
|
"additionalProperties": false,
|
|
"description": "PictureItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/PictureMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"default": "picture",
|
|
"enum": [
|
|
"picture",
|
|
"chart"
|
|
],
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"captions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Captions",
|
|
"type": "array"
|
|
},
|
|
"references": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "References",
|
|
"type": "array"
|
|
},
|
|
"footnotes": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Footnotes",
|
|
"type": "array"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"annotations": {
|
|
"default": [],
|
|
"deprecated": true,
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"bar_chart_data": "#/$defs/PictureBarChartData",
|
|
"classification": "#/$defs/PictureClassificationData",
|
|
"description": "#/$defs/DescriptionAnnotation",
|
|
"line_chart_data": "#/$defs/PictureLineChartData",
|
|
"misc": "#/$defs/MiscAnnotation",
|
|
"molecule_data": "#/$defs/PictureMoleculeData",
|
|
"pie_chart_data": "#/$defs/PicturePieChartData",
|
|
"scatter_chart_data": "#/$defs/PictureScatterChartData",
|
|
"stacked_bar_chart_data": "#/$defs/PictureStackedBarChartData",
|
|
"tabular_chart_data": "#/$defs/PictureTabularChartData"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/DescriptionAnnotation"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/MiscAnnotation"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureClassificationData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureMoleculeData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureTabularChartData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureLineChartData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureBarChartData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureStackedBarChartData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PicturePieChartData"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/PictureScatterChartData"
|
|
}
|
|
]
|
|
},
|
|
"title": "Annotations",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref"
|
|
],
|
|
"title": "PictureItem",
|
|
"type": "object"
|
|
},
|
|
"PictureLineChartData": {
|
|
"description": "Represents data of a line chart.\n\nAttributes:\n kind (Literal[\"line_chart_data\"]): The type of the chart.\n x_axis_label (str): The label for the x-axis.\n y_axis_label (str): The label for the y-axis.\n lines (list[ChartLine]): A list of lines in the chart.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "line_chart_data",
|
|
"default": "line_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"x_axis_label": {
|
|
"title": "X Axis Label",
|
|
"type": "string"
|
|
},
|
|
"y_axis_label": {
|
|
"title": "Y Axis Label",
|
|
"type": "string"
|
|
},
|
|
"lines": {
|
|
"items": {
|
|
"$ref": "#/$defs/ChartLine"
|
|
},
|
|
"title": "Lines",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"x_axis_label",
|
|
"y_axis_label",
|
|
"lines"
|
|
],
|
|
"title": "PictureLineChartData",
|
|
"type": "object"
|
|
},
|
|
"PictureMeta": {
|
|
"additionalProperties": true,
|
|
"description": "Metadata model for pictures.",
|
|
"properties": {
|
|
"summary": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/SummaryMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "A condensed natural-language summary of the content rooted at this node.",
|
|
"examples": [
|
|
{
|
|
"text": "A short company/location statement."
|
|
}
|
|
]
|
|
},
|
|
"language": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/LanguageMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The detected human language of the node content, expressed as a BCP 47 code.",
|
|
"examples": [
|
|
{
|
|
"code": "en"
|
|
}
|
|
]
|
|
},
|
|
"entities": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/EntitiesMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Named entities extracted from the node text (persons, organisations, locations, etc.). Each mention carries the entity text, an optional type label, and an optional character span.",
|
|
"examples": [
|
|
{
|
|
"mentions": [
|
|
{
|
|
"charspan": [
|
|
0,
|
|
3
|
|
],
|
|
"label": "ORG",
|
|
"text": "IBM"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"keywords": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/KeywordsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Salient terms or short keyphrases that characterise the node content. Keywords are more specific than topics and typically correspond to individual words or short multi-word expressions found in or closely related to the text. Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"transformer",
|
|
"attention mechanism",
|
|
"BERT"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"topics": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/TopicsMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "Higher-level subject categories or thematic labels inferred for the node content. Topics are broader than keywords and describe the domain or theme rather than specific terms (e.g., 'machine learning' rather than 'gradient descent'). Values are order-preserving and deduplicated.",
|
|
"examples": [
|
|
{
|
|
"values": [
|
|
"natural language processing",
|
|
"computer vision"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/DescriptionMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"classification": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/PictureClassificationMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"molecule": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/MoleculeMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"tabular_chart": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/TabularChartMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"code": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/CodeMetaField"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
}
|
|
},
|
|
"title": "PictureMeta",
|
|
"type": "object"
|
|
},
|
|
"PictureMoleculeData": {
|
|
"description": "PictureMoleculeData.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "molecule_data",
|
|
"default": "molecule_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"smi": {
|
|
"title": "Smi",
|
|
"type": "string"
|
|
},
|
|
"confidence": {
|
|
"title": "Confidence",
|
|
"type": "number"
|
|
},
|
|
"class_name": {
|
|
"title": "Class Name",
|
|
"type": "string"
|
|
},
|
|
"segmentation": {
|
|
"items": {
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
"title": "Segmentation",
|
|
"type": "array"
|
|
},
|
|
"provenance": {
|
|
"title": "Provenance",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"smi",
|
|
"confidence",
|
|
"class_name",
|
|
"segmentation",
|
|
"provenance"
|
|
],
|
|
"title": "PictureMoleculeData",
|
|
"type": "object"
|
|
},
|
|
"PicturePieChartData": {
|
|
"description": "Represents data of a pie chart.\n\nAttributes:\n kind (Literal[\"pie_chart_data\"]): The type of the chart.\n slices (list[ChartSlice]): A list of slices in the pie chart.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "pie_chart_data",
|
|
"default": "pie_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"slices": {
|
|
"items": {
|
|
"$ref": "#/$defs/ChartSlice"
|
|
},
|
|
"title": "Slices",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"slices"
|
|
],
|
|
"title": "PicturePieChartData",
|
|
"type": "object"
|
|
},
|
|
"PictureScatterChartData": {
|
|
"description": "Represents data of a scatter chart.\n\nAttributes:\n kind (Literal[\"scatter_chart_data\"]): The type of the chart.\n x_axis_label (str): The label for the x-axis.\n y_axis_label (str): The label for the y-axis.\n points (list[ChartPoint]): A list of points in the scatter chart.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "scatter_chart_data",
|
|
"default": "scatter_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"x_axis_label": {
|
|
"title": "X Axis Label",
|
|
"type": "string"
|
|
},
|
|
"y_axis_label": {
|
|
"title": "Y Axis Label",
|
|
"type": "string"
|
|
},
|
|
"points": {
|
|
"items": {
|
|
"$ref": "#/$defs/ChartPoint"
|
|
},
|
|
"title": "Points",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"x_axis_label",
|
|
"y_axis_label",
|
|
"points"
|
|
],
|
|
"title": "PictureScatterChartData",
|
|
"type": "object"
|
|
},
|
|
"PictureStackedBarChartData": {
|
|
"description": "Represents data of a stacked bar chart.\n\nAttributes:\n kind (Literal[\"stacked_bar_chart_data\"]): The type of the chart.\n x_axis_label (str): The label for the x-axis.\n y_axis_label (str): The label for the y-axis.\n stacked_bars (list[ChartStackedBar]): A list of stacked bars in the chart.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "stacked_bar_chart_data",
|
|
"default": "stacked_bar_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"x_axis_label": {
|
|
"title": "X Axis Label",
|
|
"type": "string"
|
|
},
|
|
"y_axis_label": {
|
|
"title": "Y Axis Label",
|
|
"type": "string"
|
|
},
|
|
"stacked_bars": {
|
|
"items": {
|
|
"$ref": "#/$defs/ChartStackedBar"
|
|
},
|
|
"title": "Stacked Bars",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"x_axis_label",
|
|
"y_axis_label",
|
|
"stacked_bars"
|
|
],
|
|
"title": "PictureStackedBarChartData",
|
|
"type": "object"
|
|
},
|
|
"PictureTabularChartData": {
|
|
"description": "Base class for picture chart data.\n\nAttributes:\n title (str): The title of the chart.\n chart_data (TableData): Chart data in the table format.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "tabular_chart_data",
|
|
"default": "tabular_chart_data",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"chart_data": {
|
|
"$ref": "#/$defs/TableData"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"chart_data"
|
|
],
|
|
"title": "PictureTabularChartData",
|
|
"type": "object"
|
|
},
|
|
"ProvenanceItem": {
|
|
"description": "Provenance information for elements extracted from a textual document.\n\nA `ProvenanceItem` object acts as a lightweight pointer back into the original\ndocument for an extracted element. It applies to documents with an explicit\nor implicit layout, such as PDF, HTML, docx, or pptx.",
|
|
"properties": {
|
|
"page_no": {
|
|
"description": "Page number",
|
|
"title": "Page No",
|
|
"type": "integer"
|
|
},
|
|
"bbox": {
|
|
"$ref": "#/$defs/BoundingBox",
|
|
"description": "Bounding box"
|
|
},
|
|
"charspan": {
|
|
"description": "Character span (0-indexed)",
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"title": "Charspan",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"page_no",
|
|
"bbox",
|
|
"charspan"
|
|
],
|
|
"title": "ProvenanceItem",
|
|
"type": "object"
|
|
},
|
|
"RefItem": {
|
|
"description": "RefItem.",
|
|
"properties": {
|
|
"$ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "$Ref",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"$ref"
|
|
],
|
|
"title": "RefItem",
|
|
"type": "object"
|
|
},
|
|
"RichTableCell": {
|
|
"description": "RichTableCell.",
|
|
"properties": {
|
|
"bbox": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BoundingBox"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"row_span": {
|
|
"default": 1,
|
|
"title": "Row Span",
|
|
"type": "integer"
|
|
},
|
|
"col_span": {
|
|
"default": 1,
|
|
"title": "Col Span",
|
|
"type": "integer"
|
|
},
|
|
"start_row_offset_idx": {
|
|
"title": "Start Row Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"end_row_offset_idx": {
|
|
"title": "End Row Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"start_col_offset_idx": {
|
|
"title": "Start Col Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"end_col_offset_idx": {
|
|
"title": "End Col Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"column_header": {
|
|
"default": false,
|
|
"title": "Column Header",
|
|
"type": "boolean"
|
|
},
|
|
"row_header": {
|
|
"default": false,
|
|
"title": "Row Header",
|
|
"type": "boolean"
|
|
},
|
|
"row_section": {
|
|
"default": false,
|
|
"title": "Row Section",
|
|
"type": "boolean"
|
|
},
|
|
"fillable": {
|
|
"default": false,
|
|
"title": "Fillable",
|
|
"type": "boolean"
|
|
},
|
|
"ref": {
|
|
"$ref": "#/$defs/RefItem"
|
|
}
|
|
},
|
|
"required": [
|
|
"start_row_offset_idx",
|
|
"end_row_offset_idx",
|
|
"start_col_offset_idx",
|
|
"end_col_offset_idx",
|
|
"text",
|
|
"ref"
|
|
],
|
|
"title": "RichTableCell",
|
|
"type": "object"
|
|
},
|
|
"Script": {
|
|
"description": "Text script position.",
|
|
"enum": [
|
|
"baseline",
|
|
"sub",
|
|
"super"
|
|
],
|
|
"title": "Script",
|
|
"type": "string"
|
|
},
|
|
"SectionHeaderItem": {
|
|
"additionalProperties": false,
|
|
"description": "SectionItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "section_header",
|
|
"default": "section_header",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"maximum": 100,
|
|
"minimum": 1,
|
|
"title": "Level",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "SectionHeaderItem",
|
|
"type": "object"
|
|
},
|
|
"Size": {
|
|
"description": "Size.",
|
|
"properties": {
|
|
"width": {
|
|
"default": 0.0,
|
|
"title": "Width",
|
|
"type": "number"
|
|
},
|
|
"height": {
|
|
"default": 0.0,
|
|
"title": "Height",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"title": "Size",
|
|
"type": "object"
|
|
},
|
|
"SummaryMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Summary data.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"title": "SummaryMetaField",
|
|
"type": "object"
|
|
},
|
|
"TableCell": {
|
|
"description": "TableCell.",
|
|
"properties": {
|
|
"bbox": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BoundingBox"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"row_span": {
|
|
"default": 1,
|
|
"title": "Row Span",
|
|
"type": "integer"
|
|
},
|
|
"col_span": {
|
|
"default": 1,
|
|
"title": "Col Span",
|
|
"type": "integer"
|
|
},
|
|
"start_row_offset_idx": {
|
|
"title": "Start Row Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"end_row_offset_idx": {
|
|
"title": "End Row Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"start_col_offset_idx": {
|
|
"title": "Start Col Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"end_col_offset_idx": {
|
|
"title": "End Col Offset Idx",
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"column_header": {
|
|
"default": false,
|
|
"title": "Column Header",
|
|
"type": "boolean"
|
|
},
|
|
"row_header": {
|
|
"default": false,
|
|
"title": "Row Header",
|
|
"type": "boolean"
|
|
},
|
|
"row_section": {
|
|
"default": false,
|
|
"title": "Row Section",
|
|
"type": "boolean"
|
|
},
|
|
"fillable": {
|
|
"default": false,
|
|
"title": "Fillable",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"start_row_offset_idx",
|
|
"end_row_offset_idx",
|
|
"start_col_offset_idx",
|
|
"end_col_offset_idx",
|
|
"text"
|
|
],
|
|
"title": "TableCell",
|
|
"type": "object"
|
|
},
|
|
"TableData": {
|
|
"description": "BaseTableData.",
|
|
"properties": {
|
|
"table_cells": {
|
|
"default": [],
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RichTableCell"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/TableCell"
|
|
}
|
|
]
|
|
},
|
|
"title": "Table Cells",
|
|
"type": "array"
|
|
},
|
|
"num_rows": {
|
|
"default": 0,
|
|
"title": "Num Rows",
|
|
"type": "integer"
|
|
},
|
|
"num_cols": {
|
|
"default": 0,
|
|
"title": "Num Cols",
|
|
"type": "integer"
|
|
},
|
|
"orientation": {
|
|
"$ref": "#/$defs/Orientation",
|
|
"default": "rot_0"
|
|
}
|
|
},
|
|
"title": "TableData",
|
|
"type": "object"
|
|
},
|
|
"TableItem": {
|
|
"additionalProperties": false,
|
|
"description": "TableItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/FloatingMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"default": "table",
|
|
"enum": [
|
|
"document_index",
|
|
"table"
|
|
],
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"captions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Captions",
|
|
"type": "array"
|
|
},
|
|
"references": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "References",
|
|
"type": "array"
|
|
},
|
|
"footnotes": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Footnotes",
|
|
"type": "array"
|
|
},
|
|
"image": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ImageRef"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"data": {
|
|
"$ref": "#/$defs/TableData"
|
|
},
|
|
"annotations": {
|
|
"default": [],
|
|
"deprecated": true,
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"description": "#/$defs/DescriptionAnnotation",
|
|
"misc": "#/$defs/MiscAnnotation"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/DescriptionAnnotation"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/MiscAnnotation"
|
|
}
|
|
]
|
|
},
|
|
"title": "Annotations",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"data"
|
|
],
|
|
"title": "TableItem",
|
|
"type": "object"
|
|
},
|
|
"TabularChartMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Tabular chart metadata field.",
|
|
"properties": {
|
|
"confidence": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 1,
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The confidence of the prediction.",
|
|
"examples": [
|
|
0.9,
|
|
0.42
|
|
],
|
|
"title": "Confidence"
|
|
},
|
|
"created_by": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The origin of the prediction.",
|
|
"examples": [
|
|
"ibm-granite/granite-docling-258M"
|
|
],
|
|
"title": "Created By"
|
|
},
|
|
"title": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Title"
|
|
},
|
|
"chart_data": {
|
|
"$ref": "#/$defs/TableData"
|
|
}
|
|
},
|
|
"required": [
|
|
"chart_data"
|
|
],
|
|
"title": "TabularChartMetaField",
|
|
"type": "object"
|
|
},
|
|
"TextItem": {
|
|
"additionalProperties": false,
|
|
"description": "TextItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"enum": [
|
|
"caption",
|
|
"checkbox_selected",
|
|
"checkbox_unselected",
|
|
"footnote",
|
|
"page_footer",
|
|
"page_header",
|
|
"paragraph",
|
|
"reference",
|
|
"text",
|
|
"empty_value",
|
|
"field_key",
|
|
"field_hint",
|
|
"marker",
|
|
"handwritten_text"
|
|
],
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"label",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "TextItem",
|
|
"type": "object"
|
|
},
|
|
"TitleItem": {
|
|
"additionalProperties": false,
|
|
"description": "TitleItem.",
|
|
"properties": {
|
|
"self_ref": {
|
|
"pattern": "^#(?:/([\\w-]+)(?:/(\\d+))?)?$",
|
|
"title": "Self Ref",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"children": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/RefItem"
|
|
},
|
|
"title": "Children",
|
|
"type": "array"
|
|
},
|
|
"content_layer": {
|
|
"$ref": "#/$defs/ContentLayer",
|
|
"default": "body"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/BaseMeta"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"label": {
|
|
"const": "title",
|
|
"default": "title",
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"prov": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/ProvenanceItem"
|
|
},
|
|
"title": "Prov",
|
|
"type": "array"
|
|
},
|
|
"source": {
|
|
"default": [],
|
|
"description": "The provenance of this document item. Currently, it is only used for media track provenance.",
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"track": "#/$defs/TrackSource"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/$defs/TrackSource"
|
|
}
|
|
]
|
|
},
|
|
"title": "Source",
|
|
"type": "array"
|
|
},
|
|
"comments": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FineRef"
|
|
},
|
|
"title": "Comments",
|
|
"type": "array"
|
|
},
|
|
"orig": {
|
|
"title": "Orig",
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"formatting": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/Formatting"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"hyperlink": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uri",
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"format": "path",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Hyperlink"
|
|
}
|
|
},
|
|
"required": [
|
|
"self_ref",
|
|
"orig",
|
|
"text"
|
|
],
|
|
"title": "TitleItem",
|
|
"type": "object"
|
|
},
|
|
"TopicsMetaField": {
|
|
"additionalProperties": true,
|
|
"description": "Container for a list of unique topics / subjects.",
|
|
"properties": {
|
|
"values": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1,
|
|
"title": "Values",
|
|
"type": "array",
|
|
"uniqueItems": true
|
|
}
|
|
},
|
|
"required": [
|
|
"values"
|
|
],
|
|
"title": "TopicsMetaField",
|
|
"type": "object"
|
|
},
|
|
"TrackSource": {
|
|
"description": "Source metadata for a cue extracted from a media track.\n\nA `TrackSource` instance identifies a cue in a media track (audio, video, subtitles, screen-recording captions,\netc.). A *cue* here refers to any discrete segment that was pulled out of the original asset, e.g., a subtitle\nblock, an audio clip, or a timed marker in a screen-recording.",
|
|
"properties": {
|
|
"kind": {
|
|
"const": "track",
|
|
"default": "track",
|
|
"description": "Identifies this type of source.",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"start_time": {
|
|
"description": "Start time offset of the track cue in seconds",
|
|
"examples": [
|
|
11.0,
|
|
6.5,
|
|
5370.0
|
|
],
|
|
"title": "Start Time",
|
|
"type": "number"
|
|
},
|
|
"end_time": {
|
|
"description": "End time offset of the track cue in seconds",
|
|
"examples": [
|
|
12.0,
|
|
8.2,
|
|
5370.1
|
|
],
|
|
"title": "End Time",
|
|
"type": "number"
|
|
},
|
|
"identifier": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "An identifier of the cue",
|
|
"examples": [
|
|
"test",
|
|
"123",
|
|
"b72d946"
|
|
],
|
|
"title": "Identifier"
|
|
},
|
|
"voice": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"description": "The name of the voice in this track (the speaker)",
|
|
"examples": [
|
|
"John",
|
|
"Mary",
|
|
"Speaker 1"
|
|
],
|
|
"title": "Voice"
|
|
}
|
|
},
|
|
"required": [
|
|
"start_time",
|
|
"end_time"
|
|
],
|
|
"title": "TrackSource",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"description": "DoclingDocument.",
|
|
"properties": {
|
|
"schema_name": {
|
|
"const": "DoclingDocument",
|
|
"default": "DoclingDocument",
|
|
"title": "Schema Name",
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"default": "1.11.0",
|
|
"pattern": "^(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)\\.(?P<patch>0|[1-9]\\d*)(?:-(?P<prerelease>(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
|
|
"title": "Version",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"origin": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/DocumentOrigin"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"furniture": {
|
|
"$ref": "#/$defs/GroupItem",
|
|
"default": {
|
|
"self_ref": "#/furniture",
|
|
"parent": null,
|
|
"children": [],
|
|
"content_layer": "furniture",
|
|
"meta": null,
|
|
"name": "_root_",
|
|
"label": "unspecified"
|
|
},
|
|
"deprecated": true
|
|
},
|
|
"body": {
|
|
"$ref": "#/$defs/GroupItem",
|
|
"default": {
|
|
"self_ref": "#/body",
|
|
"parent": null,
|
|
"children": [],
|
|
"content_layer": "body",
|
|
"meta": null,
|
|
"name": "_root_",
|
|
"label": "unspecified"
|
|
}
|
|
},
|
|
"groups": {
|
|
"default": [],
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/ListGroup"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/InlineGroup"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/GroupItem"
|
|
}
|
|
]
|
|
},
|
|
"title": "Groups",
|
|
"type": "array"
|
|
},
|
|
"texts": {
|
|
"default": [],
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/TitleItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/SectionHeaderItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/ListItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/CodeItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/FormulaItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/FieldHeadingItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/FieldValueItem"
|
|
},
|
|
{
|
|
"$ref": "#/$defs/TextItem"
|
|
}
|
|
]
|
|
},
|
|
"title": "Texts",
|
|
"type": "array"
|
|
},
|
|
"pictures": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/PictureItem"
|
|
},
|
|
"title": "Pictures",
|
|
"type": "array"
|
|
},
|
|
"tables": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/TableItem"
|
|
},
|
|
"title": "Tables",
|
|
"type": "array"
|
|
},
|
|
"key_value_items": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/KeyValueItem"
|
|
},
|
|
"title": "Key Value Items",
|
|
"type": "array"
|
|
},
|
|
"form_items": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FormItem"
|
|
},
|
|
"title": "Form Items",
|
|
"type": "array"
|
|
},
|
|
"field_regions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FieldRegionItem"
|
|
},
|
|
"title": "Field Regions",
|
|
"type": "array"
|
|
},
|
|
"field_items": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/FieldItem"
|
|
},
|
|
"title": "Field Items",
|
|
"type": "array"
|
|
},
|
|
"pages": {
|
|
"additionalProperties": {
|
|
"$ref": "#/$defs/PageItem"
|
|
},
|
|
"default": {},
|
|
"title": "Pages",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"title": "DoclingDocument",
|
|
"type": "object"
|
|
} |