Documentation

TriGParser
in package
implements ParserInterface, QuadIteratorInterface Uses TmpStreamParserTrait

Description of Parser

Tags
author

zozlak

Interfaces, Classes, Traits and Enums

ParserInterface
QuadIteratorInterface

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

Properties

$options

private array<string|int, mixed> $options
Tags

$prefixCallback

private callable|null $prefixCallback
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
see
TriGParser::__construct()
Return values
mixed

__destruct()

public __destruct() : mixed
Tags
Return values
mixed

key()

public key() : mixed
Tags
Return values
mixed

next()

public next() : void
Tags
Return values
void

rewind()

public rewind() : void
Tags
Return values
void

valid()

public valid() : bool
Tags
Return values
bool

        

Search results