Parse a prefixID [4] @ignore
protected function parsePrefixID() {
$this
->skipWSC();
// Read prefix ID (e.g. "rdf:" or ":")
$prefixID = '';
while (true) {
$c = $this
->read();
if ($c == ':') {
$this
->unread($c);
break;
}
elseif (self::isWhitespace($c)) {
break;
}
elseif ($c == -1) {
throw new EasyRdf_Exception("Turtle Parse Error: unexpected end of file while reading prefix id");
}
$prefixID .= $c;
}
$this
->skipWSC();
$this
->verifyCharacter($this
->read(), ":");
$this
->skipWSC();
// Read the namespace URI
$namespace = $this
->parseURI();
// Store local namespace mapping
$this->namespaces[$prefixID] = $namespace['value'];
}