PropertyBuilderMore

Description

Object that allows to add more properties to the triple related.

Methods

and( property: string | Resource | Variable | Path<PathToken>, objects: string | number | boolean | Date | Resource | Literal | Variable | Collection | BlankNodeProperty | (string | number | boolean | Date | Resource | Literal | Variable | Collection | BlankNodeProperty)[] ): PropertyBuilderMore<T> & T

Added another property and values to the triple.

Parameters

NameTypeDescription
string | Resource | Variable | Path<PathToken>

The property to be added in the triple.

string | number | boolean | Date | Resource | Literal | Variable | Collection | BlankNodeProperty | (string | number | boolean | Date | Resource | Literal | Variable | Collection | BlankNodeProperty)[]

The value(s) the property added have.

Returns

Object that allows to add more data to the triple.

PropertyBuilderMore

Description

Constant with the utils for PropertyBuilderMore objects.

Methods

createFrom<T extends object, C extends Container<TripleToken | BlankNodePropertyToken>, O extends object>( genericFactory: Factory<C, T>, container: C, object: O ): O & PropertyBuilderMore<T>

Factory function that allows to crete a PropertyBuilderMore from the object provided.

Parameters

NameTypeDescription
Factory<C, T>

The factory of the generic expected to be returned by the PropertyBuilderMore.and method.

C

The related container with the data for the PropertyBuilderMore statement.

O

The base base from where to create the PropertyBuilderMore statement.

Returns

The PropertyBuilderMore statement created from the object provided.