Class EasyRdf_Serialiser_Rapper

Description

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.

Located in /EasyRdf/Serialiser/Rapper.php (line 49)

EasyRdf_Serialiser
   |
   --EasyRdf_Serialiser_Ntriples
      |
      --EasyRdf_Serialiser_Rapper
Method Summary
object EasyRdf_Serialiser_Rapper __construct ([string $rapperCmd = 'rapper'])
string serialise (object EasyRdf_Graph $graph, string $format)
Variables

Inherited Variables

Inherited from EasyRdf_Serialiser

EasyRdf_Serialiser::$_prefixes
Methods
Constructor __construct (line 59)

Constructor

  • access: public
object EasyRdf_Serialiser_Rapper __construct ([string $rapperCmd = 'rapper'])
  • string $rapperCmd: Optional path to the rapper command to use.
serialise (line 78)

Serialise an EasyRdf_Graph to the RDF format of choice.

  • return: The RDF in the new desired format.
  • access: public
string serialise (object EasyRdf_Graph $graph, string $format)
  • object EasyRdf_Graph $graph: An EasyRdf_Graph object.
  • string $format: The name of the format to convert to.

Redefinition of:
EasyRdf_Serialiser_Ntriples::serialise()
Serialise an EasyRdf_Graph into N-Triples

Inherited Methods

Inherited From EasyRdf_Serialiser_Ntriples

EasyRdf_Serialiser_Ntriples::serialise()

Documentation generated on Wed, 16 Jan 2013 19:16:38 +0000 by phpDocumentor 1.4.4