foaf:holdsAccount is deprecated in favour of foaf:account. See

http://lists.foaf-project.org/pipermail/foaf-dev/2009-December/009903.html
for the news. Patch by Toby Inkster <mail@tobyinkster.co.uk>.
这个提交包含在:
Sarven Capadisli 2010-03-11 17:16:37 -05:00
父节点 00fa7d4b0b
当前提交 20cb9fa28f
共有 2 个文件被更改,包括 5 次插入5 次删除

查看文件

@ -251,7 +251,7 @@ class FoafAction extends Action
}
// Their account
$this->elementStart('holdsAccount');
$this->elementStart('account');
$this->elementStart('OnlineAccount', $attr);
if ($service) {
$this->element('accountServiceHomepage', array('rdf:resource' =>
@ -306,7 +306,7 @@ class FoafAction extends Action
}
$this->elementEnd('OnlineAccount');
$this->elementEnd('holdsAccount');
$this->elementEnd('account');
return $person;
}

查看文件

@ -146,7 +146,7 @@ class FoafGroupAction extends Action
{
$this->elementStart('Agent', array('rdf:about' => $uri));
$this->element('nick', null, $details['nickname']);
$this->elementStart('holdsAccount');
$this->elementStart('account');
$this->elementStart('sioc:User', array('rdf:about'=>$uri.'#acct'));
$this->elementStart('sioc:has_function');
$this->elementStart('statusnet:GroupAdminRole');
@ -154,7 +154,7 @@ class FoafGroupAction extends Action
$this->elementEnd('statusnet:GroupAdminRole');
$this->elementEnd('sioc:has_function');
$this->elementEnd('sioc:User');
$this->elementEnd('holdsAccount');
$this->elementEnd('account');
$this->elementEnd('Agent');
}
else
@ -177,4 +177,4 @@ class FoafGroupAction extends Action
$this->elementEnd('Document');
}
}
}