FromClause
Extends

Description

Interface with the methods available to make a FROM statement.

Methods

from( iri: string ): FromClause<T>

Set a default graph to be included as the RDF Dataset where to look for the query solutions.

Parameters

NameTypeDescription
string

IRI of the default graph to be included.

Returns

Object with the methods to keep constructing to query.

fromNamed( iri: string ): FromClause<T>

Set a named graph to be included as the RDF Dataset where to look for the query solutions.

Parameters

NameTypeDescription
string

IRI of the named graph to be included.

Returns

Object with the methods to keep constructing the query.

FromClause

Description

Constant with the utils for FromClause objects.

Methods

createFrom<C extends Container<QueryToken<SelectToken | AskToken>>, T extends FinishClause, O extends object>( genericFactory: Factory<C, T>, container: C, object: O ): O & FromClause<T>

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

Parameters

NameTypeDescription
Factory<C, T>

The factory to create the generic finish of the FromClause statement.

C

The related container with the data for the FromClause statement.

O

The base base from where to create the FromClause statement.

Returns

The FromClause statement created from the object provided.