首页 > 解决方案 > 获取个人的数据属性值 - OWL API

问题描述

我正在尝试从现有本体中获取我个人的数据属性值。我正在使用 OWL API。例如我个人的名字:

`
Set<OWLLiteral> literalA = John.getDataPropertyValues(name, ontology);

I've got this error :
> The method getDataPropertyValues(OWLDataPropertyExpression,
> OWLOntology) is undefined for the type OWLIndividua
`

这应该让我:"John"

我已经在这个网站上检查了我可以用来检索信息接口 OWLIndividual的方法,它给了我getDataPropertyValues。不幸的是,我无法让它工作。

任何想法 ?谢谢你的帮助

标签: owlontologyprotegeowl-api

解决方案


推荐阅读