Parse a subject [10] @ignore
protected function parseSubject() {
$c = $this
->peek();
if ($c == '(') {
$this->subject = $this
->parseCollection();
}
elseif ($c == '[') {
$this->subject = $this
->parseImplicitBlank();
}
else {
$value = $this
->parseValue();
if ($value['type'] == 'uri' or $value['type'] == 'bnode') {
$this->subject = $value;
}
else {
throw new EasyRdf_Exception("Turtle Parse Error: illegal subject type: " . $value['type']);
}
}
}