On 3 April 2017 at 16:30, Andy Seaborne <[email protected]> wrote:
> What I proposed is to treat bad dynamic regexs as an evaluation error, > with warning, not a syntax error. > OK, I misunderstood. > > Is that compatible with >> the SPARQL spec? I looked at the relevant sections >> and left unsure. >> > > The spec says nothing about bad regexs. So we /could/ say that evaluation an expression with a syntactically illegal pattern terminated the query without violating the spec. But we don't need to since the effect we wanted was not to have enormous logs with a line for each illegal regex, and we can use Log.warnOnce to suppress duplicate messages. [Of course the expression might evaluate differently each time so there could still be lots of distinct log lines but that's another edg on what's already an edge case...] I am happy with your 1/ and 2/ approach. Chris -- "It took a very long time, much longer than the most /Sector General/ generous estimates." - James White Epimorphics Ltd, http://www.epimorphics.com Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT Epimorphics Ltd. is a limited company registered in England (number 7016688)
