protected function EasyRdf_Parser::addTriple in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser.php \EasyRdf_Parser::addTriple()
Add a triple to the current graph, and keep count of the number of triples @ignore
8 calls to EasyRdf_Parser::addTriple()
- EasyRdf_Parser_Json::parseJsonTriples in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Json.php - Parse the triple-centric JSON format, as output by libraptor
- EasyRdf_Parser_JsonLd::parse in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ JsonLdImplementation.php - Parse a JSON-LD document into an EasyRdf_Graph
- EasyRdf_Parser_Ntriples::parse in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Ntriples.php - Parse an N-Triples document into an EasyRdf_Graph
- EasyRdf_Parser_RdfPhp::parse in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfPhp.php - Parse RDF/PHP into an EasyRdf_Graph
- EasyRdf_Parser_RdfXml::add in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfXml.php - @ignore
1 method overrides EasyRdf_Parser::addTriple()
- EasyRdf_Parser_Rdfa::addTriple in 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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser.php, line 146
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;
}