mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 19:51:02 +02:00
Fix missing metadata
This commit is contained in:
parent
0809a4a145
commit
ef3ec92344
1 changed files with 5 additions and 1 deletions
|
|
@ -179,6 +179,10 @@ class Processor(FlowProcessor):
|
||||||
extraction_data, v.metadata
|
extraction_data, v.metadata
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Put document metadata into triples
|
||||||
|
for t in v.metadata.metadata:
|
||||||
|
triples.append(t)
|
||||||
|
|
||||||
for tpl in triples:
|
for tpl in triples:
|
||||||
print("TRIPLE>>>", tpl.s, tpl.p, tpl.o)
|
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"""
|
"""Process combined extraction data to generate triples and entity contexts"""
|
||||||
triples = []
|
triples = []
|
||||||
entity_contexts = []
|
entity_contexts = []
|
||||||
|
|
||||||
# Process definitions
|
# Process definitions
|
||||||
for defn in data.get("definitions", []):
|
for defn in data.get("definitions", []):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue