fr.boreal.backward_chaining.evaluators.DefaultQueryRewritingOutputIfTimeoutFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integraal-backward-chaining Show documentation
Show all versions of integraal-backward-chaining Show documentation
InteGraal has been designed in a modular way, in order to facilitate
software reuse and extension.
It should make it easy to test new scenarios and techniques, in
particular by combining algorithms.
The main features of Graal are currently the following:
(1) internal storage to store data by using a SQL or RDF representation
(Postgres, MySQL, HSQL, SQLite, Remote SPARQL endpoints, Local in-memory
triplestores) as well as a native in-memory representation
(2) data-integration capabilities for exploiting federated heterogeneous
data-sources through mappings able to target systems such as SQL, RDF,
and black-box (e.g. Web-APIs)
(3) algorithms for query-answering over heterogeneous and federated data
based on query rewriting and/or forward chaining (or chase)
The newest version!
package fr.boreal.backward_chaining.evaluators;
import java.util.Optional;
import java.util.function.BiFunction;
import fr.lirmm.boreal.util.object_analyzer.ObjectAnalizer;
/**
* Creates a query rewriting output where the timeout is indicated
*/
public class DefaultQueryRewritingOutputIfTimeoutFunction
implements BiFunction {
@Override
public RewritingOutput apply(RewritingInput t, String u) {
return new RewritingOutput(t.query(), null,
Optional.of("Query " + ObjectAnalizer.digest(t.query()) + " TIMEOUT after" + u + " seconds"));
}
}