FinishClause
Description
Interface with methods to construct the final SPARQL query string.
Methods
toCompactString(): string
Constructs a compact SPARQL query string.
Tries to minimize the optional elements and the blank spaces between the elements of the query.
Returns
The compact string.
toPrettyString(): string
Constructs a pretty SPARQL query string.
Prints the statements with indentation and also print all the elements even if their are optional ones.
Returns
The pretty string.
toString(): string
Return the same result as FinishClause.toPrettyString
Parameters
Name | Type | Description |
---|---|---|
(query: this, container: Container<TokenNode>) => any |
FinishClause
Description
Constant with the utils for FinishClause
objects.
Methods
createFrom<O extends object>( container: Container<TokenNode>, object: O ): O & FinishClause
Factory function that allows to crete a FinishClause
from the object provided.
Parameters
Name | Type | Description |
---|---|---|
Container<TokenNode> | The related container with the data for the | |
O | The base base from where to create the |
Returns
The FinishClause
statement created from the object provided.