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