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
Name | Type | Description |
---|---|---|
string | Resource | Variable | The target graph to have the patterns. | |
Pattern<PatternToken> | Pattern<PatternToken>[] | The patterns to match for the target graph. |
group( patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): GroupPattern
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
Name | Type | Description |
---|---|---|
Pattern<PatternToken> | Pattern<PatternToken>[] | The patterns to be enclosed in a group. |
union( patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): UnionPattern
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
Name | Type | Description |
---|---|---|
Pattern<PatternToken> | Pattern<PatternToken>[] | The patterns to be enclosed in a group. |
optional( patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): OptionalPattern
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
Name | Type | Description |
---|---|---|
Pattern<PatternToken> | Pattern<PatternToken>[] | The patterns to be enclosed in a optional group. |
minus( patterns: Pattern<PatternToken> | Pattern<PatternToken>[] ): MinusPattern
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
string | Resource | Variable | The service where to execute the federated query. | |
Pattern<PatternToken> | Pattern<PatternToken>[] | The patterns of the target service. |
filter( constraint: Expression<ConditionalOrExpressionToken> ): FilterPattern
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
Name | Type | Description |
---|---|---|
Expression<ConditionalOrExpressionToken> | The expression constraint to use as filter. |
bind( assigment: Projectable<AssigmentToken> ): BindPattern
Created a BindPattern
from the assigment specified.
See https://www.w3.org/TR/sparql11-query/#bind for more information.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Container<undefined> | The related container with the data for the | |
O | The base base from where to create the |
Returns
The NotTriplePatternsBuilder
statement created from the object provided.