You are here

protected function EasyRdf_Parser_RdfXml::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php \EasyRdf_Parser_RdfXml::init()

@ignore

1 call to EasyRdf_Parser_RdfXml::init()
EasyRdf_Parser_RdfXml::parse in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php
Parse an RDF/XML document into an EasyRdf_Graph

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php, line 69

Class

EasyRdf_Parser_RdfXml
A pure-php class to parse RDF/XML.

Code

protected function init($graph, $base) {
  $this->graph = $graph;
  $this->state = 0;
  $this->xLang = null;
  $this->xBase = new EasyRdf_ParsedUri($base);
  $this->xml = 'http://www.w3.org/XML/1998/namespace';
  $this->rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
  $this->nsp = array(
    $this->xml => 'xml',
    $this->rdf => 'rdf',
  );
  $this->sStack = array();
  $this->sCount = 0;
}