java.lang.Object
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
fr.mines_stetienne.ci.sparql_generate.sql.ITER_SQL
All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction

public class ITER_SQL extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
Iterator function SQL issues a SQL query to a database.
  • Param 1: (database): the JDBC URI of the database
  • Param 2: (sql) the SQL query;
The following variables may be bound:
  • Output 1 .. N: value of the ith column, encoded as a boolean, float, double, integer, string, dateTimeStamp, as it best fits.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Properties
     
    static String
    The SPARQL function URI.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkBuild​(org.apache.jena.sparql.expr.ExprList args)
     
    void
    exec​(org.apache.jena.sparql.expr.NodeValue nodeSQL, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
     
    getConnection​(org.apache.jena.sparql.expr.NodeValue sql)
     
    void
    getListSQL​(Connection conn, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
     
    static Properties
     

    Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2

    exec

    Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase

    build, exec, getContext

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ITER_SQL

      public ITER_SQL()
  • Method Details

    • getProperties

      public static Properties getProperties()
    • exec

      public void exec(org.apache.jena.sparql.expr.NodeValue nodeSQL, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
      Specified by:
      exec in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
    • getConnection

      public Connection getConnection(org.apache.jena.sparql.expr.NodeValue sql) throws Exception
      Throws:
      Exception
    • getListSQL

      public void getListSQL(Connection conn, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
    • checkBuild

      public void checkBuild(org.apache.jena.sparql.expr.ExprList args)
      Overrides:
      checkBuild in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2