mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Fix d/g attribute error (#634)
This commit is contained in:
parent
00c1ca681b
commit
fe389354f6
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue