Hi there!
I've encountered a strange behaviour of ARC2.
I run a fuseki server and want to run sparql queries from a PHP application. I start the query the way the documentation demonstrates:
include_once("arc2/ARC2.php");
$config = array(
'remote_store_endpoint' => 'http://localhost:3030/my_dataset/query',
);
$store = ARC2::getRemoteStore($config);
$results_as_array = $store->query($query_string, 'rows');
So far, everything is alright. The problem starts when I use the SPARQL functions "contains" or "rand". For example this simple query:
It doesn't work at all.
var_dump($results_as_array);
only results in "array(0) {
}
".
The very same query works in the Fuseki webinterface and with the PHP libraries Easy RDF and RAP (RDF API for PHP).
It works again with ARC, as soon as I remove "contains" or replace it with "regex" or something else.
So, I'm quite sure this is a bug in ARC2.