使用 php 创建 rdf/xml 的简单方法?

发布于 2024-09-02 20:01:35 字数 256 浏览 1 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

花之痕靓丽 2024-09-09 20:01:35

我认为上面的所有答案都已经过时了。与此同时,EasyRdf 似乎是镇上最时髦的孩子。它具有完全符合时代精神的属性,例如:

  • 直观的界面
  • 托管在 Github 上,很多“喜欢”
  • 良好的文档
  • 有测试支持

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:

  • Intuitive interface
  • Hosted on Github, many "likes"
  • Good documentation
  • Test backed
演出会有结束 2024-09-09 20:01:35

您可能想尝试使用 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.

岁月苍老的讽刺 2024-09-09 20:01:35

我建议您使用RDF API for PHPRAP是一个用于解析、查询、操作、序列化和服务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.

阳光①夏 2024-09-09 20:01:35

上次我查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文