Parses a blankNodePropertyList [15]
This method parses the token [] and predicateObjectLists that are surrounded by square brackets.
@ignore
protected function parseImplicitBlank() {
$this
->verifyCharacter($this
->read(), "[");
$bnode = array(
'type' => 'bnode',
'value' => $this->graph
->newBNodeId(),
);
$c = $this
->read();
if ($c != ']') {
$this
->unread($c);
// Remember current subject and predicate
$oldSubject = $this->subject;
$oldPredicate = $this->predicate;
// generated bNode becomes subject
$this->subject = $bnode;
// Enter recursion with nested predicate-object list
$this
->skipWSC();
$this
->parsePredicateObjectList();
$this
->skipWSC();
// Read closing bracket
$this
->verifyCharacter($this
->read(), "]");
// Restore previous subject and predicate
$this->subject = $oldSubject;
$this->predicate = $oldPredicate;
}
return $bnode;
}