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
- Author:
- El Mehdi Khalfi invalid input: '<'el-mehdi.khalfi at emse.fr>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.NodeValueexec(org.apache.jena.sparql.expr.NodeValue json) org.apache.jena.sparql.expr.NodeValuegetNodeValue(com.github.filosganga.geogson.model.Geometry geom) Methods inherited from class org.apache.jena.sparql.function.FunctionBase1
checkBuild, execMethods inherited from class org.apache.jena.sparql.function.FunctionBase
build, exec, exec
-
Field Details
-
URI
The SPARQL function URI.- See Also:
-
-
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:
execin classorg.apache.jena.sparql.function.FunctionBase1
-
getNodeValue
public org.apache.jena.sparql.expr.NodeValue getNodeValue(com.github.filosganga.geogson.model.Geometry geom)
-