Output the entity term as well as its definition as entity contexts

This commit is contained in:
Cyber MacGeddon 2026-02-09 15:16:14 +00:00
parent 8574861196
commit a2ef2b8659

View file

@ -161,12 +161,17 @@ class Processor(FlowProcessor):
o=Term(type=IRI, iri=v.metadata.id)
))
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(