function ARC_sparql_parser::parse_Query in Taxonomy import/export via XML 6
Same name and namespace in other branches
- 5.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Query()
- 5 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Query()
- 6.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Query()
1 call to ARC_sparql_parser::parse_Query()
File
- arc/
ARC_sparql_parser.php, line 434
Class
Code
function parse_Query() {
$this->q = trim($this->q);
$this
->parse_Prolog();
if (preg_match("/^(SELECT|CONSTRUCT|DESCRIBE|ASK)/i", $this->q, $matches)) {
$this->infos["query_type"] = strtolower($matches[1]);
$this->q = trim(substr($this->q, strlen($matches[0])));
$mthd = "parse_" . ucfirst(strtolower($matches[1])) . "Query";
$this
->{$mthd}();
}
else {
$this->errors[] = "missing or invalid query type in '" . $this->q . "'";
}
}