EasyRdf 0.6.2更新日誌:
· Bug fix for missing triples in the RDF/XML serialiser.
· Added EasyRdf_Graph::countHTTP://www.aliyun.com/zixun/aggregation/17071.html">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