protected function EasyRdf_Parser_Turtle::parseObject in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php \EasyRdf_Parser_Turtle::parseObject()
Parse a object [12] @ignore
2 calls to EasyRdf_Parser_Turtle::parseObject()
- EasyRdf_Parser_Turtle::parseCollection in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Turtle.php - Parses a collection [16], e.g: ( item1 item2 item3 ) @ignore
- EasyRdf_Parser_Turtle::parseObjectList in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Turtle.php - Parse a objectList [8] @ignore
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Turtle.php, line 382
Class
- EasyRdf_Parser_Turtle
- Class to parse Turtle with no external dependancies.
Code
protected function parseObject() {
$c = $this
->peek();
if ($c == '(') {
$this->object = $this
->parseCollection();
}
elseif ($c == '[') {
$this->object = $this
->parseImplicitBlank();
}
else {
$this->object = $this
->parseValue();
}
$this
->addTriple($this->subject['value'], $this->predicate['value'], $this->object);
}