Hello Jindřich,

can you show the query maybe?


I couldn't reproduce this with some dummy data produced by VALUES, but I
don't know how you use FILTER and substring afterwards:


SELECT  *
WHERE
  { { SELECT  *
      WHERE
        { VALUES ?s { "abc" "abcd" "abd" } }
    }
    FILTER ( strlen(str(?s)) = 3 )
    BIND(substr(str(?s), 3, 1) AS ?lastChar)
  }



Kind regards,
Lorenz

> Hi Hugh,
>
> producing a minimal test case to reproduce the behaviour is indeed the
> difficult part. I've been trying to do that without success. So far
> I'm able to replicate the behaviour only with my full database. I'll
> reopen this if I manage to narrow down the data required to replicate
> the behaviour.
>
> - Jindřich
>
> -- 
> Jindřich Mynarz
> http://mynarz.net/#jindrich
>
> On Wed, Nov 2, 2016 at 2:48 AM, Hugh Williams
> <hwilli...@openlinksw.com <mailto:hwilli...@openlinksw.com>> wrote:
>
>     Hi Jindřich,
>
>     Can you please provide a test  case (data & query) to demonstrate
>     the issue ?
>
>     Best Regards
>     Hugh Williams
>     Professional Services
>     OpenLink Software, Inc.      //            
>      http://www.openlinksw.com/
>     Weblog   -- http://www.openlinksw.com/blogs/
>     <http://www.openlinksw.com/blogs/>
>     LinkedIn -- http://www.linkedin.com/company/openlink-software/
>     <http://www.linkedin.com/company/openlink-software/>
>     Twitter  -- http://twitter.com/OpenLink
>     Google+  -- http://plus.google.com/100570109519069333827/
>     <http://plus.google.com/100570109519069333827/>
>     Facebook -- http://www.facebook.com/OpenLinkSoftware
>     <http://www.facebook.com/OpenLinkSoftware>
>     Universal Data Access, Integration, and Management Technology
>     Providers
>
>>     On 1 Nov 2016, at 15:26, Jindřich Mynarz
>>     <mynarzjindr...@gmail.com <mailto:mynarzjindr...@gmail.com>> wrote:
>>
>>     Hi Lorenz,
>>
>>     On Tue, Nov 1, 2016 at 4:18 PM, Lorenz B.
>>     <buehm...@informatik.uni-leipzig.de
>>     <mailto:buehm...@informatik.uni-leipzig.de>> wrote:
>>
>>          how do you apply both FILTERs?
>>
>>     I use FILTER (STRLEN(?literal) = 8) followed by BIND
>>     (SUBSTR(?literal, 8, 1) AS ?eighth).
>>
>>         Obviously the filter on the length needs to be evaluated
>>         first, and I'm wondering how this would be evaluated if
>>         somebody uses FILTER(cond1 && cond2) as && should be commutative.
>>
>>     Exactly. It seems however that Virtuoso may reverse the order of
>>     the FILTER. I tried using sub-SELECT with no effect. What worked
>>     was a particularly clumsy reformulation of the original update
>>     
>> (https://github.com/jindrichmynarz/vvz-to-rdf/commit/3c7ab9e0ad34b024b33c8fa626a71bb18947503f
>>     
>> <https://github.com/jindrichmynarz/vvz-to-rdf/commit/3c7ab9e0ad34b024b33c8fa626a71bb18947503f>).
>>
>>     - Jindřich
>>
>>     -- 
>>     http://mynarz.net/#jindrich
>>     
>> ------------------------------------------------------------------------------
>>     Developer Access Program for Intel Xeon Phi Processors
>>     Access to Intel Xeon Phi processor-based developer platforms.
>>     With one year of Intel Parallel Studio XE.
>>     Training and support from Colfax.
>>     Order your platform today.
>>     http://sdm.link/xeonphi_______________________________________________
>>     <http://sdm.link/xeonphi_______________________________________________>
>>     Virtuoso-users mailing list
>>     Virtuoso-users@lists.sourceforge.net
>>     <mailto:Virtuoso-users@lists.sourceforge.net>
>>     https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>     <https://lists.sourceforge.net/lists/listinfo/virtuoso-users>
>
>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
>
>
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users

-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to