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

debug( debugFn: (query: this, container: Container<TokenNode>) => any ): this

Parameters

NameTypeDescription
(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

NameTypeDescription
Container<TokenNode>

The related container with the data for the FinishClause statement.

O

The base base from where to create the FinishClause statement.

Returns

The FinishClause statement created from the object provided.