You are here

function ARC_sparql_parser::parse_BaseDecl in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 5.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_BaseDecl()
  2. 5 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_BaseDecl()
  3. 6.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_BaseDecl()
1 call to ARC_sparql_parser::parse_BaseDecl()
ARC_sparql_parser::parse_Prolog in arc/ARC_sparql_parser.php

File

arc/ARC_sparql_parser.php, line 457

Class

ARC_sparql_parser

Code

function parse_BaseDecl() {
  if (preg_match("/^BASE\\s*\\|(.*)\\|/isU", $this->q, $matches)) {
    $base_iri = $this->iri_placeholders[$matches[1]];
    $this->q = trim(substr($this->q, strlen($matches[0])));
    $this
      ->set_base($base_iri);
    $this->logs[] = "setting base to " . $base_iri;
  }
}