Class

EasyRdf_Parser_Json

class EasyRdf_Parser_Json extends EasyRdf_Parser_RdfPhp

A pure-php class to parse RDF/JSON with no dependancies.

http://n2.talis.com/wiki/RDFJSONSpecification

Methods

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

Parse RDF/JSON into an EasyRdf_Graph

object __construct()

Constructor

Details

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

Parse RDF/JSON 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 56
public object __construct()

Constructor

Return Value

object EasyRdfParserJson