1

I created an owl ontology in Protege (ontologyEx.owl). I also have rdf triples created by r2rml engine (file name is example.ttl). Is it possible to import/read ontologyEx.owl in Jena and do reasoning with my model that reads rdf triples (i.e. Model model = ModelFactory.createDefaultModel(); model.read( "example.ttl" );) ?

Thanks!

Massi
  • 11
  • 2
  • Only if ontologyEx.owl is in the RDF syntax form for OWL. Then you need to create an "inf model". – AndyS Apr 12 '21 at 20:32
  • @AndyS, Thanks for the reply. Yes ontologyEx.owl is in the RDF syntax. I am newbie in Jena. Do you mind providing a sample code on how to create an inf model? Appreciate it!! – Massi Apr 14 '21 at 04:16
  • ModelFactory. See https://jena.apache.org/documentation/inference/ – AndyS Apr 14 '21 at 08:28

0 Answers0