FromClauseExtendsWhereClause<T>
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Factory<C, T> | The factory to create the generic finish of the | |
C | The related container with the data for the | |
O | The base base from where to create the |
Returns
The FromClause
statement created from the object provided.