class EasyRdf_Serialiser_Rapper extends EasyRdf_Serialiser_Ntriples
Class to serialise an EasyRdf_Graph to RDF using the 'rapper' command line tool.
Note: the built-in N-Triples serialiser is used to pass data to Rapper.
Methods
object |
__construct(string $rapperCmd = 'rapper')
Constructor |
|
string |
serialise(EasyRdf_Graph $graph, string $format, array $options = array())
Serialise an EasyRdf_Graph to the RDF format of choice. |
|
string |
serialiseValue(array|object $value)
Serialise an RDF value into N-Triples |
from EasyRdf_Serialiser_Ntriples |
Details
at line 58
public object
__construct(string $rapperCmd = 'rapper')
Constructor
at line 78
public string
serialise(EasyRdf_Graph $graph, string $format, array $options = array())
Serialise an EasyRdf_Graph to the RDF format of choice.
in EasyRdf_Serialiser_Ntriples at line 164
public 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 EasyRdfLiteral or EasyRdfResource object.