RdfPhp
class RdfPhp extends Serialiser
Class to serialise an EasyRdf\Graph to RDF/PHP with no external dependencies.
Properties
protected | $prefixes | from Serialiser |
Methods
checkSerialiseParams($format)
Check and cleanup parameters passed to serialise() method
from
Serialiser
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.
from
Serialiser
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 64
string
serialise(Graph $graph, Format|string $format, array $options = array())
Method to serialise an EasyRdf\Graph to RDF/PHP
https://www.easyrdf.org/docs/rdf-formats-php