Repository navigation
Conversation
…dd follow-up tests
ayushtkn
approved these changes
Nov 19, 2026
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.
Summary
Follow-up to #146 (
Ontology: Add annotations (e.g. for OWL import)):Enforce JSON-representable values in
annotations(validation/validate.py):ontology/ontology.jsontypesAnnotationsas an open object (additionalProperties: true) andontology/ontology.mdrequires values to be valid JSON, sojsonschemaalone would still accept PyYAML-parseddate,datetime,time, non-finite floats (.inf,.nan), or non-string mapping keys.validate_annotation_data(sharing container traversal via_walk_container_dictsand reusing_non_json_value_errors, mirroringvalidate_extension_datafornonportable_extensions[].data) and wired it intovalidate_document.Add unit tests for ontology
annotations(validation/tests/test_ontology.py):examples/foaf_owl_import.yamlviavalidate_document.annotationsat all four sites (root,concept,relationship, androle— noteRole.annotationswas not exercised byexamples/foaf_owl_import.yaml).annotationsat all four sites.annotations(includingcustom_properties) at all four sites.date,datetime,time,inf,nan) underannotationsat all four sites.Record Ontology: Add annotations (e.g. for OWL import) #146 in
docs/spec_changes.md:2026-11-19history row for Ontology: Add annotations (e.g. for OWL import) #146 soscripts/audit-spec-changes.pystays up to date.Related Issues
Follow-up to #146.
Checklist
Specification
core-spec/and follow the existing structure[DISCUSS]thread ondev@with a stated end date, and reach lazy consensus (or pass a[VOTE]) before mergedocs/spec_changes.mdrecords rationale, compatibility and migration impact, or the PR explains why no entry is neededOntology
ontology/are consistent with spec changesConverters
Validation
validation/are updated if the spec changedDocumentation
docs/is updated to reflect any user-facing changesCONTRIBUTING.mdis updated if the contribution process changedExamples
examples/are added or updated for any new spec constructsTests
pytest/ CI green)Compliance
NOTICEand/orLICENSEhave been updated per ASF policy