http://example.org/test1
and http://example.org/test2
, one should use the Virtuoso function split_and_decode() which returns an array.
Thus the Virtuoso function aref() also needs to be used for loading the elements.
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