You are here

protected function EasyRdf_Parser_Turtle::parsePredicateObjectList in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php \EasyRdf_Parser_Turtle::parsePredicateObjectList()

Parse a predicateObjectList [7] @ignore

2 calls to EasyRdf_Parser_Turtle::parsePredicateObjectList()
EasyRdf_Parser_Turtle::parseImplicitBlank in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blankNodePropertyList [15]
EasyRdf_Parser_Turtle::parseTriples in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse triples [6] @ignore

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php, line 272

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function parsePredicateObjectList() {
  $this->predicate = $this
    ->parsePredicate();
  $this
    ->skipWSC();
  $this
    ->parseObjectList();
  while ($this
    ->skipWSC() == ';') {
    $this
      ->read();
    $c = $this
      ->skipWSC();
    if ($c == '.' || $c == ']') {
      break;
    }
    elseif ($c == ';') {

      // empty predicateObjectList, skip to next
      continue;
    }
    $this->predicate = $this
      ->parsePredicate();
    $this
      ->skipWSC();
    $this
      ->parseObjectList();
  }
}