From cd839cc731d5657eba676e1da6fc0b37e6a37f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=BB=C3=B3=C5=82tak?= Date: Mon, 29 Mar 2021 19:07:40 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2275e84..c447641 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ It's very incomplite but better than nothing.\ ## Usage -``` +```php include 'vendor/autoload.php'; -// parse turle/ntriples/nquad file +// parse turle/ntriples/nquad/ntriples* file $parser = new quickRdfIo\TriGParser(); $stream = fopen('pathToTurtleFile', 'r'); foreach($parser->parseStream($stream) as $quad) { @@ -36,7 +36,7 @@ foreach($parser->parseStream($stream) as $quad) { } fclose($stream); -// convert to nquads/ntriples +// convert to nquads/ntriples/ntriples* $instream = fopen('pathToTurtleFile', 'r'); $iterator = $parser->parseStream($instream); $serializer = new quickRdfIo\NQuadsSerializer();