Repository navigation
Conversation
With the recent changes to the Java generator in LinkML-Py, EntityReference-typed slots are no longer automatically mapped to String - they are mapped to URI instead. We need to explicitly override that.
The SSSOM spec may (or not…) soon mark some slots as being propagatable while recommending against their condensation. We support this by making the `Propagatable` field annotation accept an optional boolean parameter (`condensationDiscouraged`). A slot marked with `Propagatable(condensationDiscouraged=true)` will always be propagated as any other propagatable slot, but by default will not be condensed.
Add a mechanism to mark slots whose condensation is to be discouraged directly within the SSSOM schema. Update the Java generator and the template accordingly to exploit that annotation when present.
As currently under discussion in the SSSOM spec, we mark the predicate_id and mapping_justification slots (as well as the predicate_label slot) as being propagatable but with the caveat that their condensation is discouraged.
Add a `setForceCondensation()` method to SSSOMWriter to allow client code to force the writer to condense all propagatable slots, even those that should not be condensed. The default behaviour remains not to condense those slots. Also expose that settings to the command line tool, in the form of a new option `--condense-all-slots`.
|
One source-level edge in this PR seems worth checking: the cached slot set depends on which operation runs first. At the pinned head's With a single helper reused at a fixed compatible version, the source appears to allow these two order-dependent outcomes:
The first sequence can use different mapping sets; the second can use the same set after the first operation. Keeping the version fixed matters because changing The new core propagation test sets forcing to false afterward, but does not then invoke condensation. The new forced-condensation test also begins with a fresh helper. Testing both operation orders on one helper would therefore exercise a different path from those existing cases. Caching the full eligible set and filtering per operation, or keeping separately keyed sets, seems worth considering. This is a source inspection and proposed regression check, not an executed Java reproducer. I have not run the Java/Maven suite. The writer's Affiliation: Bharath Healthcare / Pinnacle Blooms Network. Prepared with Codex assistance; the pinned code paths, existing tests, and limits were reviewed. |
There is an ongoing discussion in the SSSOM spec about making
predicate_idandmapping_justificationpropagatable.This PR supports them being propagatable but with the caveat that their condensation is strongly discouraged: they are always propagated when reading a set, but never condensed when writing, unless this is explicitly asked for.