Documentation

TrigSerializer
in package
implements SerializerInterface uses TmpStreamSerializerTrait

Serializes to TriG and Turtle formats

Tags
author

zozlak

Table of Contents

Interfaces

SerializerInterface

Constants

MODE_TRIG  = 2
MODE_TURTLE  = 1

Properties

$mode  : int
$strict  : bool

Methods

__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.


        
On this page

Search results