Documentation

JsonLdParser
in package
implements Parser, QuadIterator

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

Parser
QuadIterator

Table of Contents

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

Properties

Methods

__construct()

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

factory to be used to generate RDF terms.

$baseUri : string|null = null
Return values
mixed

key()

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

setBaseUri()

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

Search results