Callidon / sparql-engine

🚂 A framework for building SPARQL query engines in Javascript/Typescript
https://callidon.github.io/sparql-engine
MIT License
99 stars 14 forks source link

Support for SILENT modifiers with SERVICE queries #26

Closed Callidon closed 5 years ago

Callidon commented 5 years ago

Since v0.5.1, SERVICE clauses are automatically executed by the engine. However, we are still missing support for the SILENT modifier, which removes errors when querying a distant RDF graph with a federated SPARQL query.

This can be done in rxjs using the catchError operator, so we need to add a similar operation to the PipelineEngine API, adn then use it in the ServiceStageBuilder.

Callidon commented 5 years ago

Implemented in 2d699c93033d8e9737f19d50395f8c4fb13d2b87 The PipelineEngine API now supports a catch function, similar to rxjs catchError operator. This new function is used to handle SILENT modifiers.