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

com.mysema.rdfbean.model.SPARQLQuery Maven / Gradle / Ivy

The newest version!
package com.mysema.rdfbean.model;

import java.io.Writer;

/**
 * SPARQLQuery defines the interface for accessing SPARQL query results
 * 
 * @author tiwe
 * 
 */
public interface SPARQLQuery extends BooleanQuery, GraphQuery, TupleQuery {

    public enum ResultType {
        BOOLEAN, TRIPLES, TUPLES
    }

    /**
     * Get the result type of the SPARQL query
     * 
     * @return
     */
    ResultType getResultType();

    /**
     * Stream the results of a DESCRIBE or CONSTRUCT query
     * 
     * @param writer
     * @param contentType
     */
    void streamTriples(Writer writer, String contentType);

    /**
     * Add the given binding
     * 
     * @param variable
     * @param node
     */
    void setBinding(String variable, NODE node);

    /**
     * Set the maximum query time in seconds
     * 
     * @param secs
     */
    void setMaxQueryTime(int secs);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy