Ntriples
class Ntriples extends Serialiser
Class to serialise an EasyRdf\Graph to N-Triples with no external dependencies.
Properties
| protected | $prefixes | from Serialiser |
Methods
Check and cleanup parameters passed to serialise() method
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.
No description
No description
No description
No description
Serialise an RDF value into N-Triples
Details
in
Serialiser at line 54
protected
addPrefix($qname)
Keep track of the prefixes used while serialising
in
Serialiser at line 64
protected
checkSerialiseParams($format)
Check and cleanup parameters passed to serialise() method
in
Serialiser 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.
at line 206
string
serialise(Graph $graph, Format|string $format, array $options = array())
Serialise an EasyRdf\Graph into N-Triples
at line 57
protected
escapeString($str)
at line 78
protected
unicodeCharNo($cUtf)
at line 108
protected
escapedChar($c)
at line 147
protected
serialiseResource($res)
at line 169
string
serialiseValue(array|object $value)
Serialise an RDF value into N-Triples
The value can either be an array in RDF/PHP form, or an EasyRdf\Literal or EasyRdf\Resource object.