EasyRdf API Documentation
Class

EasyRdf_Parser_Ntriples

class EasyRdf_Parser_Ntriples extends EasyRdf_Parser

A pure-php class to parse N-Triples with no dependancies.

Methods

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

Parse an N-Triples document into an EasyRdf_Graph

Details

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

Parse an N-Triples 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