Documentation

TrigSerializer
in package
implements SerializerInterface Uses TmpStreamSerializerTrait

Serializes to TriG and Turtle formats

Tags
author

zozlak

Interfaces, Classes, Traits and Enums

SerializerInterface

Table of Contents

MODE_TRIG  = 2
MODE_TURTLE  = 1
$mode  : int
$strict  : bool
__construct()  : mixed
serialize()  : string
serializeStream()  : void

Constants

Properties

Methods

__construct()

public __construct([int $mode = self::MODE_TRIG ][, bool $strict = false ]) : mixed
Parameters
$mode : int = self::MODE_TRIG

serialization mode TrigSerializer::MODE_TRIG or TrigSerializer::MODE_TURTLE. The exact behavior depends on the $strict parameter.

$strict : bool = false

if $mode equal TrigSerializer::MODE_TURTLE and a triple with graph not being a default graph is encountered and $strict equals false, then the graph URI is just skipped. Otherwise an exception is rised.

Tags
Return values
mixed

        

Search results