NQuadsSerializer
in package
implements
SerializerInterface
uses
TmpStreamSerializerTrait
Serializes n-quads and n-quads-star.
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- serialize() : string
- serializeQuad() : string
- serializeStream() : void
Methods
__construct()
public
__construct() : mixed
serialize()
public
serialize(Traversable<string|int, QuadInterface>|array<string|int, QuadInterface> $graph[, RdfNamespaceInterface|null $nmsp = null ]) : string
Parameters
- $graph : Traversable<string|int, QuadInterface>|array<string|int, QuadInterface>
- $nmsp : RdfNamespaceInterface|null = null
Tags
Return values
stringserializeQuad()
public
static serializeQuad(QuadInterface $quad[, string $end = " .
" ]) : string
Parameters
- $quad : QuadInterface
- $end : string = " . "
Return values
stringserializeStream()
public
serializeStream(resource|StreamInterface $output, Traversable<string|int, QuadInterface>|array<string|int, QuadInterface> $graph[, RdfNamespaceInterface|null $nmsp = null ]) : void
Parameters
- $output : resource|StreamInterface
- $graph : Traversable<string|int, QuadInterface>|array<string|int, QuadInterface>
- $nmsp : RdfNamespaceInterface|null = null