Closed pheyvaer closed 7 years ago
Might be related to #30?
it is, although str should work: https://github.com/LinkedDataFragments/Client.js/blob/master/lib/util/SparqlExpressionEvaluator.js#L156
Indeed. I tried again and noticed that it has to check > 40.000 triples. So this is why it is taking so long. Something else though, should it not be return isLiteral(a) ? literalValue(a) : '"' + a + '"';
, because str
should return the literal value. str("\"Ghent\"@en")
should be the same as str("\"Ghent\"")
, no?
Yes, as is the case in the more spec-compliant https://github.com/LinkedDataFragments/Client.js/blob/feature-more-filters/lib/util/SparqlExpressionEvaluator.js#L282
OK, I'll close this issue then as it will be resolved when merging #30.
When executing a query with
STR
in aFILTER
I don't get neither a response or error. The fucntions ofresults.on('data')
andresults.on('end')
are never called. When trying to useSTRSTARTS
I get the error that this operator is not supported, so I guessSTR
should work then?