persist

open fun persist(propositionRepository: PropositionRepository, namedEntityDataRepository: <Error class: unknown class>)

Persist extracted entities and propositions to their respective repositories. Also creates structural relationships:

  • (Chunk)-[:HAS_ENTITY]->(__Entity__) for each entity mentioned in grounding chunks

  • (Chunk)-[:HAS_PROPOSITION]->(Proposition) for each grounding chunk

  • (Proposition)-[:MENTIONS {role}]->(__Entity__) for each resolved entity mention

  • Only saves entities that are actually referenced by propositions being persisted

  • If revision was enabled, saves all revised propositions (new, merged, reinforced, etc.)

  • If revision was not enabled, saves all extracted propositions