protected function EasyRdf_Parser_Redland::parserErrorCount

Return the number of errors during parsing @ignore

1 call to EasyRdf_Parser_Redland::parserErrorCount()
EasyRdf_Parser_Redland::parse in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php
Parse an RDF document into an EasyRdf_Graph

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php, line 152

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;
}