TriGParser
in package
implements
Parser, QuadIterator
Uses
TmpStreamParserTrait
Description of Parser
Tags
Interfaces, Classes, Traits and Enums
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
CHUNK_SIZE
private
mixed
CHUNK_SIZE
= 8192
Properties
$dataFactory
private
DataFactory
$dataFactory
$input
private
StreamInterface
$input
$n
private
int
$n
$options
private
array<string|int, mixed>
$options
$parser
private
TriGParser
$parser
$prefixCallback
private
callable|null
$prefixCallback
$quadsBuffer
private
ArrayIterator
$quadsBuffer
$tmpStream
private
resource|null
$tmpStream
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
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —current()
public
current() : Quad
Return values
Quad —key()
public
key() : mixed
Return values
mixed —next()
public
next() : void
Return values
void —parse()
public
parse(string $input) : QuadIterator
Parameters
- $input : string
Return values
QuadIterator —parseStream()
public
parseStream(mixed $input) : QuadIterator
Parameters
- $input : mixed
Return values
QuadIterator —rewind()
public
rewind() : void
Return values
void —valid()
public
valid() : bool
Return values
bool —closeTmpStream()
private
closeTmpStream() : void