TriplePatternsBuilder
Description
Builder for triples based elements.
Methods
resource( iri: string ): Resource
Create a Resource
from the IRI or prefixed name specified.
Parameters
Name | Type | Description |
---|---|---|
string | The IRI or prefixed name to create the |
var( name: string ): Variable
Crete a Variable
from the name specified.
Parameters
Name | Type | Description |
---|---|---|
string | The name of the |
literal( value: SupportedNativeTypes ): Literal
Create a Literal
from the value specified.
Parameters
Name | Type | Description |
---|---|---|
SupportedNativeTypes | The value of the |
collection( ...values: (string | number | boolean | Date | Resource | Literal | Variable | BlankNode | Collection | BlankNodeProperty)[] ): Collection
Create a Collection
from all the values provided.
Parameters
Name | Type | Description |
---|---|---|
The values to be added to the collection. | ||
(string | number | boolean | Date | Resource | Literal | Variable | BlankNode | Collection | BlankNodeProperty)[] |
blankNode( builderFn: (selfBuilder: BlankNodeBuilder) => any ): BlankNodeProperty
Create a BlankNodeProperty
from the properties added in the selfBuilder
of the builderFn specified.
Parameters
Name | Type | Description |
---|---|---|
(selfBuilder: BlankNodeBuilder) => any | The function that will receive a |
TriplePatternsBuilder
Description
Constant with the utils for TriplePatternsBuilder
objects.
Methods
createFrom<O extends object>( container: Container<undefined>, object: O ): O & TriplePatternsBuilder
Factory function that allows to crete a TriplePatternsBuilder
from the object provided.
Parameters
Name | Type | Description |
---|---|---|
Container<undefined> | The related container with the data for the | |
O | The base base from where to create the |
Returns
The TriplePatternsBuilder
statement created from the object provided.