如何绘制 RDF 图进行检查?

发布于 2024-08-14 08:11:48 字数 67 浏览 1 评论 0原文

W3 有一个 RDF 验证器,可以绘制 RDF 图。您知道类似的桌面实用程序吗?

忘了说。我在Mac上。

The W3 has a RDF validator that plots the RDF graph. Do you know a similar utility desktop side ?

Forgot to say. I'm on a mac.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

厌倦 2024-08-21 08:11:48

例如, raptor 具有 rapper 命令行实用程序,可以解析各种 RDF 语法并输出要绘制的 DOT与 GraphViz

(披露:我是 raptor 项目的提交者。)

For example, raptor has the rapper command line utility that can parse various RDF syntaxes and output DOT to be plotted with GraphViz.

(Disclosure: I'm a committer in the raptor project.)

雨巷深深 2024-08-21 08:11:48

+1 使用 Raptor 和 Graphviz。下面介绍了如何一次性完成此操作(假设您的 RDF 采用 Turtle 语法):

rapper -i turtle -o dot rdf.ttl | dot -Tpdf -ograph.pdf

输出写入 graph.pdf。

+1 for using Raptor and Graphviz. Here's how to do it one go (assuming that your RDF is in Turtle syntax):

rapper -i turtle -o dot rdf.ttl | dot -Tpdf -ograph.pdf

The output is written to graph.pdf.

℡寂寞咖啡 2024-08-21 08:11:48

就像 laalto 所说,GraphViz 是典型的使用方式,许多 RDF API 都内置支持生成要使用 ut 绘制的 DOT

例如我开发的 API (dotNetRDF) 有一个 GraphVizWriter 类,您可以使用它来生成 DOT 文件,然后您可以使用 dot.exe 命令行实用程序将其转换为所需格式的图像,该实用程序是 GraphViz 的

一部分在 Mac 上,我的 API 对您个人来说可能没有多大用处 - 但无论如何 GraphViz 绝对是正确的选择。

Like laalto said GraphViz is the typical thing to use and many RDF APIs have support built in for generating DOT to be plotted with ut

For example the API I develop (dotNetRDF) has a GraphVizWriter class that you can use to generate DOT files which you can then turn into images in your desired format with the dot.exe command line utility which is part of GraphViz

Though seeing as you're on a Mac my API is probably not much use to you personally - but regardless GraphViz is definitely the way to go.

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