
    Aמi                    t    U d Z ddlmZ dZded<   	 dZded<   	 dZded	<   	 d
Zded<   	 dZded<   	 dZ	ded<   y)u  
core/graph/queries.py — Pre-built Cypher query constants for Genesis KG.

All constants are plain strings.  Pass them to GenesisGraph.query() with
the appropriate ``params`` dict.

Usage example::

    from core.graph.queries import FIND_ENTITY_BY_ID, FIND_RELATED
    from core.graph import get_graph

    graph = get_graph()
    entity = graph.query(FIND_ENTITY_BY_ID, {"id": "ENT-agentic-os-001"})
    related = graph.query(FIND_RELATED, {"id": "ENT-agentic-os-001", "limit": 20})

Note on FIND_ENTITIES_BY_TYPE:
    FalkorDB does not support parameterised labels ($type).  Substitute the
    label name directly into the query string before calling .query():

        cypher = FIND_ENTITIES_BY_TYPE.replace("$type", "axiom")
        results = graph.query(cypher, {"limit": 50})

# VERIFICATION_STAMP
# Story: M9.04 — core/graph/queries.py — pre-built Cypher constants
# Verified By: parallel-builder
# Verified At: 2026-02-25T00:00:00Z
# Tests: 8/8
# Coverage: 100%
    )annotationsz#MATCH (n) WHERE n.id = $id RETURN nstrFIND_ENTITY_BY_IDz%MATCH (n:$type) RETURN n LIMIT $limitFIND_ENTITIES_BY_TYPEzIMATCH (a)-[r]->(b) WHERE a.id = $id RETURN b, type(r) as rel LIMIT $limitFIND_RELATEDzQMATCH p = shortestPath((a)-[*..5]-(b)) WHERE a.id = $from AND b.id = $to RETURN p	FIND_PATHz5MATCH (n) RETURN labels(n) as type, count(n) as countCOUNT_BY_TYPEzQMATCH (a:axiom) WHERE a.date >= $since RETURN a ORDER BY a.date DESC LIMIT $limitRECENT_AXIOMSN)
__doc__
__future__r   r   __annotations__r   r   r   r	   r
        +/mnt/e/genesis-system/core/graph/queries.py<module>r      s   : # * 3  , s 
", c  
3 
 < s 1 s r   