g3-toolkit API Reference
    Preparing search index...

    Class CypherAdapter

    Interface that all data source adapters implement.

    Implements

    Index

    Constructors

    • Parameters

      • endpointUrl: string
      • OptionalfetchFn: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        }
          • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
          • Parameters

            • input: URL | RequestInfo
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

      • Optionalauth: { password: string; username: string }
      • Optionaloptions: { middleware?: Middleware[] }

      Returns CypherAdapter

    Properties

    id: "cypher"

    Short identifier (e.g., "sparql", "cypher", "holonic").

    name: "Cypher (Neo4j)"

    Human-readable name (e.g., "SPARQL Endpoint").

    Methods

    • Expand the neighborhood of a node at the given depth. Returns a UGM containing the discovered subgraph.

      Parameters

      • nodeId: string
      • depth: number
      • OptionaledgeTypes: string[]

        Optional filter to specific edge types.

      Returns Promise<UGM>