You are here

protected function EasyRdf_Parser_Turtle::resolve 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::resolve()
1 call to EasyRdf_Parser_Turtle::resolve()
EasyRdf_Parser_Turtle::parseURI in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a URI / IRI @ignore

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function resolve($uri) {
  if ($this->baseUri) {
    return $this->baseUri
      ->resolve($uri)
      ->toString();
  }
  else {
    return $uri;
  }
}