Skip to content

Weird cypher in unstructured2graph #114

@Josipmrden

Description

@Josipmrden

This cypher doesn't make sense.

def connect_chunks_to_entities(memgraph: Memgraph, chunk_label: str, entity_label: str):
    memgraph.query(
        f"""
        MATCH (n:{entity_label}), (m:{chunk_label})
        WHERE n.file_path = m.hash
        MERGE (n)-[:MENTIONED_IN]->(m);
        """
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions