为gentoo linux开发人员创建foaf和主页的工具
ternate的Python项目详细描述
ternate是一个命令行客户机,用于为gentoo linux开发人员创建foaf和网页。它查询http://dev.gentoo.org/上的ldap服务器并创建一个基本的foaf文件。foaf使用xslt样式表转换为guidexml。
功能
- Creates FOAF from LDAP info
- Creates homepage for dev.gentoo.org/~username
安装
您可以使用distutils、easy_install或subversion安装ternate。还有一个gentoo linux ebuild可用。
用法
有三个步骤。获取ldap信息,创建foaf,创建主页。
example命令行用法
获取LDAP信息
$ ternate --ldap > ldap.txt
现在创建foaf:
$ ternate --foaf ldap.txt
现在将foaf转换为guidexml
$ ternate --guidexml foaf.rdf > index.xml or $ xsltproc /usr/share/ternate-0.1.0/developer.xslt foaf.rdf > index.xml