NotTriplePatternsBuilder

Description

Builder for non triple based patterns.

Properties

undefined: Undefined

Property por a quickly access to the "UNDEF" keyword.

Methods

graph( iri: string | Resource | Variable, patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): GraphPattern

Creates a GraphPattern for the target named graph specified by iri, having the patterns specified.

See https://www.w3.org/TR/sparql11-query/#accessByLabel for more information.

Parameters

NameTypeDescription
string | Resource | Variable

The target graph to have the patterns.

Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns to match for the target graph.

Creates a GroupPattern for the patterns specified, where will group the patterns in a new pattern.

See https://www.w3.org/TR/sparql11-query/#GroupPatterns for more information.

Parameters

NameTypeDescription
Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns to be enclosed in a group.

Creates a UnionPattern for the patterns specified, where will group the pattern to be used as an alternative matching for another group declared by the subsequents UnionPattern.and methods.

See https://www.w3.org/TR/sparql11-query/#alternatives for more information.

Parameters

NameTypeDescription
Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns to be enclosed in a group.

Creates an OptionalPattern for the patterns specified, which will be considered as optional to match and retrieve.

See https://www.w3.org/TR/sparql11-query/#optionals for more information.

Parameters

NameTypeDescription
Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns to be enclosed in a optional group.

Creates a MinusPattern for the patterns specified which will be excluded from the query.

See https://www.w3.org/TR/sparql11-query/#neg-minus for more information.

Parameters

NameTypeDescription
Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns to be enclosed in a minus group.

service( resource: string | Resource | Variable, patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): ServicePattern

Creates a ServicePattern for the target resource service and the patterns specified.

See https://www.w3.org/TR/sparql11-federated-query/ for more information.

Parameters

NameTypeDescription
string | Resource | Variable

The service where to execute the federated query.

Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns of the target service.

serviceSilent( resource: string | Resource | Variable, patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): ServicePattern

Creates a silent ServicePattern for the target resource service and the patterns specified.

See https://www.w3.org/TR/sparql11-federated-query/ for more information.

Parameters

NameTypeDescription
string | Resource | Variable

The service where to execute the federated query.

Pattern<PatternToken> | Pattern<PatternToken>[]

The patterns of the target service.

Create a FilterPattern for the expression constraint.

This is used to exclude values or entire patterns.

See https://www.w3.org/TR/sparql11-query/#termConstraint and https://www.w3.org/TR/sparql11-query/#negation to know more.

Parameters

NameTypeDescription
Expression<ConditionalOrExpressionToken>

The expression constraint to use as filter.

Created a BindPattern from the assigment specified.

See https://www.w3.org/TR/sparql11-query/#bind for more information.

Parameters

NameTypeDescription
Projectable<AssigmentToken>

The full assigment to bind.

values( ...variables: Variable[] ): MultipleValuesPattern

Create a MultipleValuesPattern for the variables specified.

This is used to assign data to multiple variables.

See https://www.w3.org/TR/sparql11-query/#inline-data for more information.

Parameters

NameTypeDescription

The variables to assign data.

Variable[]

NotTriplePatternsBuilder

Description

Constant with the utils for NotTriplePatternsBuilder objects.

Methods

createFrom<O extends object>( container: Container<undefined>, object: O ): O & NotTriplePatternsBuilder

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

Parameters

NameTypeDescription
Container<undefined>

The related container with the data for the NotTriplePatternsBuilder statement.

O

The base base from where to create the NotTriplePatternsBuilder statement.

Returns

The NotTriplePatternsBuilder statement created from the object provided.