EasyRdf API Documentation
Class

EasyRdf_Parser_Turtle

class EasyRdf_Parser_Turtle extends EasyRdf_Parser_Ntriples

Class to parse Turtle with no external dependancies.

It is a translation from Java to PHP of the Sesame Turtle Parser: http://bit.ly/TurtleParser

Lasted updated against version: ecda6a15a200a2fc6a062e2e43081257c3ccd4e6 (Mon Jul 29 12:05:58 2013)

Methods

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

Parse Turtle into an EasyRdf_Graph

object __construct()

Constructor

static  isWhitespace($c)

Returns true if $c is a whitespace character

static  isPrefixStartChar($c)

static  isNameStartChar($c)

static  isNameChar($c)

static  isLocalEscapedChar($c)

static  isPrefixChar($c)

static  isLanguageStartChar($c)

static  isLanguageChar($c)

Details

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

Parse Turtle 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 71
public object __construct()

Constructor

Return Value

object EasyRdfParserTurtle

at line 1220
static public isWhitespace($c)

Returns true if $c is a whitespace character

Parameters

$c

at line 1227
static public isPrefixStartChar($c)

Parameters

$c

at line 1248
static public isNameStartChar($c)

Parameters

$c

at line 1260
static public isNameChar($c)

Parameters

$c

at line 1279
static public isLocalEscapedChar($c)

Parameters

$c

at line 1285
static public isPrefixChar($c)

Parameters

$c

at line 1299
static public isLanguageStartChar($c)

Parameters

$c

at line 1308
static public isLanguageChar($c)

Parameters

$c