function ARC_sparql_parser::parse_WhereClause 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_WhereClause()
- 5 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_WhereClause()
- 6.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_WhereClause()
4 calls to ARC_sparql_parser::parse_WhereClause()
File
- arc/
ARC_sparql_parser.php, line 607
Class
Code
function parse_WhereClause() {
if (preg_match("/^(WHERE)?\\s*(\\{.*)\$/is", $this->q, $matches)) {
if ($sub_result = $this
->parse_GroupGraphPattern(trim($matches[2]))) {
$this->q = $sub_result["unparsed_val"];
unset($sub_result["unparsed_val"]);
$this->infos["patterns"] = $sub_result["entries"];
}
else {
$this->errors[] = "could not extract group graph pattern in parse_WhereClause()";
}
}
else {
if ($this->infos["query_type"] != "describe") {
$this->errors[] = "empty where clause (or missing brackets) in parse_WhereClause()";
}
}
}