EasyRdf 0.6.2更新日志:
·Bug fix for missing triples in the RDF/XML serialiser.
·Added EasyRdf_Graph::count">Triples() method.
·Re-factored the mechanism for mapping RDF datatypes to PHP classes.
·Added subclasses of EasyRdf_Literal for various XSD datatypes:
·EasyRdf_Literal_Boolean
·EasyRdf_Literal_Date
·EasyRdf_Literal_DateTime
·EasyRdf_Literal_Decimal
·EasyRdf_Literal_Integer
·Made the Redland based parser write triples directly to EasyRdf_Graph
·Added support for datatypes and languages in the EasyRdf_Parser_Ntriples parser.
·Fix for parsing XML Literals in RDF/XML
示例代码:
$foaf = new EasyRdf_Graph("http://www.ithov.com/njh/foaf.rdf");
$foaf->load();
$me = $foaf->primaryTopic();
echo "My name is: ".$me->get('foaf:name')."\n";
EasyRdf 是一个 PHP 库,用来快速简单的生成网站的RDF摘要信息。它是专为有经验的和没有经验的RDF开发混合队使用。
下载地址:http://github.com/downloads/njh/easyrdf/easyrdf-0.6.2.tar.gz