Fix d/g attribute error (#634)

This commit is contained in:
cybermaggedon 2026-02-16 13:34:08 +00:00 committed by GitHub
parent 00c1ca681b
commit fe389354f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))