API Reference
classes
Ad4mclient

@coasys/ad4m / Exports / Ad4mClient

Class: Ad4mClient

Client for the Ad4m interface wrapping GraphQL queryies for convenient use in user facing code.

Aggregates the six sub-clients: AgentClient, ExpressionClient, LanguageClient, NeighbourhoodClient, PerspectiveClient and RuntimeClient for the respective functionality.

Table of contents

Constructors

Properties

Accessors

Constructors

constructor

new Ad4mClient(client, subscribe?)

Parameters

NameTypeDefault value
clientApolloClient<any>undefined
subscribebooleantrue

Defined in

Ad4mClient.ts:28 (opens in a new tab)

Properties

#agentClient

Private #agentClient: AgentClient

Defined in

Ad4mClient.ts:20 (opens in a new tab)


#apolloClient

Private #apolloClient: ApolloClient<any>

Defined in

Ad4mClient.ts:19 (opens in a new tab)


#expressionClient

Private #expressionClient: ExpressionClient

Defined in

Ad4mClient.ts:21 (opens in a new tab)


#languageClient

Private #languageClient: LanguageClient

Defined in

Ad4mClient.ts:22 (opens in a new tab)


#neighbourhoodClient

Private #neighbourhoodClient: NeighbourhoodClient

Defined in

Ad4mClient.ts:23 (opens in a new tab)


#perspectiveClient

Private #perspectiveClient: PerspectiveClient

Defined in

Ad4mClient.ts:24 (opens in a new tab)


#runtimeClient

Private #runtimeClient: RuntimeClient

Defined in

Ad4mClient.ts:25 (opens in a new tab)

Accessors

agent

get agent(): AgentClient

Returns

AgentClient

Defined in

Ad4mClient.ts:40 (opens in a new tab)


expression

get expression(): ExpressionClient

Returns

ExpressionClient

Defined in

Ad4mClient.ts:44 (opens in a new tab)


languages

get languages(): LanguageClient

Returns

LanguageClient

Defined in

Ad4mClient.ts:48 (opens in a new tab)


neighbourhood

get neighbourhood(): NeighbourhoodClient

Returns

NeighbourhoodClient

Defined in

Ad4mClient.ts:52 (opens in a new tab)


perspective

get perspective(): PerspectiveClient

Returns

PerspectiveClient

Defined in

Ad4mClient.ts:56 (opens in a new tab)


runtime

get runtime(): RuntimeClient

Returns

RuntimeClient

Defined in

Ad4mClient.ts:60 (opens in a new tab)