Fix missing metadata

This commit is contained in:
Cyber MacGeddon 2025-07-21 11:47:50 +01:00
parent 0809a4a145
commit ef3ec92344

View file

@ -179,6 +179,10 @@ class Processor(FlowProcessor):
extraction_data, v.metadata
)
# Put document metadata into triples
for t in v.metadata.metadata:
triples.append(t)
for tpl in triples:
print("TRIPLE>>>", tpl.s, tpl.p, tpl.o)
@ -204,7 +208,7 @@ class Processor(FlowProcessor):
"""Process combined extraction data to generate triples and entity contexts"""
triples = []
entity_contexts = []
# Process definitions
for defn in data.get("definitions", []):