去
http://www.seasr.org/wp-content/plugins/meandre/rdfapi-php/doc/index.html
下载一个 RDF API FOR PHP 然后解压到目录 我的是在
E:/siren/rdfapi-php
这个实例是输出 现有的 RDF文件..
我目录下有一个 example1.rdf
内容如下
<?xml version="1.0"?>
<rdf:RDF
xml:base="http://www.w3.org/Home/Lassila.rdf#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://example.org/stuff/1.0/"
xmlns:s="http://description.org/schema/">
<rdf:Description rdf:about="http://www.w3.org/Home/Lassila">
<s:Creator>
<rdf:Description rdf:nodeID="b85740">
<rdf:type rdf:resource="http://description.org/schema/Person"/>
<ex:Name rdf:datatype="http://www.w3.org/TR/xmlschema-2#string">Ora Lassila</ex