Skip to content

ISelectBuilder FILTER #601

Answered by Revnixcad
Revnixcad asked this question in Q&A
Discussion options

You must be logged in to vote

I'm delighted to share the solution I've uncovered for implementing a geof:sfWithin filter in dotnetRDF. This approach involves crafting a Sparql query as a string and leveraging the SparqlQueryParser for parsing. During debugging, I examined the object structure to recreate it, leading to the solution presented in the code snippet below:

var variable = new VariableTerm("geomWKT");
var dataType = new Uri("http://www.opengis.net/ont/geosparql#wktLiteral");
var valuePolygon = $"<http://www.opengis.net/def/crs/EPSG/0/28992> POLYGON(({pointsWkt}))";

var expressionNode = new StringNode(valuePolygon, dataType);
var constant = new ConstantTerm(expressionNode);

List<ISparqlExpression> arguments = 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Revnixcad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant