Class EasyRdf_Parser_Ntriples

Description

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

Located in /EasyRdf/Parser/Ntriples.php (line 46)

EasyRdf_Parser
   |
   --EasyRdf_Parser_Ntriples
Direct descendents
Class Description
EasyRdf_Parser_Turtle Class to parse Turtle with no external dependancies.
Method Summary
integer parse (object EasyRdf_Graph $graph, string $data, string $format, string $baseUri)
The unescapeString (string $str)
Variables
Methods
parse (line 171)

Parse an N-Triples document into an EasyRdf_Graph

  • return: The number of triples added to the graph
  • access: public
integer parse (object EasyRdf_Graph $graph, string $data, string $format, string $baseUri)
  • object 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

Redefined in descendants as:
unescapeString (line 55)

Decodes an encoded N-Triples string. Any \-escape sequences are substituted with their decoded value.

  • return: unencoded string.
  • access: protected
The unescapeString (string $str)
  • string $str: An encoded N-Triples string.

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