owl - 获取个人的数据属性值 - 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
。不幸的是,我无法让它工作。
任何想法 ?谢谢你的帮助
解决方案
推荐阅读
- php - Zend Framework 1.12 - 如何在 pdf 中渲染 Zend_form
- mongodb - MongoDB聚合2个字段
- python - ValueError: 层 model_20 需要 2 个输入,但它接收到 3 个输入张量
- jsf - 如何在 Primefaces 中显示来自服务器端的消息到对话框
- r - zoo::rollapply 窗口超过列值而不是行
- objective-c - 如何使用 MSAL for Objective-C 对 OneDrive Business 帐户进行身份验证
- laravel - 无法使用带有 livewire 的关联键从数组中删除输入字段
- python - PythonOperator 中的气流 PythonOperator
- flutter - 在颤抖中我尝试调用:_addfromInteger
- apache-spark - 当列中的任何一个具有空值时,如何连接多个列