protected function EasyRdf_Parser::addTriple

Add a triple to the current graph, and keep count of the number of triples @ignore

7 calls to EasyRdf_Parser::addTriple()
EasyRdf_Parser_Json::parseJsonTriples in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Json.php
Parse the triple-centric JSON format, as output by libraptor
EasyRdf_Parser_Ntriples::parse in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Ntriples.php
Parse an N-Triples document into an EasyRdf_Graph
EasyRdf_Parser_RdfPhp::parse in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfPhp.php
Parse RDF/PHP into an EasyRdf_Graph
EasyRdf_Parser_RdfXml::add in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php
@ignore
EasyRdf_Parser_Redland::parse in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php
Parse an RDF document into an EasyRdf_Graph

... See full list

1 method overrides EasyRdf_Parser::addTriple()
EasyRdf_Parser_Rdfa::addTriple in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php
Add a triple to the current graph, and keep count of the number of triples @ignore

File

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

Class

EasyRdf_Parser
Parent class for the EasyRdf parsers

Code

protected function addTriple($resource, $property, $value) {
  $count = $this->graph
    ->add($resource, $property, $value);
  $this->tripleCount += $count;
  return $count;
}