Discussion:
Rdf model vs Ontmodel
kumar rohit
2016-07-08 18:25:56 UTC
Permalink
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
Niels Andersen
2016-07-08 20:34:42 UTC
Permalink
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:***@gmail.com]
Sent: Friday, July 8, 2016 11:26
To: ***@jena.apache.org
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,
kumar rohit
2016-07-09 07:04:01 UTC
Permalink
So it means I can achieve inference and Jena rules with Model?
Post by Niels Andersen
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-----
Sent: Friday, July 8, 2016 11:26
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
Dave Reynolds
2016-07-09 08:51:24 UTC
Permalink
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
Post by kumar rohit
So it means I can achieve inference and Jena rules with Model?
Post by Niels Andersen
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-----
Sent: Friday, July 8, 2016 11:26
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
Loading...