g3-toolkit API Reference
    Preparing search index...

    Class SparqlAdapter

    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>

      • Optionaloptions: { middleware?: Middleware[] }

      Returns SparqlAdapter

    Properties

    id: "sparql"

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

    name: "SPARQL Endpoint"

    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>