|
From: Jonathan H. <hen...@ya...> - 2005-05-04 16:04:27
|
Why is the replace function disabled in the INF modes?
I also get an error when using replace on a DB model -
"Fatal error: RDFAPI error (class: DbModel; method: find): Parameter mismatch
in [my include path]/rdfapi-php/api/model/DbModel.php on line 669"
occurs with :
foreach ($result as $object)
{
$subject = $object['?subject']->uri;
$predicate = $object['?predicate']->uri;
$object = $object['?object']->label; // (assuming this is a literal)
$newObject = $model->createLiteral(5);
$dbModel->replace($subject , $predicate, $object, $newObject);
}
|