Codota Logo
TupleResultSet.getSignature
Code IndexAdd Codota to your IDE (free)

How to use
getSignature
method
in
it.unibz.inf.ontop.answering.resultset.TupleResultSet

Best Java code snippets using it.unibz.inf.ontop.answering.resultset.TupleResultSet.getSignature (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: ontop/ontop

@Override
public List<String> getSignature() throws OWLException {
  try {
    return res.getSignature();
  } catch (Exception e) {
    throw new OntopOWLException(e);
  }
}
origin: it.unibz.inf.ontop/ontop-rdf4j

@Override
public TupleQueryResult evaluate() throws QueryEvaluationException {
  TupleResultSet res;
  OntopStatement stm;
  long start = System.currentTimeMillis();
  try {
    stm = conn.createStatement();
    if(this.queryTimeout > 0)
      stm.setQueryTimeout(this.queryTimeout);
    try {
      SelectQuery inputQuery = factory.createSelectQuery(getQueryString(), getParsedQuery());
      res = stm.execute(inputQuery);
    } catch (OntopQueryAnsweringException e) {
      long end = System.currentTimeMillis();
      if (this.queryTimeout > 0 && (end - start) >= this.queryTimeout * 1000){
        throw new QueryEvaluationException("OntopTupleQuery timed out. More than " + this.queryTimeout + " seconds passed", e);
      } else 
        throw e;
    }
    
    List<String> signature = res.getSignature();
    return new OntopTupleQueryResult(res, signature);
  } catch (QueryEvaluationException e) {
    throw e;
  }
  catch (Exception e) {
    throw new QueryEvaluationException(e);
  }
}
origin: ontop/ontop

@Override
public TupleQueryResult evaluate() throws QueryEvaluationException {
  TupleResultSet res;
  OntopStatement stm;
  long start = System.currentTimeMillis();
  try {
    stm = conn.createStatement();
    if(this.queryTimeout > 0)
      stm.setQueryTimeout(this.queryTimeout);
    try {
      SelectQuery inputQuery = factory.createSelectQuery(getQueryString(), getParsedQuery());
      res = stm.execute(inputQuery);
    } catch (OntopQueryAnsweringException e) {
      long end = System.currentTimeMillis();
      if (this.queryTimeout > 0 && (end - start) >= this.queryTimeout * 1000){
        throw new QueryEvaluationException("OntopTupleQuery timed out. More than " + this.queryTimeout + " seconds passed", e);
      } else 
        throw e;
    }
    
    List<String> signature = res.getSignature();
    return new OntopTupleQueryResult(res, signature);
  } catch (QueryEvaluationException e) {
    throw e;
  }
  catch (Exception e) {
    throw new QueryEvaluationException(e);
  }
}
it.unibz.inf.ontop.answering.resultsetTupleResultSetgetSignature

Popular methods of TupleResultSet

  • close
  • hasNext
  • next
  • getFetchSize
  • getColumnCount

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now