我正在使用http://www.easyrdf.org/ PHP库来创建一个RDF文档。我不知道如何将rdf:datatype
添加到RDF文档中。
所以我想要实现的是
<rdf:Description rdf:datatype="&xsd:integer">58</rdf:Description>
发布于 2014-02-06 14:59:21
这会产生预期的效果。
// Add xsd:integer to the resource
$rdf_resource->add(
'rdf:Description',
EasyRdf_Literal::create(58, null, 'xsd:integer')
);
https://stackoverflow.com/questions/21603040
复制相似问题