All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibz.inf.ontop.rdf4j.predefined.PredefinedQuery Maven / Gradle / Ivy

The newest version!
package it.unibz.inf.ontop.rdf4j.predefined;

import com.google.common.collect.ImmutableMap;
import it.unibz.inf.ontop.query.RDF4JQuery;
import org.eclipse.rdf4j.query.BindingSet;

import java.util.Optional;

public interface PredefinedQuery> {

    Q getInputQuery();

    String getId();

    Optional getName();
    Optional getDescription();

    boolean shouldReturn404IfEmpty();

    boolean isResultStreamingEnabled();

    void validate(ImmutableMap bindings) throws InvalidBindingSetException;

    /**
     * NB: the bindings should have been validated before
     */
    BindingSet convertBindings(ImmutableMap bindings);

    /**
     * Removes irrelevant bindings and replace the values of "safe" parameters by the reference ones
     *
     * NB: the bindings should have been validated before
     */
    ImmutableMap replaceWithReferenceValues(ImmutableMap bindings);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy