Class ITER_HTTPGet

  • All Implemented Interfaces:
    IteratorFunction

    public class ITER_HTTPGet
    extends IteratorStreamFunctionBase
    Iterator function iter:HTTPGet binds the responses of regular GET operations to a HTTP(s) URL.

    See Live example

    • Param 1: (a URI or String) the Web URI where regular GET operations are operated;
    • Param 2: (a positive Integer) the number of seconds between successive calls to the Web API;
    • Param 3 (optional): the total number of calls to make (a positive Integer). If not provided, the iterator never ends.

    Example:

    The clause

    ITERATOR iter:HTTPGet(<https://example.org/room1/temperature>,60) AS ?temperature

    will fetch the temperature of room 1 every 60 seconds, indefinetely.

    Since:
    2018-09-27
    Author:
    El-Mehdi Khalfi
    • Field Summary

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

      Constructors 
      Constructor Description
      ITER_HTTPGet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkBuild​(ExprList args)
      Partially checks if the iterator function can be executed with the given arguments.
      void exec​(java.util.List<NodeValue> args, java.util.function.Consumer<java.util.List<java.util.List<NodeValue>>> listNodeValues)
      IteratorFunction call to a list of evaluated argument values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ITER_HTTPGet

        public ITER_HTTPGet()