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

it.unibz.inf.ontop.rdf4j.predefined.parsing.PredefinedQueryConfigEntry Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableMap;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.query.Query;

import java.util.Map;
import java.util.Optional;

public interface PredefinedQueryConfigEntry {

    Optional getName();
    Optional getDescription();

    Query.QueryType getQueryType();

    /**
     * False by default
     */
    boolean shouldReturn404IfEmpty();

    /**
     * False by default
     */
    boolean isResultStreamingEnabled();

    Optional> getFrame();

    ImmutableMap getParameters();


    interface QueryParameter {

        Optional getDescription();

        Boolean isSafeForRandomGeneration();

        Boolean getRequired();

        QueryParameterType getType();
    }

    interface QueryParameterType {
        QueryParameterCategory getCategory();
        Optional getDatatypeIRI();
    }

    enum QueryParameterCategory {
        IRI,
        TYPED_LITERAL
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy