使用 jena 加载本体(owl)并显示其图表

发布于 2024-09-25 12:43:56 字数 165 浏览 3 评论 0原文

我在一个项目中工作,我必须以 .owl 语言加载任何本体(由用户选择)并将其图形显示为树形菜单。这意味着本体可以是任意大小。

目标是展示一种能够对学习对象进行分类的分类法。

目前,使用 jena 我可以加载本体,但我想知道如何以正确的方式显示图形来构建树形菜单。

谢谢

Im working in a project where I have to load any ontology (is chosen by the user) in .owl language and display its graph as a tree menu. It means the ontology can be any size.

The goal is to show a Taxanomy to be able to classify learning objects.

At the moment, using jena I can load the ontology, but I wonder how to show the graph in a proper way to build the tree menu.

Thanks

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

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

发布评论

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

评论(2

遗忘曾经 2024-10-02 12:43:56

我会更好地解释它。

使用 jena,我可以使用以下示例显示层次结构:jena.sourceforge.net/examples/class-hierarchy/index.html

对于典型的披萨示例,jena 示例显示(或多或少,我删除了匿名类):

  1. Class :ValuePartition
    1.1 类别:中
    1.1.1 级别:轻度
    1.1.2 类别:热门
    1.2 类别:辣度
    1.2.1 级别:轻度
    1.2.2 类别:中
    1.2.3 类:热门
    ...

当,如果您在本体浏览器中检查本体披萨 http://owl.cs .manchester.ac.uk/browser/(加载pizza.owl),显示:

  1. Class :ValuePartition
    1.1 类别:辣度
    1.1.1 级别:轻度
    1.1.2 类别:中
    1.1.3 类别:热门
    ...

我正在使用 jena 推理机 OWL_MEM_MICRO_RULE_INF,但我尝试了所有这些都没有成功。

谢谢。

I'll explain it better.

Using jena, I can show the Hierarchy using this example: jena.sourceforge.net/examples/class-hierarchy/index.html

With typic pizza example, the jena example shows (more or less, I deleted Anonymous classes):

  1. Class :ValuePartition
    1.1 Class :Medium
    1.1.1 Class :Mild
    1.1.2 Class :Hot
    1.2 Class :Spiciness
    1.2.1 Class :Mild
    1.2.2 Class :Medium
    1.2.3 Class :Hot
    ...

When, if you check the ontology pizza in ontologies browser as http://owl.cs.manchester.ac.uk/browser/ (loading the pizza.owl), it is showed:

  1. Class :ValuePartition
    1.1 Class :Spiciness
    1.1.1 Class :Mild
    1.1.2 Class :Medium
    1.1.3 Class :Hot
    ...

I'm using the jena reasoner OWL_MEM_MICRO_RULE_INF, but I tried all of them with no success.

Thanks.

伪心 2024-10-02 12:43:56

可能这是一个迟到的答案。查看 prefuse 包,网址为 http://prefuse.org/

Herli Menezes

may be this is a late answer. Give a look at prefuse package at http://prefuse.org/

Herli Menezes

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