Skip to content

transact: reification-aware f:reifiesGraph re-homing for COPY/MOVE/ADD #1467

Closed

Description

@aaj3f

Deferred from PR #1462 review (O5). Wave-3 shipped a fail-loud guard (commit 1cb3e8cb2) rejecting COPY/MOVE/ADD of any graph whose source carries f:reifies* flakes. This tracks removing that guard with proper support.

Root cause: whole-graph re-homing (fluree-db-transact/src/stage.rs, Transfer arm ~:1233) rewrites only the flake-level g, leaving the f:reifiesGraph OBJECT pointing at the source graph → EdgeKey::from_reifies_facts (fluree-db-core/src/edge.rs:422) returns GraphMismatch → both readers (hydration.rs:1676, indexer_attachment_provider.rs:334) silently continue, so edge annotations vanish after a COPY/MOVE (base triples survive). Confirmed by reading; symmetric across default↔named.

Fix: make the Transfer re-home reification-aware, then drop the guard — named→named: rewrite each f:reifiesGraph OBJECT to the dest graph Sid; named→default: DROP the f:reifiesGraph flake; default→named: ADD an f:reifiesGraph flake for the dest.

Acceptance: annotation-bearing COPY/MOVE/ADD succeeds; from_reifies_facts decodes cleanly on the dest (no GraphMismatch); round-trip tests (annotated edge → COPY/MOVE to named + default → query @annotation / SPARQL {| |} → survival) replace the Wave-3 rejection test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions