Skip to content

r2rml: rr:graphMap support in the virtual query path (virtual/materialized parity) #1607

Open

Description

@bplatz

Origin: #1422 (review finding B4, engine half; the vocabulary half is #1581).

The materializer honors subject-map-level rr:graphMap/rr:graph — each row's triples land in a named graph derived from the row. The virtual query path never reads SubjectMap::graph_map, so for a mapping with a graph map, querying the graph source virtually returns everything in the default graph while the materialized twin scopes it per graph — the same query returns different results against the source and its twin.

This is pre-existing query-path behavior, not a regression from #1422; the divergence is documented in docs/graph-sources/iceberg.md (Assumptions and limitations). This issue closes it.

Scope

  • The R2RML query operator places produced triples in the graph derived from the subject map's graph map (default graph when absent), so GRAPH patterns behave identically against virtual and materialized views.
  • Full R2RML placement rules (predicate-object-map graph maps, repeatable rr:graphMap) per the spec — coordinate with feat(r2rml): refuse the graph-map constructs the materializer cannot honor #1581's vocabulary work.

Acceptance: a parity test — same mapping, same rows — where a graph-scoped query returns identical results from the virtual source and its twin.

Activity

  1. added
    enhancement
    on Aug 7, 2026
  2. added
    P2
    area:iceberg
    on Aug 25, 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:icebergenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions