Menu

#7 Error when loading models in stream

Current_SVN
open
nobody
Model (10)
5
2006-07-21
2006-07-21
Anonymous
No

In api/model/Model.php line 135 should be moved into
the preceeding block - else streming doesn't make
sense, since every statement is tried to be added twice.

Hence, lines 129-136 should look like:

if($stream && (is_a($parser,'rdfparser') ||
is_a($parser,'n3parser')))
$temp=&$parser->generateModel($filename,false,$this);
else{
$temp=&$parser->generateModel($filename);
$this->addModel($temp);
}
if($this->getBaseURI()== null)
$this->setBaseURI($temp->getBaseURI());

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.