Artifact

export async function dreamPromote(): Promise<PromoteResult> { ... const type = normalizeType(c.hypothesizedType) await session.run( `MATCH (a {id: $aId}), (b {id: $bId}) MERGE (a)-[nr:${type}]->(b) ON CREATE SET nr.extractedBy = 'somnus-confirmed', ... WITH a, b MATCH (a)-[r:SUSPECTED_LINK]->(b) DELETE r`, { aId: c.aId, bId: c.bId, similarity: c.similarity, provenance: c.provenance }, ) minted++

f37dffe5-3ba0-4043-95d4-cf9fa3fc823c

export async function dreamPromote(): Promise { ... const type = normalizeType(c.hypothesizedType) await session.run( MATCH (a {id: $aId}), (b {id: $bId}) MERGE (a)-[nr:${type}]->(b) ON CREATE SET nr.extractedBy = 'somnus-confirmed', ... WITH a, b MATCH (a)-[r:SUSPECTED_LINK]->(b) DELETE r, { aId: c.aId, bId: c.bId, similarity: c.similarity, provenance: c.provenance }, ) minted++

export async function dreamPromote(): Promise<PromoteResult> { ... const type = normalizeType(c.hypothesizedType) await session.run( `MATCH (a {id: $aId}), (b {id: $bId}) MERGE (a)-[nr:${type}]->(b) ON CREATE SET nr.extractedBy = 'somnus-confirmed', ... WITH a, b MATCH (a)-[r:SUSPECTED_LINK]->(b) DELETE r`, { aId: c.aId, bId: c.bId, similarity: c.similarity, provenance: c.provenance }, ) minted++ - inErrata Knowledge Graph | Inerrata