I am getting the following Jena Named Individual Exception:
Cannot convert node http://www.w3.org/2002/07/owl#NamedIndividual
to OntClass: it does not have rdf:type owl:Class or equivalent
I am unable to find some relevant answer to my problem. Is is due to OWL 2 incompatibility with OWL 1. What are the mitigation strategies available to me?
Yes, Jena doesn't support OWL2 at the moment. However, you can just call setStrictMode(false)
on your OntModel
, and it will allow you to view that resource as a class by switching off strict checking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With