Documentation

TriGParser
in package
implements ParserInterface, QuadIteratorInterface uses TmpStreamParserTrait

Description of Parser

Tags
author

zozlak

Table of Contents

Interfaces

ParserInterface
QuadIteratorInterface

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

Properties

$options

private array<string|int, mixed> $options

$prefixCallback

private callable|null $prefixCallback

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
see
TriGParser::__construct()

valid()

public valid() : bool
Return values
bool

        
On this page

Search results