From fe389354f6ee58a136d5983ed26db7f621c224b5 Mon Sep 17 00:00:00 2001 From: cybermaggedon Date: Mon, 16 Feb 2026 13:34:08 +0000 Subject: [PATCH] Fix d/g attribute error (#634) --- trustgraph-flow/trustgraph/query/triples/cassandra/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trustgraph-flow/trustgraph/query/triples/cassandra/service.py b/trustgraph-flow/trustgraph/query/triples/cassandra/service.py index 996fc860..eac33dde 100755 --- a/trustgraph-flow/trustgraph/query/triples/cassandra/service.py +++ b/trustgraph-flow/trustgraph/query/triples/cassandra/service.py @@ -221,7 +221,8 @@ class Processor(TriplesQueryService): limit=query.limit ) for t in resp: - g = t.g if hasattr(t, 'g') else DEFAULT_GRAPH + # Note: quads_by_collection uses 'd' for graph field + g = t.d if hasattr(t, 'd') else DEFAULT_GRAPH otype, dtype, lang = get_o_metadata(t) quads.append((t.s, t.p, t.o, g, otype, dtype, lang))