RDF 输出 CMS 的最佳方法
任何人都可以推荐一个好的CMS,它将输出纯RDF文档(我不只是想要具有RDF属性的HTML页面)。我基本上想要一个包含一些数据的数据库,并将 CMS 格式转换为纯 XML RDF 文档。
我知道 Drupal 的支持有限,但这似乎只是将 RDF 属性添加到 HTML 元素。
还有其他人有更好的方法吗...?
谢谢。
Can anyone recommend a good CMS which will output PURE RDF documents (I don't just want HTML pages with RDF properties). I basically want to have a database containing some data and have the CMS format that into pure XML RDF documents.
I know Drupal has limited support but this seems to just add RDF attributes to HTML elements.
Anyone else have a better approach...?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道有任何 CMS 可以让您开箱即用地执行此操作。毕竟,CMS 通常是用来创建网页的。
Drupal
这可以用 Drupal 来完成,但是它需要一些工作,具体取决于您需要生成什么类型的 XML RDF 文档,这可能是一个或大或小的工作量。
由于所有标记都是由主题函数和模板定义的,因此您所需要做的就是覆盖默认标记。如果您想要的只是为原始内容创建这个特殊的输出 - 在 Drupal 中称为节点 - 您只需要创建一个自定义的节点模板和一个特殊的页面模板,它创建周围的标记,如文档类型等。
如果这是在这种情况下,与特殊的设计节点(例如购物网站中的产品)相比,您不需要太多额外的工作。 上下文模块可以帮助您管理针对不同类型的内容/URL 使用哪个页面模板。
因此,利用可用的模块和 Drupal 的巨大灵活性,无需太多工作即可完成。我的猜测是 Drupal 将是最好的选择,因为对于这样的事情,灵活性至关重要,Drupal 比我见过的所有其他 CMS 做得更好。
I don't know of any CMS that allows you to do this out of the box. CMS's are usually made to create webpages after all.
Drupal
This can be done with Drupal, but it will require some work, depending on what type of XML RDF documents you need to generate, this can be a greater or lesser work load.
Since all markup is defined by theme functions and templates, all you need to do, is to overwrite the default ones. If all you want, is to create this special output for raw content - called nodes in Drupal - you would only need to create a customized node template, and a special page template, which creates the surrounding markup like doctypes etc.
If this is the case, you shouldn't need much extra work compared to a special design node, like products in a shopping site. The context module can help you managing which page template to use for different types of content/urls.
So with the modules available and Drupal's great flexibility, could be done without too much work. My guess is that Drupal would be the best choice, since for such a thing, flexibility is critical, the thing Drupal does better than all other CMS I've seen.