API Reference
interfaces
Expressionadapter

@perspect3vism/ad4m / Exports / ExpressionAdapter

Interface: ExpressionAdapter

Interface for the most common Expression Languages

Table of contents

Properties

Methods

Properties

putAdapter

putAdapter: PublicSharing | ReadOnlyLanguage

Strategy for putting an expression with needs to be different for those two cases:

  1. PublicSharing means that this language supports the creation and sharing of Expressions, which is the common use-case
  2. ReadOnlyLanguage means that the Language implements a pre-defined set of expressions (which can be infinite or finite). For example the url-iframe Language which directly maps URLs to addresses - meaning every well formed URL is an address in this Language. Or a potential Language implementing the verbs/predicates of a spec like FOAF.

Defined in

language/Language.ts:106 (opens in a new tab)

Methods

get

get(address): Promise<Expression>

Returns an Expression by address, or null if there is no Expression with that given address

Parameters

NameType
addressstring

Returns

Promise<Expression>

Defined in

language/Language.ts:93 (opens in a new tab)