@inrupt/solid-client

Globals / “thing/get”

Module: “thing/get”

Functions

getBoolean

getBoolean(thing: Thing, property: Url | UrlString): boolean | null

Defined in src/thing/get.ts:85

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a boolean value from.

property

Url | UrlString

The given Property for which you want the boolean value.

Returns: boolean | null

A boolean value for the given Property, if present, or null otherwise.


getBooleanAll

getBooleanAll(thing: Thing, property: Url | UrlString): boolean[]

Defined in src/thing/get.ts:108

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the boolean values from.

property

Url | UrlString

The given Property for which you want the boolean values.

Returns: boolean[]

The boolean values for the given Property.


getDatetime

getDatetime(thing: Thing, property: Url | UrlString): Date | null

Defined in src/thing/get.ts:129

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a datetime value from.

property

Url | UrlString

The given Property for which you want the datetime value.

Returns: Date | null

A datetime value for the given Property, if present, or null otherwise.


getDatetimeAll

getDatetimeAll(thing: Thing, property: Url | UrlString): Date[]

Defined in src/thing/get.ts:152

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the datetime values from.

property

Url | UrlString

The given Property for which you want the datetime values.

Returns: Date[]

The datetime values for the given Property.


getDecimal

getDecimal(thing: Thing, property: Url | UrlString): number | null

Defined in src/thing/get.ts:173

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a decimal value from.

property

Url | UrlString

The given Property for which you want the decimal value.

Returns: number | null

A decimal value for the given Property, if present, or null otherwise.


getDecimalAll

getDecimalAll(thing: Thing, property: Url | UrlString): number[]

Defined in src/thing/get.ts:196

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the decimal values from.

property

Url | UrlString

The given Property for which you want the decimal values.

Returns: number[]

The decimal values for the given Property.


getInteger

getInteger(thing: Thing, property: Url | UrlString): number | null

Defined in src/thing/get.ts:217

Parameters:

Name

Type

Description

thing

Thing

The Thing to read an integer value from.

property

Url | UrlString

The given Property for which you want the integer value.

Returns: number | null

An integer value for the given Property, if present, or null otherwise.


getIntegerAll

getIntegerAll(thing: Thing, property: Url | UrlString): number[]

Defined in src/thing/get.ts:240

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the integer values from.

property

Url | UrlString

The given Property for which you want the integer values.

Returns: number[]

The integer values for the given Property.


getStringByLocaleAll

getStringByLocaleAll(thing: Thing, property: Url | UrlString): Map<string, string[]>

Defined in src/thing/get.ts:306

Retrieves all language string literals for the specified property from the specified Thing (explicitly filters out non-language string literals).

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the localised string values from.

property

Url | UrlString

The given Property for which you want the localised string values.

Returns: Map<string, string[]>

A Map of objects, keyed on locale with the value an array of string values (for that locale).


getStringNoLocale

getStringNoLocale(thing: Thing, property: Url | UrlString): string | null

Defined in src/thing/get.ts:334

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a string value from.

property

Url | UrlString

The given Property for which you want the string value.

Returns: string | null

A string value for the given Property, if present, or null otherwise.


getStringNoLocaleAll

getStringNoLocaleAll(thing: Thing, property: Url | UrlString): string[]

Defined in src/thing/get.ts:353

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the string values from.

property

Url | UrlString

The given Property for which you want the string values.

Returns: string[]

The string values for the given Property.


getStringWithLocale

getStringWithLocale(thing: Thing, property: Url | UrlString, locale: string): string | null

Defined in src/thing/get.ts:262

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a localised string value from.

property

Url | UrlString

The given Property for which you want the localised string value.

locale

string

The desired locale for the string value.

Returns: string | null

A localised string value for the given Property, if present in locale, or null otherwise.


getStringWithLocaleAll

getStringWithLocaleAll(thing: Thing, property: Url | UrlString, locale: string): string[]

Defined in src/thing/get.ts:285

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the localised string values from.

property

Url | UrlString

The given Property for which you want the localised string values.

locale

string

The desired locale for the string values.

Returns: string[]

The localised string values for the given Property.


getUrl

getUrl(thing: Thing, property: Url | UrlString): UrlString | null

Defined in src/thing/get.ts:43

Parameters:

Name

Type

Description

thing

Thing

The Thing to read a URL value from.

property

Url | UrlString

The given Property for which you want the URL value.

Returns: UrlString | null

A URL value for the given Property, if present, or null otherwise.


getUrlAll

getUrlAll(thing: Thing, property: Url | UrlString): UrlString[]

Defined in src/thing/get.ts:66

Parameters:

Name

Type

Description

thing

Thing

The Thing to read the URL values from.

property

Url | UrlString

The given Property for which you want the URL values.

Returns: UrlString[]

The URL values for the given Property.