Closed SteinerPascal closed 1 year ago
Okay i think i figured it out. The example from the repo won't work i think. It works when I use the function: <NamedNode>
and not a string.
{
type: "functionCall",
function: {
id: "geof:sfWithin",
},
args: [
{
id: "?aWKT",
},
{
id: "\"'''<http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon(( 46.1952797580882 6.131257291417569, 46.21856441662584 6.131257291417569, 46.21856441662584 6.161469693761319, 46.1952797580882 6.161469693761319, LatLng(46.19528, 6.131257))) '''\"^^http://www.opengis.net/ont/geosparql#wktLiteral",
},
],
}
My suggestion:
to:
export interface FunctionCallExpression extends BaseExpression {
type: 'functionCall';
function: Term;
args: Expression[];
}
Can you confirm that?
closing this since it is resolved
Hi I'm using sparql.js to create a filter pattern with function call in SPARQL it should look like this:
I followed as an example here: https://github.com/RubenVerborgh/SPARQL.js/blob/48363ab7c4bb54cf98287a715a8c1800a2e0fc78/test/parsedQueries/sparql/sparql-16-2-2a.json#L49-L63
my example:
But i don't think this still works? It seems the type now must be of NamedNode or IRI