Commit 945b78a9 authored by Penny Leach's avatar Penny Leach
Browse files

use the leaptype namespace on import to check rdf type, not leap2 namespace


Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent c7b6113e
......@@ -1008,7 +1008,7 @@ class PluginImportLeap extends PluginImport {
*/
public static function is_rdf_type(SimpleXMLElement $entry, PluginImportLeap $importer, $rdftype) {
$result = $entry->xpath('rdf:type['
. $importer->curie_xpath('@rdf:resource', $importer->get_leap2a_namespace(), $rdftype) . ']');
. $importer->curie_xpath('@rdf:resource', $importer->get_leaptype_namespace(), $rdftype) . ']');
return isset($result[0]) && $result[0] instanceof SimpleXMLElement;
}
......@@ -1189,6 +1189,15 @@ class PluginImportLeap extends PluginImport {
return $attributes;
}
/**
* getter to return the leap2typeanamespace property
*
* @return string namespace URL
*/
public function get_leaptype_namespace() {
return $this->leap2atypenamespace;
}
/**
* getter to return the leap2anamespace property
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment