Skip to content

Feat/instance accessor syntax paths#9

Closed
kervel wants to merge 27 commits intop2p-ld:mainfrom
Kapernikov:feat/instance-accessor-syntax-paths
Closed

Feat/instance accessor syntax paths#9
kervel wants to merge 27 commits intop2p-ld:mainfrom
Kapernikov:feat/instance-accessor-syntax-paths

Conversation

@kervel
Copy link
Collaborator

@kervel kervel commented Sep 14, 2025

an attempt to make paths in diff/patch algo compliant with the https://linkml.io/linkml-model/latest/docs/specification/02instances/ doc

Examples

  • Diff example (identifier-based):
    • Change: diagnosis.name in the first medical event of P:002
    • New delta path: ["objects","P:002","has_medical_history","0","diagnosis","name"]
  • Patch example (identifier-based add):
    • Path: ["objects","P:003"] with a new Person object as “new” value (allowed when selector does not match an existing element; behavior appends).
  • Turtle/Mapping (unchanged for paths):
    • Mapping keys remain addressed by key names (e.g., ["things","alpha"]).

kervel and others added 27 commits September 10, 2025 08:36
…gnates_type

Fix polymorphism when loading the contents of a multivalued inlined_as_dict slot
…ar slots; add test for null-valued collections
…patch(); expose node_id and trace in Python; adjust CLI and tests
…l PatchTrace; remove JSON roundtrip and ID reconciliation; preserve scalar node IDs on in-place updates
…tore network-based CLI tests; remove dead code
…ead of expect/panic; update tests, CLI, and Python bindings
Improve null handling and diff operations
…kMLValue::Null; add node_id to Null; handle Null in to_json, traversal, and parsing; resolve conflicts
…cting Null directly; handle Null in trace traversal
…ity coverage; revert CLI offline toggle and run tests with network
…h API takes treat_missing_as_null; CLI flag; Python equals/patch args; tests for equality and no-op semantics; preserve scalar node_ids
…} with defaults; make no-op skipping configurable; wire CLI --ignore-noop/--treat-missing-as-null; update Python patch signature; update tests
…e support [Identifier] selection; update tests accordingly
@kervel
Copy link
Collaborator Author

kervel commented Sep 24, 2025

image

@kervel kervel closed this Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant