Skip to content

Commit 25a11af

Browse files
committed
README.md: fixed example
1 parent 2aff1aa commit 25a11af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ Your data is stored inside an in-memory SQLite database file.
2323

2424
```php
2525

26-
use sweetrdf\InMemoryStoreSqlite\Log\LoggerPool;
2726
use sweetrdf\InMemoryStoreSqlite\PDOSQLiteAdapter;
2827
use sweetrdf\InMemoryStoreSqlite\KeyValueBag;
28+
use sweetrdf\InMemoryStoreSqlite\Log\LoggerPool;
29+
use sweetrdf\InMemoryStoreSqlite\Rdf\DataFactory;
2930
use sweetrdf\InMemoryStoreSqlite\Store\InMemoryStoreSqlite;
3031

3132
// fast way
3233
$store = InMemoryStoreSqlite::createInstance();
3334
// or a way with more data control
34-
$store = new InMemoryStoreSqlite(new PDOSQLiteAdapter(), new LoggerPool(), new KeyValueBag());
35+
$store = new InMemoryStoreSqlite(new PDOSQLiteAdapter(), new DataFactory(), new LoggerPool(), new KeyValueBag());
3536

3637
// send a SPARQL query which creates two triples
3738
$store->query('INSERT INTO <http://example.com/> {

0 commit comments

Comments
 (0)