adding the same triple into two graphs does not work #114
Open
Description
The following test code shows, that ARC2 does not seem to allow the same triple in different graphs. Is that right @semsol?
$store = \ARC2::getStore([...]);
$store->query(
'INSERT INTO <http://graph1/> {<http://foo/1> <http://foo/2> <http://foo/3> . }'
);
$store->query(
'INSERT INTO <http://graph2/> {<http://foo/1> <http://foo/2> <http://foo/3> . }'
);
$store->query(
'INSERT INTO <http://graph2/> {<http://foo/4> <http://foo/5> <http://foo/6> . }'
);
// thats OK, 1 row
$res = $this->fixture->query('SELECT * FROM <http://graph1/> WHERE {?s ?p ?o.}');
echo count($res['result']['rows']);
// thats OK, 3 rows
$res = $this->fixture->query('SELECT * WHERE {?s ?p ?o.}');
echo count($res['result']['rows']);
// FAILED, got 1 row, expected 2
$res = $this->fixture->query('SELECT * FROM <http://graph2/> WHERE {?s ?p ?o.}');
echo count($res['result']['rows']);