-
Notifications
You must be signed in to change notification settings - Fork 0
Archive import drops standard IMDF relationship semantics #4
Copy link
Copy link
Open
Description
Summary
Archive import only interprets relationship features when they use a custom category="contains" + references[] format, and ignores standard IMDF relationship semantics.
Evidence
src/lib/imdf/archiveImport.ts:372explicitly filters relationships tocategory === "contains"andproperties.references.src/lib/imdf/archiveImport.ts:375assumesreferences[0]/references[1]parent-child shape.src/lib/imdf/archiveImport.ts:294-301parsesorigin_id/intermediary_id/destination_idfrom non-relationship collections, but relationship collection itself is not mapped into route relations.
Why this is a bug
IMDF relationship features carrying route/traversal semantics are silently dropped during import. This loses connectivity semantics and prevents faithful round-trip behavior.
Reproduction
- Import an IMDF archive containing relationship features with origin/intermediary/destination semantics.
- Check imported feature metadata and routing/containment state.
- Observe that those relationships are ignored unless they match the custom
contains + referencesshape.
Expected
- Parse relationship collection according to IMDF relationship properties.
- Preserve relationship semantics during import (not only containment overrides).
Impact
Import is lossy for real-world IMDF datasets and cannot preserve relationship intent.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels