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

This commit is contained in:
cybermaggedon 2026-02-09 15:20:38 +00:00 committed by GitHub
parent 202d80f6b8
commit 19a83d9335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(