Named Entity Data Repository Graph Relationship Persister
Persists projected graph relationships via NamedEntityDataRepository.
Converts each ProjectedRelationship to the repository's relationship format and writes it to the underlying graph database.
The authorityResolver stamps the strongest authority across the source propositions onto each edge written by synthesizeAndUpdateDescriptions, so authority is preserved through the description-synthesis re-persist cycle and not silently dropped.
val persister = NamedEntityDataRepositoryGraphRelationshipPersister(repository)
val result = persister.persist(graphProjector.projectAll(propositions, schema))
println("Persisted ${result.persistedCount} relationships")Parameters
the graph repository to write relationships into
resolves the source authority to stamp on synthesized edges; defaults to StructuralAuthorityResolver
Constructors
Functions
Persist all successfully projected relationships from the results.
Persist a list of projected relationships.
Persists a single projected relationship to the graph.
Project propositions and persist the resulting relationships in one operation.
Synthesize descriptions for entity-pair relationships and update the edges. Default implementation is a no-op for implementations that don't support synthesis.