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