@inrupt/solid-client

Globals / “thing/remove”

Module: “thing/remove”

Functions

removeAll

removeAll<T>(thing: T, property: Url | UrlString): T

Defined in src/thing/remove.ts:52

Create a new Thing with all values removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Type parameters:

Name

Type

T

Thing

Parameters:

Name

Type

Description

thing

T

Thing to remove values from.

property

Url | UrlString

Property for which to remove all values from the Thing.

Returns: T

A new Thing equal to the input Thing with all values removed for the given Property.


removeBoolean

ConstremoveBoolean(thing: T, property: string | Url, value: boolean): T

Defined in src/thing/remove.ts:112

Create a new Thing with the given boolean removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove a boolean value from.

property

string | Url

Property for which to remove the given boolean value.

value

boolean

Boolean to remove from thing for the given property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeDatetime

ConstremoveDatetime(thing: T, property: string | Url, value: Date): T

Defined in src/thing/remove.ts:136

Create a new Thing with the given datetime removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove a datetime value from.

property

string | Url

Property for which to remove the given datetime value.

value

Date

Datetime to remove from thing for the given property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeDecimal

ConstremoveDecimal(thing: T, property: string | Url, value: number): T

Defined in src/thing/remove.ts:157

Create a new Thing with the given decimal removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove a decimal value from.

property

string | Url

Property for which to remove the given decimal value.

value

number

Decimal to remove from thing for the given property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeInteger

ConstremoveInteger(thing: T, property: string | Url, value: number): T

Defined in src/thing/remove.ts:177

Create a new Thing with the given integer removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove an integer value from.

property

string | Url

Property for which to remove the given integer value.

value

number

Integer to remove from thing for the given property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeStringNoLocale

ConstremoveStringNoLocale(thing: T, property: string | Url, value: string): T

Defined in src/thing/remove.ts:225

Create a new Thing with the given unlocalised string removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove an unlocalised string value from.

property

string | Url

Property for which to remove the given string value.

value

string

String to remove from thing for the given property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeStringWithLocale

removeStringWithLocale<T>(thing: T, property: Url | UrlString, value: string, locale: string): T

Defined in src/thing/remove.ts:198

Create a new Thing with the given localised string removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Type parameters:

Name

Type

T

Thing

Parameters:

Name

Type

Description

thing

T

Thing to remove a localised string value from.

property

Url | UrlString

Property for which to remove the given localised string value.

value

string

String to remove from thing for the given property.

locale

string

Locale of the string to remove.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.


removeUrl

ConstremoveUrl(thing: T, property: string | Url, value: string | Url | DatasetCore<Quad, Quad> & { internal_url: UrlString } & { internal_url: UrlString } | DatasetCore<Quad, Quad> & { internal_localSubject: LocalNode } & { internal_url: UrlString }): T

Defined in src/thing/remove.ts:77

Create a new Thing with the given URL removed for the given Property.

The original thing is not modified; this function returns a cloned Thing with updated values.

Parameters:

Name

Type

Description

thing

T

Thing to remove a URL value from.

property

string | Url

Property for which to remove the given URL value.

value

string | Url | DatasetCore<Quad, Quad> & { internal_url: UrlString } & { internal_url: UrlString } | DatasetCore<Quad, Quad> & { internal_localSubject: LocalNode } & { internal_url: UrlString }

URL to remove from thing for the given Property.

Returns: T

A new Thing equal to the input Thing with the given value removed for the given Property.