工作流图作为 RDF?
我是 RDF 新手,也许我的问题太愚蠢了,无法提出。
我有以下工作流程,我试图将其表示为 RDF。我了解 RDF 背后的理论及其用途,但我对如何开始为此图创建 RDF 感到困惑。我将不胜感激任何帮助。
提前致谢。
~Codera
I am new to RDF and, perhaps, my question is too silly to be asked.
I have the following workflow, which I am trying to be represent as an RDF. I understand the theories behind RDF and its uses, but I am stuck at how to get started to creating an RDF for this graph. I would appreciate any help.
Thanks in advance.
~Codera
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要对 RDF 属性的边进行建模,例如:
然后您可以使用这些属性来关联 M(1..N):
这将粗略地形成代表您上面的图的 RDF 图。您可以根据应用程序的需要将其他属性附加到每个 M(1..N),或者可以将它们建模为 rdfs:Class 对象,并使您的属性与这些类的实例相关。
如果您还没有阅读入门,这是一个相当不错的起点,其中有一些看起来很漂亮的示例接近您想要建模的内容。对于架构或本体创作,在文本编辑器中手动创建和维护一个简单的模型并不算太糟糕,但您可能需要考虑使用 Protege< /a> 随着复杂性的增加,特别是如果您想开始使用 OWL。
至于构建应用程序的工具,最好的选择是 Sesame 或 耶拿 API。它们提供了读取、写入和使用 RDF 所需的所有内容。我推荐Sesame,我认为它更容易使用,并且有更多可用的数据库选项。如果您不是 Java 程序员,还有一些选择,例如用于 python 的 rdflib 和用于 .Net 的 dotNetRdf 。
To start, you'd want to model the edges are RDF properties like:
Then you can use those to relate M(1..N):
That will roughly form an RDF graph representing the diagram you have above. You can attach additional properties to each M(1..N) as required by your application, or you can model them as rdfs:Class objects and have your properties relate instances of those classes.
If you have not read the primer that's a pretty decent place to start, it's got some examples that will look pretty close to what you're trying to model. For schema or ontology authoring, creating and maintaining a simple one by hand in a text editor is not too bad, but you might want to look at using Protege as the complexity grows, especially if you want to start using OWL.
As far as tools to build your application, your best bet to start with are either the Sesame or Jena APIs. They provide all the bits you'll need for reading, writing, and using RDF. I recommend Sesame, I think it's easier to use, and has more database options available. If you're not a Java programmer, there are some options out there, rdflib for python and dotNetRdf for .Net are a couple examples.