Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到以下耶拿命名的个人例外:
Cannot convert node http://www.w3.org/2002/07/owl#NamedIndividual to OntClass: it does not have rdf:type owl:Class or equivalent
我无法找到与我的问题相关的答案。是因为 OWL 2 与 OWL 1 不兼容。我可以使用哪些缓解策略?
是的,Jena 目前不支持 OWL2。但是,您可以只调用setStrictMode(false)您的OntModel,它会允许您通过关闭严格检查来将该资源视为一个类。
setStrictMode(false)
OntModel