java.lang.Object
org.apache.jena.sparql.pfunction.PropertyFunctionBase
org.aksw.jena_sparql_api.sparql.ext.number.PF_Range
All Implemented Interfaces:
org.apache.jena.sparql.pfunction.PropertyFunction

public class PF_Range extends org.apache.jena.sparql.pfunction.PropertyFunctionBase
Generate (big) integer numbers for the specified range start (inclusive) and end (exclusive). The default increment is 1 but can be optionally set to a different value. The forth argument is a displacement which is added to the start. It is a convenience feature to ease array access with certain offsets. Stepping must always be a positive value - 0 or negative values return a QueryIterNull. Examples:
 (2, 6) number:range ?value # yields values { 2, 3, 4, 5 }
 (2, 6, 2) number:range ?value # yields {2, 4 }
 
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.engine.QueryIterator
    exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.pfunction.PropFuncArg argSubject, org.apache.jena.graph.Node predicate, org.apache.jena.sparql.pfunction.PropFuncArg argObject, org.apache.jena.sparql.engine.ExecutionContext execCxt)
     

    Methods inherited from class org.apache.jena.sparql.pfunction.PropertyFunctionBase

    build, exec

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PF_Range

      public PF_Range()
  • Method Details

    • exec

      public org.apache.jena.sparql.engine.QueryIterator exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.pfunction.PropFuncArg argSubject, org.apache.jena.graph.Node predicate, org.apache.jena.sparql.pfunction.PropFuncArg argObject, org.apache.jena.sparql.engine.ExecutionContext execCxt)
      Specified by:
      exec in class org.apache.jena.sparql.pfunction.PropertyFunctionBase