Output the entity term as well as its definition as entity contexts (#629)

This commit is contained in:
cybermaggedon 2026-02-09 15:18:05 +00:00 committed by Cyber MacGeddon
parent 202d80f6b8
commit 38630994bc

View file

@ -161,12 +161,17 @@ class Processor(FlowProcessor):
o=Value(value=v.metadata.id, is_uri=True)
))
ec = EntityContext(
# Output entity name as context for direct name matching
entities.append(EntityContext(
entity=s_value,
context=s,
))
# Output definition as context for semantic matching
entities.append(EntityContext(
entity=s_value,
context=defn["definition"],
)
entities.append(ec)
))
if triples:
await self.emit_triples(