You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
r2rml: subject, predicate and object maps accept several value sources and silently pick one #1799
Discovered during the review of #1581, which added the exactly-one-value-source check for graph maps only; kept out of that PR to keep it scoped.
R2RML: a term map MUST be exactly one of constant-valued, column-valued, or template-valued. The extractor (fluree-db-r2rml/src/loader/extractor.rs) does not enforce this for subject, predicate, or object maps, so a mapping that states more than one is accepted and one source is chosen silently:
term map
what the extractor does
who picks
subject map
sets template, column, constant independently
materializer materialize_subject_from_batch: constant, then column, then template; the query path reads subject_map.template first (rewrite.rs, operator.rs)
predicate map
first match wins
extractor order: constant, template, column
object map
first match wins
extractor order: column, constant, template
The subject-map row is the one with teeth: with both rr:template and rr:column present, the materializer mints subjects from the column while the virtual path plans against the template, so the same mapping can yield different subjects on the two lanes. The other two are silent first-wins on a malformed mapping.
Activity