You are here

function ARC_rdfxml_parser::reify in Taxonomy import/export via XML 5.2

Same name and namespace in other branches
  1. 5 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::reify()
  2. 6.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::reify()
  3. 6 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::reify()
2 calls to ARC_rdfxml_parser::reify()
ARC_rdfxml_parser::handle_close in arc/ARC_rdfxml_parser.php
ARC_rdfxml_parser::handle_open_2 in arc/ARC_rdfxml_parser.php

File

arc/ARC_rdfxml_parser.php, line 299

Class

ARC_rdfxml_parser

Code

function reify($statement, &$s, $p, $o) {
  $this
    ->add_triple($statement, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", array(
    "type" => "uri",
    "uri" => "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement",
  ));
  $this
    ->add_triple($statement, "http://www.w3.org/1999/02/22-rdf-syntax-ns#subject", $s);
  $this
    ->add_triple($statement, "http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate", $p);
  $this
    ->add_triple($statement, "http://www.w3.org/1999/02/22-rdf-syntax-ns#object", $o);
}