Documentation

TriGParser
in package
implements Parser, QuadIterator Uses TmpStreamParserTrait

Description of Parser

Tags
author

zozlak

Interfaces, Classes, Traits and Enums

Parser
QuadIterator

Table of Contents

CHUNK_SIZE  = 8192
$dataFactory  : DataFactory
$input  : StreamInterface
$n  : int
$options  : array<string|int, mixed>
$parser  : TriGParser
$prefixCallback  : callable|null
$quadsBuffer  : ArrayIterator
$tmpStream  : resource|null
__construct()  : mixed
__destruct()  : mixed
current()  : Quad
key()  : mixed
next()  : void
parse()  : QuadIterator
parseStream()  : QuadIterator
rewind()  : void
valid()  : bool
closeTmpStream()  : void

Constants

Properties

$options

private array<string|int, mixed> $options

$prefixCallback

private callable|null $prefixCallback

Methods

__construct()

public __construct(DataFactory $dataFactory[, array<string|int, mixed> $options = [] ][, callable|null $prefixCallback = null ]) : mixed
Parameters
$dataFactory : DataFactory

factory to be used to generate RDF terms.

$options : array<string|int, mixed> = []

options to be passed to the pietercolpaert\hardf\TriGParser constructor

$prefixCallback : callable|null = null

a callable for handling prefixes to be passed to the pietercolpaert\hardf\TriGParser constructor

Tags
see
TriGParser::__construct()
Return values
mixed

__destruct()

public __destruct() : mixed
Return values
mixed

key()

public key() : mixed
Return values
mixed

next()

public next() : void
Return values
void

rewind()

public rewind() : void
Return values
void

valid()

public valid() : bool
Return values
bool

Search results