Documentation

JsonLdParser
in package
implements ParserInterface, QuadIteratorInterface

Thin wrapper providing RdfInterface\Parser API for JSON-LD the parser provided by the ml/json-ld library.

Doesn't provide stream parsing because the ml/json-ld library doesn't so be carefull when parsing large inputs.

Tags
author

zozlak

Interfaces, Classes, Traits and Enums

ParserInterface
QuadIteratorInterface

Table of Contents

$baseUri  : string|null
$curQuad  : QuadInterface|null
$dataFactory  : DataFactoryInterface
$quads  : array<int, Quad>
__construct()  : mixed
current()  : QuadInterface|null
key()  : int|null
next()  : void
parse()  : QuadIteratorInterface
parseStream()  : QuadIteratorInterface
rewind()  : void
setBaseUri()  : void
valid()  : bool

Properties

Methods

__construct()

public __construct(DataFactoryInterface $dataFactory[, string|null $baseUri = null ]) : mixed
Parameters
$dataFactory : DataFactoryInterface

factory to be used to generate RDF terms.

$baseUri : string|null = null
Tags
Return values
mixed

key()

public key() : int|null
Tags
Return values
int|null

next()

public next() : void
Tags
Return values
void

rewind()

public rewind() : void
Tags
Return values
void

setBaseUri()

public setBaseUri(string|null $baseUri) : void
Parameters
$baseUri : string|null
Tags
Return values
void

valid()

public valid() : bool
Tags
Return values
bool

        

Search results