You can use inference with a plain Model or an OntModel.
With a plain Model you create an InfModel binding in the appropriate
reasoner, see the reasoner documentation.
An OntModel has inference support a little more baked in so you can
supply the reasoner at the time you create the OntModel (via OntModelSpec).
The main difference between OntModel and Model is the convenience API
methods for accessing OWL/RDFS information (listClasses and things like
that). These are useful or not independent on whether you want inference.
Dave
On 09/07/16 08:04, kumar rohit wrote:
So it means I can achieve inference and Jena rules with Model?
On Fri, Jul 8, 2016 at 1:34 PM, Niels Andersen <[email protected]> wrote:
Kumar,
An OntModel is RDF plus a schema. The model is aware of the schema and has
specific methods to deal with it.
Best regards,
Niels
-----Original Message-----
From: kumar rohit [mailto:[email protected]]
Sent: Friday, July 8, 2016 11:26
To: [email protected]
Subject: Rdf model vs Ontmodel
What is the difference between RDF and OntModel? Is the later somewhat
better than the other I am working on a project which will need some
inference too like sub class/superclass inferencing, so which model is
preferable here?
regards