persist

fun persist(entityRepository: <Error class: unknown class>)

Persist all entities to the repository and create structural relationships.

Creates (Chunk)-[:HAS_ENTITY]->(Entity) relationships linking each source chunk to the entities extracted from it.

Entities are deduplicated across chunks before saving, but relationships are created for each chunk where an entity was mentioned.

Parameters

entityRepository

Repository for entity persistence