Skip to content

fluree export emits reserved f:reifies* triples instead of RDF 1.2 annotation syntax #1859

Closed

Description

@aaj3f

fluree export writes edge annotations as raw f:reifies* triples — the reserved vocabulary that every normal write surface refuses. The export is therefore neither RDF 1.2 for another tool to read, nor something Fluree itself will accept back through insert / update / upsert.

Related: #1847, which is the same command failing to carry named graphs. Different mechanism, but they are plausibly one piece of work — "make export a faithful RDF 1.2 serialization".

Repro

A ledger with two claims on one edge, written with ordinary annotation syntax:

:alice :knows :bob
    ~ :claim1 {| :confidence 0.8 ; :source :sourceA |}
    ~ :claim2 {| :confidence 0.9 ; :source :sourceB |} .
$ fluree index v:main
$ fluree export v:main --format turtle
<http://example.org/claim1>
    <https://ns.flur.ee/db#reifiesSubject> <http://example.org/alice> ;
    <https://ns.flur.ee/db#reifiesPredicate> <http://example.org/knows> ;
    <https://ns.flur.ee/db#reifiesObject> <http://example.org/bob> ;
    <http://example.org/confidence> "0.8"^^<http://www.w3.org/2001/XMLSchema#decimal> ;
    <http://example.org/source> <http://example.org/sourceA> .

Five f:reifies* bundles in the output; zero Turtle-star annotation forms.

The part that makes it more than cosmetic

That output is refused by the write path that produced the data:

$ fluree insert -l rt:main --format turtle -e \
    '<…/claimX> f:reifiesSubject <…/alice> ; f:reifiesPredicate <…/knows> ; …'
error: Transaction error: Unsupported feature:
  'https://ns.flur.ee/db#reifiesSubject' is a system-controlled predicate;
  use the RDF 1.2 annotation syntax (`~ <reifier> {| ... |}` or `<< s p o >>`)
  instead of writing f:reifies* triples by hand

So Fluree exports a form Fluree will not let you write. create --from does accept it — bulk import is documented as an administrative bootstrap path permitted to ingest already-lowered bundles, and the round trip does restore both claims — but that is genesis-only, so the export cannot be replayed into an existing ledger, and it is not portable to any other RDF 1.2 consumer.

Suggested direction

Emit the annotation syntax the parsers already accept: ~ <reifier> {| … |} for Turtle/TriG, or <reifier> rdf:reifies <<( s p o )>> where a reifier-first form is preferred. N-Triples/N-Quads would need the triple-term spelling since they have no annotation sugar.

The reverse mapping already exists on the read side — the arena knows the EdgeKey ↔ annotation subject relation — so this is a serializer change rather than new bookkeeping.

Environment

main @ 3d89e8f, release build, macOS.

Activity

  1. added
    bug
    P2
    area:cli
    on Sep 16, 2026
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

    P2area:clibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions