PropertyBuilder
Description
Object that allows to add a property to the triple related.
Methods
has( 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
Assign a property and values to the triple statement.
Parameters
Name | Type | Description |
---|---|---|
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.
PropertyBuilder
Description
Constant with the utils for PropertyBuilder
objects.
Methods
createFrom<T extends object, C extends Container<ObjectToken>, C2 extends Container<TripleToken>, O extends object>( genericFactory: Factory<C2, T>, container: C, object: O ): O & PropertyBuilder<T>
Factory function that allows to crete a PropertyBuilder
from the object provided.
Parameters
Name | Type | Description |
---|---|---|
Factory<C2, T> | The factory of the generic expected to be returned by the | |
C | The related container with the data for the | |
O | The base base from where to create the |
Returns
The PropertyBuilder
statement created from the object provided.