EasyRdf API Documentation
Class

EasyRdf_Parser_Rapper

class EasyRdf_Parser_Rapper extends EasyRdf_Parser_Json

Class to parse RDF using the 'rapper' command line tool.

Constants

MINIMUM_RAPPER_VERSION

Methods

integer parse(object $graph, string $data, string $format, string $baseUri)

Parse an RDF document into an EasyRdf_Graph

object __construct(string $rapperCmd = 'rapper')

Constructor

Details

at line 82
public integer parse(object $graph, string $data, string $format, string $baseUri)

Parse an RDF document into an EasyRdf_Graph

Parameters

object $graph EasyRdf_Graph $graph the graph to load the data into
string $data the RDF document data
string $format the format of the input data
string $baseUri the base URI of the data being parsed

Return Value

integer The number of triples added to the graph

at line 57
public object __construct(string $rapperCmd = 'rapper')

Constructor

Parameters

string $rapperCmd Optional path to the rapper command to use.

Return Value

object EasyRdfParserRapper