You are here

function rdf_load_arc2 in Taxonomy import/export via XML 7

Loads the arc2 library from likely location.

1 call to rdf_load_arc2()
taxonomy_xml_rdf_parse_data_into_index in formats/rdf_format.inc
Invoke the ARC parser on the given data.

File

./rdf_utils.inc, line 209
Experimental library for working with RDF within taxonomy_xml

Code

function rdf_load_arc2() {

  // Implicit assignment in the if here is deliberate.
  if ($arc2_library_path = rdf_arc2_library_path()) {
    require_once $arc2_library_path . "/ARC2.php";
    return TRUE;
  }
  else {
    $message = 'ARC2 RDF Parser is unavailable. see !install';
    $strings = array(
      '!install' => l('INSTALL.txt', drupal_get_path('module', 'taxonomy_xml') . '/INSTALL.txt'),
    );
    drupal_set_message(t($message, $strings), 'error');
    watchdog('taxonomy_xml', $message, $strings, WATCHDOG_ERROR);
    return FALSE;
  }
}