protected function EasyRdf_Parser_Redland::parserErrorCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php \EasyRdf_Parser_Redland::parserErrorCount()
Return the number of errors during parsing @ignore
1 call to EasyRdf_Parser_Redland::parserErrorCount()
- EasyRdf_Parser_Redland::parse in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Redland.php - Parse an RDF document into an EasyRdf_Graph
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Redland.php, line 151
Class
- EasyRdf_Parser_Redland
- Class to parse RDF using Redland (librdf) C library.
Code
protected function parserErrorCount($parser) {
$errorUri = librdf_new_uri($this->world, self::LIBRDF_PARSER_FEATURE_ERROR_COUNT);
$errorNode = librdf_parser_get_feature($parser, $errorUri);
$errorCount = librdf_node_get_literal_value($errorNode);
librdf_free_uri($errorUri);
return $errorCount;
}