Repository navigation
Description
#2017 (RDF 1.2 triple terms) is on next, and #2009 and #2010 touch the same code on main. (next's Oct 11 merge of main already took #2006's Grouped arm and #2008's TemplateSink triple-term support.) A clean git merge-tree won't surface all of it: several items below merge without a conflict marker and then fail to compile, and one compiles and returns wrong answers with no error. So whoever runs the first main → next merge after each of these lands should work through its list. It's blocked until they're on main. The detail is in each PR's own next notes, written against an earlier next (0163f7840), so re-read the call sites against the tree being merged rather than trusting line numbers.
-
fluree-graph-json-ld/src/expand.rs: take fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's side, and addnext's object-valued@idarm (a triple term) inexpand_node_entries's@idbranch, after thenestedrefusal. - The parse dispatch: run
refuse_annotations_under_a_variable_graphbeforenext'sfold_slots_into_links, both on the annotated document; in the other order the refusal finds no slot and passes vacuously. Keep fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009'sparse_data/parse_updatewithledger_id,refuse_query_only_optsandread_body_constraints. - The selector-form delete's WHERE needs both sides:
next's@reifiesedge form and fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's node-level"@graph": <name>, resolved as the delete template's name is. Either side alone binds nothing, and the delete becomes a silent no-op. - In both annotation walkers, under
Direction::Reverse, refuse a valuetriple_term_shapeclassifies as a triple term, beforeensure_subject_idand before theDirectionmatch, with one message for both. UnderDirection::Forward, keepnext's order (a value object, then a triple term, thenensure_subject_id). Foldnext'spredicate == rdf:reifiestest into fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's system-predicate refusal. These merge without a marker. -
@reifiesarray blocks 2..n go into the reifier node's@includedthroughinclude_nodes, not intonext'sctx.siblingswith the raw@graph; fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 removes both, and bringing them back misplaces those blocks under graph sugar, an update'sgraphkey or a named-graph object. - Drop
next's anchor branch (f:reifiesGraphand an@graphselector on the annotation map) and itsstage.rsstrip of the anchor; fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 places the bundle in its edge subject's@includedand emits the graph throughGraphScope::emit. Re-check the variable-graph refusal afterwards. -
TemplateSink:nextnow writesrdf:reifieslinks there. If fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 routesTemplateSinkthroughGraphScope::emit(it lands after fix(transact): retractions name stored facts; RDF text is parsed once #2008), keepnext's triple-term link writing on that path. -
fluree-db-cli/src/commands/info.rs: keep both,next's link-reindex warning and fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's config diagnostics. - Rewrite on
next:annotation_bundles_land_beside_their_edgesand the two anchor tests. fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's three annotation-delete integration tests are meaningful unchanged.
-
same_term/same_term_inreplace RDF 1.2 triple terms: rdf:reifies links, triple terms as values, faster annotation queries #2017'sbind_unifiesatbind.rs,operator/inline.rsandterm_components.rs(the last is outside every conflict). Propagatesame_term_in's error with?; don'tunwrap_or(false)it. -
for_each_object_probe_matchtakes the object type. The join passesself.batched_object_o_type, and OPTIONAL passesOType::IRI_REF.as_u16(). This is the one that compiles and returns wrong answers if it's missed: on an earlier trial merge, 7 of RDF 1.2 triple terms: rdf:reifies links, triple terms as values, faster annotation queries #2017's then-43 triple-term tests returned empty or short results, with no error. - The
TripleTermarmnextadds toencoded_equivalentreadsdicts.store. - OPTIONAL's lane calls
ObjectProbeOps::new(ops, OType::IRI_REF.as_u16()). -
independent_scan_eligibledrops itsunify_instructionscheck (always true; fix(query): compare terms by what they are, not how they're encoded #2010 removes them). -
temporal_mode.rs: keep fix(query): compare terms by what they are, not how they're encoded #2010'sone_graphandspans_ledgersnext to RDF 1.2 triple terms: rdf:reifies links, triple terms as values, faster annotation queries #2017'sdefault_graph_union, in the struct and both constructors.binary_index_store.rs: keep both.annotation_edge_probe.rs: takenext's deletion, and check thatnext's replacement lanes don't bring back a copy of the persisted-then-novelty subject lookup (a new one should go throughTermDicts).
Checks at the merge:
-
grp_triple_terms, all of it (the only suite that sees fix(query): compare terms by what they are, not how they're encoded #2010's object-type item), andit_edge_annotations. - Tests on the resolved tree for fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's seams: a reverse-property triple term in a delete and in an insert, and
@reifiesarrays under graph sugar, an update'sgraphkey and a named-graph object. - fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009's JSON-LD scope suites (
it_jsonld_graph_scope,it_txn_meta,fluree-db-transact's scope and keyword unit tests) and the expander's depth tests (nesting_ceiling_is_exact,nested_sequence_reports_its_path). - fix(query): compare terms by what they are, not how they're encoded #2010's
it_query_optional_encoded_bindings,it_query_expression_semantics, feat(query): union default graph, per ledger and per query #2004's union battery and the fast-path differential. - To look at: on a dataset spanning ledgers, fix(query): compare terms by what they are, not how they're encoded #2010 re-codes a member's literal datatype into the primary's coding at the dataset boundary, and a triple-term value carries inner
Sids that path doesn't touch.
From #2009 and #2010 (each PR's next notes, under Sequencing).
Activity