protected function EasyRdf_Parser_Turtle::parseStatement

Parse a statement [2] @ignore

1 call to EasyRdf_Parser_Turtle::parseStatement()
EasyRdf_Parser_Turtle::parse in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse Turtle into an EasyRdf_Graph

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php, line 107

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function parseStatement() {
  $c = $this
    ->peek();
  if ($c == '@') {
    $this
      ->parseDirective();
    $this
      ->skipWSC();
    $this
      ->verifyCharacter($this
      ->read(), ".");
  }
  else {
    $this
      ->parseTriples();
    $this
      ->skipWSC();
    $this
      ->verifyCharacter($this
      ->read(), ".");
  }
}