feat: NonVerbalEntity models — Figure, Table, Formula as dataset-level entities#57
Merged
Conversation
…level entities ISO 10241-1 §6.5 non-verbal representations are now first-class dataset-level entities, authored once and shared across concepts via stable ID. New Lutaml models: - NonVerbalEntity: abstract base (id, identifier, caption, description, alt, sources) - Figure extends NonVerbalEntity: images (FigureImage[]) + recursive subfigures - FigureImage: src, format, role, width, height, scale - Table extends NonVerbalEntity: content (localized) + format - Formula extends NonVerbalEntity: expression (localized) + notation New schemas: - schemas/v3/figure.yaml: JSON Schema for Figure entities - schemas/v3/examples/19-non-verbal-entities.yaml: example with figure (multi-variant, subfigures), table, formula Ontology additions (glossarist.ttl): - gloss:NonVerbalEntity, gloss:Figure, gloss:Table, gloss:Formula classes - gloss:FigureImage class - gloss:caption, gloss:altText, gloss:description (rdf:langString) - gloss:image, gloss:hasSubfigure (object properties) - gloss:src, gloss:format, gloss:role (datatype properties)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ISO 10241-1 §6.5 non-verbal representations as first-class dataset-level entities.
New Lutaml models
NonVerbalEntity: abstract base (id, identifier, caption, description, alt, sources)Figure extends NonVerbalEntity: images + recursive subfiguresFigureImage: src, format, role, width, height, scaleTable extends NonVerbalEntity: content + formatFormula extends NonVerbalEntity: expression + notationNew schemas
schemas/v3/figure.yaml: JSON Schema for Figure entitiesschemas/v3/examples/19-non-verbal-entities.yaml: example with figure (multi-variant, subfigures), table, formulaOntology additions
Design
Authored once at
figures/,tables/,formulas/directories and shared across concepts via stable ID. Concept-owned inline form (NonVerbRep) coexists with localized caption/description for accessibility.Authoritative implementation in glossarist-ruby:
lib/glossarist/non_verbal_entity.rb