vaimee / SEPA-js

A js client library for SPARQL Event Processing Architecture
https://site.unibo.it/wot/en
2 stars 2 forks source link

Missing variable substitution in FILTER #13

Open lroffia opened 4 years ago

lroffia commented 4 years ago
"IRRIGATION_REQUEST_BY_DAY": {
"sparql": "SELECT * FROM <http://swamp-project.org/cbec/irrigation> WHERE {?irr rdf:type swamp:IrrigationRequest ; time:inXSDDateTimeStamp ?timestamp ; swamp:issuedBy swamp:CBEC ; swamp:hasCurrentStatus swamp:Scheduled ; swamp:requestNumber ?requestNumber ; swamp:reservationNumber ?reservationNumber ; swamp:hasField ?fieldUri ; swamp:hasStatus ?status . ?status time:inXSDDateTimeStamp ?stime ; swamp:requestStatus ?reqStatus . FILTER(contains(?timestamp,?day))}",
            "forcedBindings": {
                "day": {
                    "type": "literal",
                    "value": "2020-07-14"
                }
            }
        }

It seems like "?day" is not substituted within the query.

relu91 commented 4 years ago

It seems that the query bench correctly substitutes the variable. See here. Can you provide more context? i.e. client version, a small snippet to reproduce the issue, etc. ?