Hi Quentin,

The split_and_decode() function returns an array thus the Virtuoso aref() 
function needs to be used for loading return the elements as detailed at:

        http://docs.openlinksw.com/virtuoso/fn_aref.html

So you could use one of the following forms to return the results:

        select bif:aref 
(bif:split_and_decode('http%3A%2F%2Fexample.org%2Ftest1%3Bhttp%3A%2F%2Fexample.org%2Ftest2',0),
 0) { ?S ?P ?O } LIMIT 1
or
        select bif:aref 
(bif:split_and_decode('http%3A%2F%2Fexample.org%2Ftest1%3Bhttp%3A%2F%2Fexample.org%2Ftest2',0),
 0) {}

Query run against DBpedia:

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&qtxt=select+bif%3Aaref+%28bif%3Asplit_and_decode%28%27http%253A%252F%252Fexample.org%252Ftest1%253Bhttp%253A%252F%252Fexample.org%252Ftest2%27%2C0%29%2C+0%29+%7B%7D&format=text%2Fhtml&timeout=30000&debug=on

I hope this is what you are looking for ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.      //              http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers

On 29 Nov 2013, at 04:37, Quentin <quent...@clearbluewater.com.au> wrote:

> I can see it doesn't crash anymore, it doesn't urldecode and split the string 
> either.  What would be the correct syntax with that function to split a 
> urlencoded  ;-separated list of urls?
> 
> 
> 
> On 29 November 2013 14:35, Hugh Williams <hwilli...@openlinksw.com> wrote:
> Hi Quentin,
> 
> This issue has been resolved and the fix applied to DBpedia, it will also be 
> in the Virtuoso 7 open source update due out next week ...
> 
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc.      //              http://www.openlinksw.com/
> Weblog   -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
> 
> On 26 Nov 2013, at 05:12, Quentin <quent...@clearbluewater.com.au> wrote:
> 
>> I tried this on DBPedia and I'm pretty sure it crashed and restarted.
>> select 
>> bif:split_and_decode('http%3A%2F%2Fexample.org%2Ftest1%3Bhttp%3A%2F%2Fexample.org%2Ftest2',0,'%3B')
>>  { ?S ?P ?O } LIMIT 1
>> 
>> The string is: "http://example.org/test1;http://example.org/test2"; 
>> urlencoded.
>> 
>> Sorry about the inadvertent DOS.
>> 
>> I suggest not attempting this link:
>> http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=select+bif%3Asplit_and_decode%28%27http%253A%252F%252Fexample.org%252Ftest1%253Bhttp%253A%252F%252Fexample.org%252Ftest2%27%2C0%2C%27%253B%27%29+%7B+%3FS+%3FP+%3FO+%7D+LIMIT+1&format=text%2Fhtml&timeout=30000&debug=on
>> 
>> 
>> On 26 November 2013 16:18, Hugh Williams <hwilli...@openlinksw.com> wrote:
>> Hi Quentin,
>> 
>> Are you able to provide a test case for internal recreation of this issue ?
>> 
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc.      //              http://www.openlinksw.com/
>> Weblog   -- http://www.openlinksw.com/blogs/
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>> Twitter  -- http://twitter.com/OpenLink
>> Google+  -- http://plus.google.com/100570109519069333827/
>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>> Universal Data Access, Integration, and Management Technology Providers
>> 
>> On 26 Nov 2013, at 03:04, Quentin <quent...@clearbluewater.com.au> wrote:
>> 
>>> By dataset, I mean a url that represents a graph name.
>>> As in: http://example.org/dataset/TestData/
>>> 
>>> 
>>> On 26 November 2013 13:07, Quentin <quent...@clearbluewater.com.au> wrote:
>>> The offending code, that reliably reproduces the crash in my environment, 
>>> is:
>>> split_and_decode(in_datasets,0,'%3B');
>>> 
>>> Where in_datasets is a urlencoded. semicolon separated list of datasets.
>>> 
>>> $ virtuoso-t -?
>>> Virtuoso Open Source Edition (Column Store) (multi threaded)
>>> Version 7.0.1-dev.3203-pthreads as of Nov 11 2013
>>> Compiled for Linux (x86_64-unknown-linux-gnu)
>>> 
>>> -- 
>>> Quentin | Clear Blue Water Pty Ltd
>>> quent...@clearbluewater.com.au
>>> 
>>> 
>>> 
>>> -- 
>>> Quentin | Clear Blue Water Pty Ltd
>>> quent...@clearbluewater.com.au
>>> ------------------------------------------------------------------------------
>>> Shape the Mobile Experience: Free Subscription
>>> Software experts and developers: Be at the forefront of tech innovation.
>>> Intel(R) Software Adrenaline delivers strategic insight and game-changing 
>>> conversations that shape the rapidly evolving mobile landscape. Sign up 
>>> now. 
>>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk_______________________________________________
>>> Virtuoso-users mailing list
>>> Virtuoso-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>> 
>> 
>> 
>> 
>> -- 
>> Quentin | Clear Blue Water Pty Ltd
>> quent...@clearbluewater.com.au
> 
> 
> 
> 
> -- 
> Quentin | Clear Blue Water Pty Ltd
> quent...@clearbluewater.com.au

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to