abstract class Serialiser

Parent class for the EasyRdf serialiser

Properties

protected $prefixes

Methods

addPrefix($qname)

Keep track of the prefixes used while serialising

checkSerialiseParams($format)

Check and cleanup parameters passed to serialise() method

reversePropertyCount($resource)

Protected method to get the number of reverse properties for a resource If a resource only has a single property, the number of values for that property is returned instead.

string
serialise(Graph $graph, Format|string $format, array $options = array())

Serialise an EasyRdf\Graph into desired format.

Details

at line 54
protected addPrefix($qname)

Keep track of the prefixes used while serialising

Parameters

$qname

at line 64
protected checkSerialiseParams($format)

Check and cleanup parameters passed to serialise() method

Parameters

$format

at line 85
protected reversePropertyCount($resource)

Protected method to get the number of reverse properties for a resource If a resource only has a single property, the number of values for that property is returned instead.

Parameters

$resource

at line 107
abstract string serialise(Graph $graph, Format|string $format, array $options = array())

Serialise an EasyRdf\Graph into desired format.

Parameters

Graph $graph An EasyRdf\Graph object.
Format|string $format The name of the format to convert to.
array $options

Return Value

string The RDF in the new desired format.