@Logan M Hi Logan I think I found a bug I wanted to clarify if it is expected behavor with the property graph. When creating the property graph I noticed that every single entity only has one chunk mentioning them. I was curious if a chunk is supposed to only mention a entity if it is the first time the entity is created (which is what it looks like) or if it should mention a entity whenever an entity is referenced in a chunk? If this behavior is intentional why? what is the best path to fixing this?
Entity linking-- figuring out entities that reference the same thing. This is pretty hard, and not a solved problem
Highlighting/linking all chunks that reference an entity. This is actually pretty interesting, and 100% something I never thought of doing, an oversight π but makes total sense. Would be easy to implement on initial construction. index.inser() might need some special handling
@Logan M Yeah... I don't know if either of these are necessarily what I am trying to solve. Basically what seems to be the case for the Neo4J property graph is that chunks ONLY 'MENTIONS' an entity when that chunk was the first to create that entity / mention the entity
MATCH (n) WHERE NOT n:Chunk // Exclude Chunk nodes themselves MATCH (n)<-[:MENTIONS]-(c:Chunk) WITH n, COUNT(DISTINCT c) as chunkCount WHERE chunkCount > 0 RETURN n.id as nodeId, labels(n) as nodeTypes, chunkCount ORDER BY chunkCount DESC
So this returns every non chunk node but
MATCH (n) WHERE NOT n:Chunk // Exclude Chunk nodes themselves MATCH (n)<-[:MENTIONS]-(c:Chunk) WITH n, COUNT(DISTINCT c) as chunkCount WHERE chunkCount > 1 RETURN n.id as nodeId, labels(n) as nodeTypes, chunkCount ORDER BY chunkCount DESC