使用 php 创建 rdf/xml 的简单方法?
使用 php 创建 rdf/xml 的最佳/最简单/最简单的方法是什么?
理想情况下,我想使用 simpleXML - 但我相信它不支持名称空间?
失败的话也许是 simpleDOM? id 宁愿不使用 DOM,因为它会让我很困惑!
也许还有其他方法吗?
感谢您的帮助!
:)
注意:我试图发布一个示例,但无法使其正确格式化(没有带反引号的换行符,使用 GUI 一次只能一行),因此任何帮助都会很好!
what's the best/simplest/easiest way to create rdf/xml with php?
ideally i would like to use simpleXML - but i believe it doesn't support namespaces?
failing that maybe simpleDOM? id rather not use DOM since it tends to confuse me a lot!
perhaps there is some other way?
thanks for your help!
:)
nb: i tried to post an example but couldn't get it to format properly (no line breaks with backticks, only one line at a time usng the GUI) so any help with that would be good to!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为上面的所有答案都已经过时了。与此同时,EasyRdf 似乎是镇上最时髦的孩子。它具有完全符合时代精神的属性,例如:
I think all answers above are outdated. Meanwhile EasyRdf seems to be the hippest child in town. It has properties which fully match the zeitgeist such as:
您可能想尝试使用 ARC。它提供了一组解析器和序列化器,允许将三元组转换为多种格式。
You may want to try using ARC. It provides with a collection of parsers and serializers that allow the conversion of triples from/to multiple formats.
我建议您使用RDF API for PHP。 RAP是一个用于解析、查询、操作、序列化和服务RDF模型的软件包。
I would recommend you to use RDF API for PHP. RAP is a software package for parsing, querying, manipulating, serializing and serving RDF models.
上次我查看 RDF 时,Redland 是我选择的工具。它有一个 PHP 接口,我建议看看它。
Last time I looked at RDF, Redland was the tool of choice. It has a PHP interface, I suggest looking at that.