RdfXml
class RdfXml extends Serialiser
Class to serialise an EasyRdf\Graph to RDF/XML with no external dependencies.
Constants
RDF_XML_LITERAL |
A constant for the RDF Type property URI |
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.
Protected method to serialise an object node into an XML object
Protected method to serialise a whole resource and its properties
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 205
string
serialise(Graph $graph, Format|string $format, array $options = array())
Method to serialise an EasyRdf\Graph to RDF/XML
at line 65
protected
rdfxmlObject($property, $obj, $depth)
Protected method to serialise an object node into an XML object
at line 132
protected
rdfxmlResource($res, $showNodeId, $depth = 1)
Protected method to serialise a whole resource and its properties