Class ITER_GeoJSON

java.lang.Object
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase1
fr.mines_stetienne.ci.sparql_generate.geojson.ITER_GeoJSON
All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction

public class ITER_GeoJSON extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase1

Iterator function iter:GeoJSON iterates over the features collection of a GeoJSON document, and outputs (1) the Geometry as a wktLiteral, and (2) the Features as a JSON Literal

See Live example

  • Param 1: (geojson): the URI of the GeoJSON document (a URI), or the GeoJSON object itself (a String);
The following variables may be bound:
  • Output 1: (wktLiteral) geometry of the feature;
  • Output 2: (json literal) properties of the feature
Since:
2018-09-19
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<List<org.apache.jena.sparql.expr.NodeValue>>
    exec​(org.apache.jena.sparql.expr.NodeValue json)
     

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

    checkBuild, exec

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

    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_GeoJSON

      public ITER_GeoJSON()
  • Method Details

    • exec

      public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(org.apache.jena.sparql.expr.NodeValue json)
      Specified by:
      exec in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase1