public function importXmlRdf($targetNameSpace, $fileLocation)
    {
        $returnValue = (bool) false;

        if(!file_exists($fileLocation) || !is_readable($fileLocation)){
            throw new common_Exception("Unable to load ontology : $fileLocation");
        }
        
	    if(!preg_match("/#$/", $targetNameSpace)){
			$targetNameSpace .= '#';
		}
		$modFactory = new core_kernel_api_ModelFactory();
		$returnValue = $modFactory->createModel($targetNameSpace, file_get_contents($fileLocation));
		


        return (bool) $returnValue;
    }
public function importXmlRdf($targetNameSpace, $fileLocation)
    {
        $returnValue = (bool) false;

        if(!file_exists($fileLocation) || !is_readable($fileLocation)){
            throw new common_Exception("Unable to load ontology : $fileLocation");
        }
        
	    if(!preg_match("/#$/", $targetNameSpace)){
			$targetNameSpace .= '#';
		}
		$modFactory = new core_kernel_api_ModelFactory();
		$returnValue = $modFactory->createModel($targetNameSpace, file_get_contents($fileLocation));
		


        return (bool) $returnValue;
    }
public function importXmlRdf ( $ targetNameSpace , $ fileLocation ) { $ returnValue = ( bool ) false ; if ( ! file_exists ( $ fileLocation ) || ! is_readable ( $ fileLocation ) ) { throw new common_Exception ( "Unable to load ontology : $fileLocation" ) ; } if ( ! preg_match ( "/#$/" , $ targetNameSpace ) ) { $ targetNameSpace .= '#' ; } $ modFactory = new core_kernel_api_ModelFactory ( ) ; $ returnValue = $ modFactory -> createModel ( $ targetNameSpace , file_get_contents ( $ fileLocation ) ) ; return ( bool ) $ returnValue ; }
import xml rdf files into the knowledge base

@access public
@author firstname and lastname of author, <author@example.org>
@param  string targetNameSpace
@param  string fileLocation
@return boolean
import xml rdf files into the knowledge base