Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak authored Mar 29, 2021
1 parent 5a87cb3 commit cd839cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ 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) {
echo "$quad\n";
}
fclose($stream);

// convert to nquads/ntriples
// convert to nquads/ntriples/ntriples*
$instream = fopen('pathToTurtleFile', 'r');
$iterator = $parser->parseStream($instream);
$serializer = new quickRdfIo\NQuadsSerializer();
Expand Down

0 comments on commit cd839cc

Please sign in to comment.