Class FUN_GeoJSONGeometry

java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase1
fr.mines_stetienne.ci.sparql_generate.geojson.FUN_GeoJSONGeometry
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public final class FUN_GeoJSONGeometry extends org.apache.jena.sparql.function.FunctionBase1
Binding function fun:GeoJSONGeometry extracts the Geometry member from a Feature object as a wktLiteral.

See Live example

  • Param 1 is a GeoJSON Feature object in JSON;
  • Result is a GeoSPARQL wktLiteral.

The following geometry types are supported: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection.

Since:
2018-09-05
  • 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
    org.apache.jena.sparql.expr.NodeValue
    exec​(org.apache.jena.sparql.expr.NodeValue json)
     
    org.apache.jena.sparql.expr.NodeValue
    getNodeValue​(com.github.filosganga.geogson.model.Geometry geom)
     

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase1

    checkBuild, exec

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase

    build, evalArgs, exec

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.function.Function

    build
  • Field Details

  • Constructor Details

    • FUN_GeoJSONGeometry

      public FUN_GeoJSONGeometry()
  • Method Details

    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue json)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase1
    • getNodeValue

      public org.apache.jena.sparql.expr.NodeValue getNodeValue(com.github.filosganga.geogson.model.Geometry geom)